arm64: dts: imx8mm-phyboard-polis: Add i2c4 sda-/scl-gpios
authorCem Tenruh <c.tenruh@phytec.de>
Fri, 16 Jun 2023 09:50:11 +0000 (11:50 +0200)
committerShawn Guo <shawnguo@kernel.org>
Tue, 18 Jul 2023 01:52:41 +0000 (09:52 +0800)
Add i2c4 sda-/scl-gpios with the corresponding pinmux entries.

Signed-off-by: Cem Tenruh <c.tenruh@phytec.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-rdk.dts

index e6cc87cfe7a189253ec312643532662ce5d1851d..14e3172843bcd06e75d86b5dc49a58911e4b8410 100644 (file)
 
 &i2c4 {
        clock-frequency = <400000>;
-       pinctrl-names = "default";
+       pinctrl-names = "default", "gpio";
        pinctrl-0 = <&pinctrl_i2c4>;
+       pinctrl-1 = <&pinctrl_i2c4_gpio>;
+       sda-gpios = <&gpio5 21 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
+       scl-gpios = <&gpio5 20 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
 };
 
 /* PCIe */
                >;
        };
 
+       pinctrl_i2c4_gpio: i2c4gpiogrp {
+               fsl,pins = <
+                       MX8MM_IOMUXC_I2C4_SCL_GPIO5_IO20        0x1e2
+                       MX8MM_IOMUXC_I2C4_SDA_GPIO5_IO21        0x1e2
+               >;
+       };
+
        pinctrl_leds: leds1grp {
                fsl,pins = <
                        MX8MM_IOMUXC_GPIO1_IO01_GPIO1_IO1       0x16