From c705c871106e35221f486765fcc3d978a4434c38 Mon Sep 17 00:00:00 2001 From: Nikita Yushchenko Date: Wed, 12 Jan 2022 23:52:05 +0300 Subject: [PATCH] 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 Link: https://lore.kernel.org/r/20220112205205.4082026-1-nikita.yoush@cogentembedded.com Signed-off-by: Geert Uytterhoeven --- arch/arm64/boot/dts/renesas/ulcb-kf.dtsi | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/ulcb-kf.dtsi b/arch/arm64/boot/dts/renesas/ulcb-kf.dtsi index 222097d84783d..30f185547012a 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>; + }; }; }; -- 2.30.2