ramips: mt7621-dts: do not claim rgmii2 group as gpio for certain devices
authorArınç ÜNAL <arinc.unal@arinc9.com>
Sun, 14 Aug 2022 07:44:12 +0000 (10:44 +0300)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 20 Aug 2022 20:56:12 +0000 (22:56 +0200)
These devices do not use rgmii2 as gpio, therefore remove rgmii2 pin group
from state-default. Remove overwriting the ethernet node for these devices.

Move claiming the rgmii2 group from mt7621_zyxel_nwa-ax.dtsi to
mt7621_zyxel_nwa50ax.dts as it's only the latter using rgmii2 pins as gpio.

Remove duplicate ethernet overwrite from mt7621_tplink_archer-x6-v3.dtsi.

Claim rgmii2 group as gpio on mt7621_bolt_arion.dts as it uses an rgmii2
pin, 26, as gpio.

Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
target/linux/ramips/dts/mt7621_bolt_arion.dts
target/linux/ramips/dts/mt7621_buffalo_wsr-1166dhp.dts
target/linux/ramips/dts/mt7621_buffalo_wsr-600dhp.dts
target/linux/ramips/dts/mt7621_mediatek_ap-mt7621a-v60.dts
target/linux/ramips/dts/mt7621_mediatek_mt7621-eval-board.dts
target/linux/ramips/dts/mt7621_tplink_archer-c6u-v1.dts
target/linux/ramips/dts/mt7621_tplink_archer-x6-v3.dtsi
target/linux/ramips/dts/mt7621_zbtlink_zbt-wg1602.dtsi
target/linux/ramips/dts/mt7621_zyxel_nr7101.dts
target/linux/ramips/dts/mt7621_zyxel_nwa-ax.dtsi
target/linux/ramips/dts/mt7621_zyxel_nwa50ax.dts

index a665b7b14330b3b4d406ed52e53b2e63c96da9a4..7ba413932ea9fa9a7e01c71e330a4d1442435b07 100644 (file)
        };
 };
 
+&ethernet {
+       pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
+};
+
 &state_default {
        gpio {
-               groups = "jtag", "uart2", "uart3", "wdt";
+               groups = "jtag", "uart2", "uart3", "wdt", "rgmii2";
                function = "gpio";
        };
 };
index 74d8fbe1d1e1b3282094511bcf66fcf34b1e2cf8..5a259e154c578f8f64d5b94552079bfb6a75782e 100644 (file)
        };
 };
 
-&ethernet {
-       pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
-};
-
 &switch0 {
        ports {
                port@0 {
 
 &state_default {
        gpio {
-               groups = "i2c", "uart2", "uart3", "rgmii2", "sdhci";
+               groups = "i2c", "uart2", "uart3", "sdhci";
                function = "gpio";
        };
 };
index 0f3b0fd8f010c23b253f35b48617227e43c3eafd..15d055bee65d9459344869d89403293d823aead4 100644 (file)
 
 &state_default {
        gpio {
-               groups = "i2c", "uart2", "uart3", "rgmii2", "sdhci";
+               groups = "i2c", "uart2", "uart3", "sdhci";
                function = "gpio";
        };
 };
        };
 };
 
-&ethernet {
-       pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
-};
-
 &gmac0 {
        nvmem-cells = <&macaddr_factory_4>;
        nvmem-cell-names = "mac-address";
index 43cf502b0b25f35dee1437f234ed877be5186a66..a89d9189c09367dff55cf643a87a7c4f4c5f5313 100644 (file)
@@ -32,7 +32,7 @@
 
 &state_default {
        gpio {
-               groups = "uart2", "rgmii2";
+               groups = "uart2";
                function = "gpio";
        };
 };
        status = "okay";
 };
 
-&ethernet {
-       pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
-};
-
 &gmac0 {
        nvmem-cells = <&macaddr_factory_5>;
        nvmem-cell-names = "mac-address";
index ce627d6621a7e84cff9679d6cfd6af7d00be078f..dcdcc261b3fb2d1e0bd2476c8cb005d778152400 100644 (file)
        status = "okay";
 };
 
-&ethernet {
-       pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
-};
-
 &switch0 {
        ports {
                port@0 {
@@ -74,7 +70,7 @@
 
 &state_default {
        gpio {
-               groups = "i2c", "uart2", "uart3", "rgmii2", "sdhci";
+               groups = "i2c", "uart2", "uart3", "sdhci";
                function = "gpio";
        };
 };
index 93ceeb08f4cfa6a67e1861ef8d17425a5b380e62..67668657bd147d51f6dc34b26a157e39d9a230c5 100644 (file)
        };
 };
 
-&ethernet {
-       pinctrl-names = "default";
-       pinctrl-0 = <&rgmii1_pins &mdio_pins>;
-};
-
 &gmac0 {
        nvmem-cells = <&macaddr_config_8>;
        nvmem-cell-names = "mac-address";
index 6454273f496a46dc174b79d2f9907e66f34bfbb7..217c1b60fe429f040b1240ac82b34263faa8d1c3 100644 (file)
        };
 };
 
-&ethernet {
-       pinctrl-names = "default";
-       pinctrl-0 = <&rgmii1_pins &mdio_pins>;
-};
-
 &pcie {
        status = "okay";
 };
index 4830206ae14233b99ad39aeafb2e6c3cb747763d..356cf4b442f267f0c25d180e37e264c325596c9c 100644 (file)
        };
 };
 
-&ethernet {
-       pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
-};
-
 &gmac0 {
        nvmem-cells = <&macaddr_factory_e000>;
        nvmem-cell-names = "mac-address";
 
 &state_default {
        gpio {
-               groups = "i2c", "rgmii2", "uart2", "wdt";
+               groups = "i2c", "uart2", "wdt";
                function = "gpio";
        };
 };
index 71eb4c9414bdf0793202ef3dea265d3a0e1fd78f..63d992973aa027c11a43d2953f716dbc11196443 100644 (file)
        };
 };
 
-&ethernet {
-       pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
-};
-
 &gmac0 {
        nvmem-cells = <&macaddr_factory_e000>;
        nvmem-cell-names = "mac-address";
 
 &state_default {
        gpio {
-               groups = "i2c", "rgmii2", "uart3", "jtag", "wdt";
+               groups = "i2c", "uart3", "jtag", "wdt";
                function = "gpio";
        };
 };
index e1353346a8e04dcab1f6a658bbe074ccd3274d23..fa7e23dd47133cf64dfe2234551c37b236975fb5 100644 (file)
 
 &state_default {
        gpio {
-               groups = "uart3", "rgmii2";
+               groups = "uart3";
                function = "gpio";
        };
 };
-
-&ethernet {
-       pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
-};
index 70323f2422506858076a52b132b50d3cb467555b..62ba49e797ee56d87e8e9e0d506012c66fc99643 100644 (file)
                };
        };
 };
+
+&ethernet {
+       pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
+};
+
+&state_default {
+        gpio {
+                groups = "uart3", "rgmii2";
+                function = "gpio";
+        };
+};