Skip to content

Commit c8756cb

Browse files
GateworksShawn Guo
authored andcommitted
ARM: dts: imx6qdl-gw5904: add lsm9ds1 iio imu/magn support
Add one node for the accel/gyro i2c device and another for the separate magnetometer device in the lsm9ds1. Signed-off-by: Tim Harvey <[email protected]> Signed-off-by: Shawn Guo <[email protected]>
1 parent 9e72702 commit c8756cb

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

arch/arm/boot/dts/imx6qdl-gw5904.dtsi

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,15 @@
248248
pinctrl-0 = <&pinctrl_i2c2>;
249249
status = "okay";
250250

251+
magn@1c {
252+
compatible = "st,lsm9ds1-magn";
253+
reg = <0x1c>;
254+
pinctrl-names = "default";
255+
pinctrl-0 = <&pinctrl_mag>;
256+
interrupt-parent = <&gpio5>;
257+
interrupts = <17 IRQ_TYPE_EDGE_RISING>;
258+
};
259+
251260
ltc3676: pmic@3c {
252261
compatible = "lltc,ltc3676";
253262
reg = <0x3c>;
@@ -320,6 +329,16 @@
320329
};
321330
};
322331
};
332+
333+
imu@6a {
334+
compatible = "st,lsm9ds1-imu";
335+
reg = <0x6a>;
336+
st,drdy-int-pin = <1>;
337+
pinctrl-names = "default";
338+
pinctrl-0 = <&pinctrl_imu>;
339+
interrupt-parent = <&gpio4>;
340+
interrupts = <18 IRQ_TYPE_LEVEL_HIGH>;
341+
};
323342
};
324343

325344
&i2c3 {
@@ -501,6 +520,18 @@
501520
>;
502521
};
503522

523+
pinctrl_imu: imugrp {
524+
fsl,pins = <
525+
MX6QDL_PAD_DI0_PIN2__GPIO4_IO18 0x1b0b0
526+
>;
527+
};
528+
529+
pinctrl_mag: maggrp {
530+
fsl,pins = <
531+
MX6QDL_PAD_DISP0_DAT23__GPIO5_IO17 0x1b0b0
532+
>;
533+
};
534+
504535
pinctrl_pcie: pciegrp {
505536
fsl,pins = <
506537
MX6QDL_PAD_GPIO_0__GPIO1_IO00 0x1b0b0 /* PCIE RST */

0 commit comments

Comments
 (0)