[v2,1/2] arm64: dts: imx8mq-librem5-devkit: add accelerometer and gyro sensor
diff mbox series

Message ID 20191223081253.27516-1-martin.kepplinger@puri.sm
State In Next
Commit 537c00e3a73cc638c82594fbf969f7435eb864bd
Headers show
Series
  • [v2,1/2] arm64: dts: imx8mq-librem5-devkit: add accelerometer and gyro sensor
Related show

Commit Message

Martin Kepplinger Dec. 23, 2019, 8:12 a.m. UTC
Now that there is driver support, describe the accel and gyro sensor parts
of the LSM9DS1 IMU.

Signed-off-by: Martin Kepplinger <martin.kepplinger@puri.sm>
Reviewed-by: Guido Günther <agx@sigxcpu.org>
---

revision history
----------------
v2: use hyphen in node name and reorder (thanks Shawn)
    add Guido's review tag


 arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts | 7 +++++++
 1 file changed, 7 insertions(+)

Comments

Shawn Guo Dec. 23, 2019, 8:56 a.m. UTC | #1
On Mon, Dec 23, 2019 at 09:12:52AM +0100, Martin Kepplinger wrote:
> Now that there is driver support, describe the accel and gyro sensor parts
> of the LSM9DS1 IMU.
> 
> Signed-off-by: Martin Kepplinger <martin.kepplinger@puri.sm>
> Reviewed-by: Guido Günther <agx@sigxcpu.org>

Applied both, thanks.

Patch
diff mbox series

diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts b/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts
index 523e5f2ce873..379510886e3e 100644
--- a/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts
+++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts
@@ -449,6 +449,13 @@ 
 		AVDD28-supply = <&reg_2v8_p>;
 		VDDIO-supply = <&reg_1v8_p>;
 	};
+
+	accel-gyro@6a {
+		compatible = "st,lsm9ds1-imu";
+		reg = <0x6a>;
+		vdd-supply = <&reg_3v3_p>;
+		vddio-supply = <&reg_3v3_p>;
+	};
 };
 
 &iomuxc {