summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Cercueil <paul@crapouillou.net>2023-12-07 01:15:56 +0300
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2023-12-08 22:42:17 +0300
commit50c7cdc9a4d2d21373c1ab52c131109ab30c53f5 (patch)
tree8cadde6abdd13390c70f0759453fca5f826dd90a
parent6e73b11062b2e3e873666ba35577437502cf1dd2 (diff)
downloadlinux-50c7cdc9a4d2d21373c1ab52c131109ab30c53f5.tar.xz
ARM: dts: samsung: exynos4210-i9100: Add accelerometer node
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>
-rw-r--r--arch/arm/boot/dts/samsung/exynos4210-i9100.dts17
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/samsung/exynos4210-i9100.dts b/arch/arm/boot/dts/samsung/exynos4210-i9100.dts
index f03b03dbe9f2..0d8495792a70 100644
--- a/arch/arm/boot/dts/samsung/exynos4210-i9100.dts
+++ b/arch/arm/boot/dts/samsung/exynos4210-i9100.dts
@@ -402,6 +402,23 @@
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";