]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: imx8mp-skov: move I2C2 pin control group into DTSI
authorAhmad Fatoum <a.fatoum@pengutronix.de>
Tue, 18 Feb 2025 18:38:15 +0000 (19:38 +0100)
committerShawn Guo <shawnguo@kernel.org>
Tue, 11 Mar 2025 01:40:17 +0000 (09:40 +0800)
I2C2 is exposed on a pin header on the base board, so its pinmux is
always the same if it's enabled.

Therefore, move the definition to the common DTSI, so board DTs only
need to override the status to enable it.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mp-skov-reva.dtsi
arch/arm64/boot/dts/freescale/imx8mp-skov-revb-mi1010ait-1cp1.dts

index b5e34e9d5a9085ff3404ae9c2cde1f74b9bc0c8c..e1a8aed511cd2a67a15356bc23b0e0a3f336b522 100644 (file)
        };
 };
 
+&i2c2 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_i2c2>;
+};
+
 &i2c3 {
        clock-frequency = <400000>;
        pinctrl-names = "default";
                >;
        };
 
+       pinctrl_i2c2: i2c2grp {
+               fsl,pins = <
+                       MX8MP_IOMUXC_I2C2_SCL__I2C2_SCL                         0x400001c2
+                       MX8MP_IOMUXC_I2C2_SDA__I2C2_SDA                         0x400001c2
+               >;
+       };
+
        pinctrl_i2c3: i2c3grp {
                fsl,pins = <
                        MX8MP_IOMUXC_I2C3_SCL__I2C3_SCL                         0x400001c2
index a13f6d76a495936575ead53e4ea69ed39f80d61c..45c9a6d55bc92c549d4d14895a24fa95632283a4 100644 (file)
@@ -27,8 +27,6 @@
 
 &i2c2 {
        clock-frequency = <100000>;
-       pinctrl-names = "default";
-       pinctrl-0 = <&pinctrl_i2c2>;
        status = "okay";
 
        touchscreen@38 {
        voltage-table = <3160000 73>;
        status = "okay";
 };
-
-&iomuxc {
-       pinctrl_i2c2: i2c2grp {
-               fsl,pins = <
-                       MX8MP_IOMUXC_I2C2_SCL__I2C2_SCL                         0x400001c2
-                       MX8MP_IOMUXC_I2C2_SDA__I2C2_SDA                         0x400001c2
-               >;
-       };
-};