ARM: dts: imx6qdl-sabresd: add magnetometer sensor support
authorAnson Huang <anson.huang@nxp.com>
Thu, 6 Dec 2018 01:42:38 +0000 (01:42 +0000)
committerShawn Guo <shawnguo@kernel.org>
Mon, 10 Dec 2018 02:03:08 +0000 (10:03 +0800)
Add magnetometer sensor mag3110 support on i2c3 bus.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6qdl-sabresd.dtsi

index 2e071b2..366fa8f 100644 (file)
                wakeup-gpios = <&gpio6 7 0>;
        };
 
+       magnetometer@e {
+               compatible = "fsl,mag3110";
+               reg = <0x0e>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinctrl_i2c3_mag3110_int>;
+               interrupt-parent = <&gpio3>;
+               interrupts = <16 IRQ_TYPE_EDGE_RISING>;
+       };
+
        light-sensor@44 {
                compatible = "isil,isl29023";
                reg = <0x44>;
                        >;
                };
 
+               pinctrl_i2c3_mag3110_int: i2c3mag3110intgrp {
+                       fsl,pins = <
+                               MX6QDL_PAD_EIM_D16__GPIO3_IO16          0xb0b1
+                       >;
+               };
+
                pinctrl_ipu1_csi0: ipu1csi0grp {
                        fsl,pins = <
                                MX6QDL_PAD_CSI0_DAT12__IPU1_CSI0_DATA12    0x1b0b0