OSDN Git Service

ARM: dts: imx6qdl-gw553x: add lsm9ds1 iio imu/magn support
authorRobert Jones <rjones@gateworks.com>
Fri, 14 Feb 2020 21:02:41 +0000 (13:02 -0800)
committerShawn Guo <shawnguo@kernel.org>
Mon, 17 Feb 2020 07:28:50 +0000 (15:28 +0800)
Add one node for the accel/gyro i2c device and another for the separate
magnetometer device in the lsm9ds1.

Signed-off-by: Robert Jones <rjones@gateworks.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6qdl-gw553x.dtsi

index a106689..ee85031 100644 (file)
        pinctrl-0 = <&pinctrl_i2c2>;
        status = "okay";
 
+       magn@1c {
+               compatible = "st,lsm9ds1-magn";
+               reg = <0x1c>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinctrl_mag>;
+               interrupt-parent = <&gpio1>;
+               interrupts = <2 IRQ_TYPE_EDGE_RISING>;
+       };
+
+       imu@6a {
+               compatible = "st,lsm9ds1-imu";
+               reg = <0x6a>;
+               st,drdy-int-pin = <1>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinctrl_imu>;
+               interrupt-parent = <&gpio7>;
+               interrupts = <13 IRQ_TYPE_LEVEL_HIGH>;
+       };
+
        ltc3676: pmic@3c {
                compatible = "lltc,ltc3676";
                reg = <0x3c>;
                >;
        };
 
+       pinctrl_imu: imugrp {
+               fsl,pins = <
+                       MX6QDL_PAD_GPIO_18__GPIO7_IO13          0x1b0b0
+               >;
+       };
+
        pinctrl_ipu1_csi0: ipu1csi0grp {
                fsl,pins = <
                        MX6QDL_PAD_CSI0_DAT12__IPU1_CSI0_DATA12    0x1b0b0
                >;
        };
 
+       pinctrl_mag: maggrp {
+               fsl,pins = <
+                       MX6QDL_PAD_GPIO_2__GPIO1_IO02           0x1b0b0
+               >;
+       };
+
        pinctrl_pcie: pciegrp {
                fsl,pins = <
                        MX6QDL_PAD_GPIO_0__GPIO1_IO00           0x1b0b0