MLK-11470 ARM: dts: i.mx6q/dl/sx: Add mag3110 device tree support.
authorFugang Duan <b38611@freescale.com>
Tue, 1 Sep 2015 05:02:49 +0000 (13:02 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:48:19 +0000 (14:48 -0500)
Add mag3110 sensor device tree support on i.MX6Q/DL/SX platform.

Signed-off-by: Luwei Zhou <b45643@freescale.com>
Signed-off-by: Fugang Duan <B38611@freescale.com>
arch/arm/boot/dts/imx6qdl-sabreauto.dtsi
arch/arm/boot/dts/imx6qdl-sabresd.dtsi
arch/arm/boot/dts/imx6sx-sdb.dtsi

index d70ed51..77884af 100644 (file)
                #gpio-cells = <2>;
        };
 
+       mag3110@0e {
+               compatible = "fsl,mag3110";
+               reg = <0x0e>;
+               position = <2>;
+               interrupt-parent = <&gpio2>;
+               interrupts = <29 1>;
+       };
+
        mma8451@1c {
                compatible = "fsl,mma8451";
                reg = <0x1c>;
                                MX6QDL_PAD_SD2_DAT2__GPIO1_IO13  0x80000000
                                MX6QDL_PAD_GPIO_18__SD3_VSELECT 0x17059
                                MX6QDL_PAD_EIM_BCLK__GPIO6_IO31 0x80000000
+                               MX6QDL_PAD_EIM_EB1__GPIO2_IO29  0x80000000
                        >;
                };
 
index f94831b..250e1cc 100644 (file)
                interrupts = <7 2>;
                wakeup-gpios = <&gpio6 7 0>;
        };
+
+       mag3110@0e {
+               compatible = "fsl,mag3110";
+               reg = <0x0e>;
+               position = <2>;
+               vdd-supply = <&reg_sensor>;
+               vddio-supply = <&reg_sensor>;
+               interrupt-parent = <&gpio3>;
+               interrupts = <16 1>;
+       };
 };
 
 &iomuxc {
                                MX6QDL_PAD_ENET_CRS_DV__GPIO1_IO25 0x1b0b0
                                MX6QDL_PAD_EIM_EB3__GPIO2_IO31 0x80000000
                                MX6QDL_PAD_SD1_CMD__GPIO1_IO18 0x80000000
+                               MX6QDL_PAD_EIM_D16__GPIO3_IO16 0x80000000
                        >;
                };
 
index 6a9fd3f..f994500 100644 (file)
        pinctrl-0 = <&pinctrl_i2c3>;
        status = "okay";
 
+       mag3110@0e {
+               compatible = "fsl,mag3110";
+               reg = <0x0e>;
+               position = <2>;
+               interrupt-parent = <&gpio6>;
+               interrupts = <5 1>;
+               shared-interrupt;
+       };
+
        mma8451@1c {
                compatible = "fsl,mma8451";
                reg = <0x1c>;
                pinctrl_hog: hoggrp {
                        fsl,pins = <
                                MX6SX_PAD_SD1_DATA0__GPIO6_IO_2 0x17059
+                               MX6SX_PAD_SD1_DATA3__GPIO6_IO_5 0xb000
                        >;
                };