summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/samsung
diff options
context:
space:
mode:
authorPaul Cercueil <paul@crapouillou.net>2023-12-06 23:15:56 +0100
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2023-12-08 20:42:17 +0100
commit50c7cdc9a4d2d21373c1ab52c131109ab30c53f5 (patch)
tree8cadde6abdd13390c70f0759453fca5f826dd90a /arch/arm/boot/dts/samsung
parentARM: dts: samsung: exynos4210-i9100: Add node for touch keys (diff)
downloadlinux-50c7cdc9a4d2d21373c1ab52c131109ab30c53f5.tar.xz
linux-50c7cdc9a4d2d21373c1ab52c131109ab30c53f5.zip
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>
Diffstat (limited to 'arch/arm/boot/dts/samsung')
-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";