MLK-17075 arm64: dts: enable i2c0 and add sensor support imx8qm-mek
authorGao Pan <pandy.gao@nxp.com>
Mon, 4 Dec 2017 08:02:59 +0000 (16:02 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:50:00 +0000 (14:50 -0500)
enable i2c0 add sensor support imx8qm-mek:
isl29023, fxos8700, fxas2100x, mpl3115

Signed-off-by: Gao Pan <pandy.gao@nxp.com>
arch/arm64/boot/dts/freescale/fsl-imx8qm-mek.dts

index b6ec08d..c3f805a 100644 (file)
                        >;
                };
 
+               pinctrl_i2c0: i2c0grp {
+                       fsl,pins = <
+                               SC_P_HDMI_TX0_TS_SCL_DMA_I2C0_SCL       0x0600004c
+                               SC_P_HDMI_TX0_TS_SDA_DMA_I2C0_SDA       0x0600004c
+                       >;
+               };
+
+               pinctrl_isl29023: isl29023grp {
+                       fsl,pins = <
+                               SC_P_USDHC2_WP_LSIO_GPIO4_IO11          0x00000021
+                       >;
+               };
+
                pinctrl_i2c1: i2c1grp {
                        fsl,pins = <
                                SC_P_GPT0_CLK_DMA_I2C1_SCL 0x0600004c
        status = "okay";
 };
 
+&i2c0 {
+       #address-cells = <1>;
+       #size-cells = <0>;
+       clock-frequency = <100000>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_i2c0>;
+       status = "okay";
+
+       isl29023@44 {
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinctrl_isl29023>;
+               compatible = "fsl,isl29023";
+               reg = <0x44>;
+               rext = <499>;
+               interrupt-parent = <&gpio4>;
+               interrupts = <11 2>;
+       };
+
+       fxos8700@1e {
+               compatible = "fsl,fxos8700";
+               reg = <0x1e>;
+               interrupt-open-drain;
+       };
+
+       fxas2100x@20 {
+               compatible = "fsl,fxas2100x";
+               reg = <0x20>;
+               interrupt-open-drain;
+       };
+
+       mpl3115@60 {
+               compatible = "fsl,mpl3115";
+               reg = <0x60>;
+               interrupt-open-drain;
+       };
+};
+
 &i2c1 {
        #address-cells = <1>;
        #size-cells = <0>;