]> www.infradead.org Git - linux.git/commitdiff
arm64: dts: imx8qm-mek: add i2c in mipi[0,1] subsystem
authorFrank Li <Frank.Li@nxp.com>
Mon, 1 Jul 2024 15:03:33 +0000 (11:03 -0400)
committerShawn Guo <shawnguo@kernel.org>
Wed, 4 Sep 2024 09:36:23 +0000 (17:36 +0800)
Add i2c node in mipi[0,1] subystem for imx8qm-mek.

Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8qm-mek.dts

index ff47125aecdde4179b249b99668727c0c68868db..ecc7ac5ece4d774924bcb65ac0330d6ce72e811e 100644 (file)
        status = "okay";
 };
 
+&i2c0_mipi0 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_mipi0_lpi2c0>;
+       clock-frequency = <100000>;
+       status = "okay";
+};
+
+&i2c0_mipi1 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_mipi1_lpi2c0>;
+       clock-frequency = <100000>;
+       status = "okay";
+};
+
 &flexcan1 {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_flexcan1>;
                >;
        };
 
+       pinctrl_mipi0_lpi2c0: mipi0_lpi2c0grp {
+               fsl,pins = <
+                       IMX8QM_MIPI_DSI0_I2C0_SCL_MIPI_DSI0_I2C0_SCL      0xc6000020
+                       IMX8QM_MIPI_DSI0_I2C0_SDA_MIPI_DSI0_I2C0_SDA      0xc6000020
+                       IMX8QM_MIPI_DSI0_GPIO0_01_LSIO_GPIO1_IO19         0x00000020
+               >;
+       };
+
+       pinctrl_mipi1_lpi2c0: mipi1_lpi2c0grp {
+               fsl,pins = <
+                       IMX8QM_MIPI_DSI1_I2C0_SCL_MIPI_DSI1_I2C0_SCL      0xc6000020
+                       IMX8QM_MIPI_DSI1_I2C0_SDA_MIPI_DSI1_I2C0_SDA      0xc6000020
+                       IMX8QM_MIPI_DSI1_GPIO0_01_LSIO_GPIO1_IO23         0x00000020
+               >;
+       };
+
        pinctrl_flexspi0: flexspi0grp {
                fsl,pins = <
                        IMX8QM_QSPI0A_DATA0_LSIO_QSPI0A_DATA0     0x06000021