Skip to content

Commit 9e72702

Browse files
GateworksShawn Guo
authored andcommitted
ARM: dts: imx6qdl-gw560x: 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 012d1c2 commit 9e72702

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

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

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,15 @@
295295
VDDIO-supply = <&reg_3p3v>;
296296
};
297297

298+
magn@1c {
299+
compatible = "st,lsm9ds1-magn";
300+
reg = <0x1c>;
301+
pinctrl-names = "default";
302+
pinctrl-0 = <&pinctrl_mag>;
303+
interrupt-parent = <&gpio5>;
304+
interrupts = <9 IRQ_TYPE_EDGE_RISING>;
305+
};
306+
298307
tca8418: keypad@34 {
299308
compatible = "ti,tca8418";
300309
pinctrl-names = "default";
@@ -389,6 +398,16 @@
389398
};
390399
};
391400
};
401+
402+
imu@6a {
403+
compatible = "st,lsm9ds1-imu";
404+
reg = <0x6a>;
405+
st,drdy-int-pin = <1>;
406+
pinctrl-names = "default";
407+
pinctrl-0 = <&pinctrl_imu>;
408+
interrupt-parent = <&gpio5>;
409+
interrupts = <6 IRQ_TYPE_LEVEL_HIGH>;
410+
};
392411
};
393412

394413
&i2c3 {
@@ -609,13 +628,25 @@
609628
>;
610629
};
611630

631+
pinctrl_imu: imugrp {
632+
fsl,pins = <
633+
MX6QDL_PAD_DISP0_DAT12__GPIO5_IO06 0x1b0b0
634+
>;
635+
};
636+
612637
pinctrl_keypad: keypadgrp {
613638
fsl,pins = <
614639
MX6QDL_PAD_DISP0_DAT17__GPIO5_IO11 0x0001b0b0 /* KEYPAD_IRQ# */
615640
MX6QDL_PAD_DISP0_DAT9__GPIO4_IO30 0x0001b0b0 /* KEYPAD_LED_EN */
616641
>;
617642
};
618643

644+
pinctrl_mag: maggrp {
645+
fsl,pins = <
646+
MX6QDL_PAD_DISP0_DAT15__GPIO5_IO09 0x1b0b0
647+
>;
648+
};
649+
619650
pinctrl_pcie: pciegrp {
620651
fsl,pins = <
621652
MX6QDL_PAD_DISP0_DAT10__GPIO4_IO31 0x1b0b0 /* PCI_RST# */

0 commit comments

Comments
 (0)