summaryrefslogtreecommitdiff
path: root/arch/arm64/boot/dts/renesas/ulcb-kf.dtsi
diff options
context:
space:
mode:
authorNikita Yushchenko <nikita.yoush@cogentembedded.com>2022-01-12 23:52:05 +0300
committerGeert Uytterhoeven <geert+renesas@glider.be>2022-01-28 12:59:13 +0300
commitc705c871106e35221f486765fcc3d978a4434c38 (patch)
treeae8c3b5712585c9d17982d58fb3cdccffff070d5 /arch/arm64/boot/dts/renesas/ulcb-kf.dtsi
parent72a2cab3a10bbfcc9cccc763834acded015d9282 (diff)
downloadlinux-c705c871106e35221f486765fcc3d978a4434c38.tar.xz
arm64: dts: renesas: ulcb-kf: Add 9-asix sensor device
This adds nodes for the lsm9ds0 sensor installed on the KF board. With this patch, the sensor data becomes available over the IIO sysfs interface. The interrupt definition is not added yet, because the interrupt lines of lsm9ds0 are pulled to VCC on the board, which implies a need for active-low configuration. But the st_sensors drivers currently can't work with active-low interrupts on this chip. Signed-off-by: Nikita Yushchenko <nikita.yoush@cogentembedded.com> Link: https://lore.kernel.org/r/20220112205205.4082026-1-nikita.yoush@cogentembedded.com Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Diffstat (limited to 'arch/arm64/boot/dts/renesas/ulcb-kf.dtsi')
-rw-r--r--arch/arm64/boot/dts/renesas/ulcb-kf.dtsi23
1 files changed, 23 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/renesas/ulcb-kf.dtsi b/arch/arm64/boot/dts/renesas/ulcb-kf.dtsi
index 222097d84783..30f185547012 100644
--- a/arch/arm64/boot/dts/renesas/ulcb-kf.dtsi
+++ b/arch/arm64/boot/dts/renesas/ulcb-kf.dtsi
@@ -37,6 +37,13 @@
};
};
+ accel_3v3: regulator-acc-3v3 {
+ compatible = "regulator-fixed";
+ regulator-name = "accel-3v3";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ };
+
hdmi_1v8: regulator-hdmi-1v8 {
compatible = "regulator-fixed";
regulator-name = "hdmi-1v8";
@@ -178,6 +185,14 @@
#size-cells = <0>;
reg = <7>;
+ accelerometer@1d {
+ compatible = "st,lsm9ds0-imu";
+ reg = <0x1d>;
+
+ vdd-supply = <&accel_3v3>;
+ vddio-supply = <&accel_3v3>;
+ };
+
pcm3168a: audio-codec@44 {
#sound-dai-cells = <0>;
compatible = "ti,pcm3168a";
@@ -212,6 +227,14 @@
};
};
};
+
+ gyroscope@6b {
+ compatible = "st,lsm9ds0-gyro";
+ reg = <0x6b>;
+
+ vdd-supply = <&accel_3v3>;
+ vddio-supply = <&accel_3v3>;
+ };
};
};