]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ARM: dts: samsung: exynos4210-i9100: Add accelerometer node
authorPaul Cercueil <paul@crapouillou.net>
Wed, 6 Dec 2023 22:15:56 +0000 (23:15 +0100)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Fri, 8 Dec 2023 19:42:17 +0000 (20:42 +0100)
Add a Device Tree node for the ST Microelectronics "K3D" accelerometer
chip found in the Galaxy S2.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Link: https://lore.kernel.org/r/20231206221556.15348-4-paul@crapouillou.net
[krzysztof: fix alphabetical placement of i2c_1]
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
arch/arm/boot/dts/samsung/exynos4210-i9100.dts

index f03b03dbe9f2b148a097f7e26645d3f75512f833..0d8495792a70215631a2c1de0e8517b0396ee560 100644 (file)
        vusb_a-supply = <&vusbdac_reg>;
 };
 
+&i2c_1 {
+       status = "okay";
+
+       samsung,i2c-sda-delay = <100>;
+       samsung,i2c-slave-addr = <0x10>;
+       samsung,i2c-max-bus-freq = <100000>;
+
+       lis3dh: accelerometer@19 {
+               compatible = "st,lis3dh-accel";
+               reg = <0x19>;
+
+               mount-matrix = "0", "-1", "0",
+                              "1", "0", "0",
+                              "0", "0", "1";
+       };
+};
+
 &i2c_3 {
        status = "okay";