ramips: mt7621-dts: add pinctrl properties for ethernet
authorArınç ÜNAL <arinc.unal@arinc9.com>
Mon, 14 Feb 2022 07:00:40 +0000 (10:00 +0300)
committerPetr Štetiar <ynezz@true.cz>
Sat, 26 Feb 2022 12:36:30 +0000 (13:36 +0100)
Add the missing pinctrl properties on the ethernet node.
GMAC1 will start working with this change.

Link: https://lore.kernel.org/netdev/83a35aa3-6cb8-2bc4-2ff4-64278bbcd8c8@arinc9.com/
Overwrite pinctrl-0 property without rgmii2_pins on devicetrees which use
the rgmii2 pins as GPIO (22 - 33).

Give gpio function to rgmii2 pin group on mt7621_tplink_archer-x6-v3.dtsi
which uses GPIO 28.

Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
27 files changed:
target/linux/ramips/dts/mt7621.dtsi
target/linux/ramips/dts/mt7621_alfa-network_quad-e4g.dts
target/linux/ramips/dts/mt7621_buffalo_wsr-1166dhp.dts
target/linux/ramips/dts/mt7621_buffalo_wsr-600dhp.dts
target/linux/ramips/dts/mt7621_d-team_pbr-m1.dts
target/linux/ramips/dts/mt7621_firefly_firewrt.dts
target/linux/ramips/dts/mt7621_gnubee_gb-pc1.dts
target/linux/ramips/dts/mt7621_gnubee_gb-pc2.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_mikrotik_routerboard-m11g.dts
target/linux/ramips/dts/mt7621_mtc_wr1201.dts
target/linux/ramips/dts/mt7621_netgear_ex6150.dts
target/linux/ramips/dts/mt7621_sercomm_na502.dts
target/linux/ramips/dts/mt7621_telco-electronics_x1.dts
target/linux/ramips/dts/mt7621_tplink_archer-x6-v3.dtsi
target/linux/ramips/dts/mt7621_tplink_re350-v1.dts
target/linux/ramips/dts/mt7621_tplink_rexx0-v1.dtsi
target/linux/ramips/dts/mt7621_ubnt_edgerouter-x.dtsi
target/linux/ramips/dts/mt7621_wavlink_wl-wn531a6.dts
target/linux/ramips/dts/mt7621_wevo_w2914ns-v2.dtsi
target/linux/ramips/dts/mt7621_winstars_ws-wn583a6.dts
target/linux/ramips/dts/mt7621_xzwifi_creativebox-v1.dts
target/linux/ramips/dts/mt7621_zbtlink_zbt-wg1602.dtsi
target/linux/ramips/dts/mt7621_zbtlink_zbt-wg2626.dts
target/linux/ramips/dts/mt7621_zbtlink_zbt-wg3526.dtsi
target/linux/ramips/dts/mt7621_zyxel_nr7101.dts

index bfb66740a218f80c9065bcea50685b6f1077d438..09124072bd7e6e9e3c23095ba7744558587f0b71 100644 (file)
 
                mediatek,ethsys = <&sysc>;
 
+               pinctrl-names = "default";
+               pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>, <&rgmii2_pins>;
+
                gmac0: mac@0 {
                        compatible = "mediatek,eth-mac";
                        reg = <0>;
index 8c6fdab04f8089a8ac1a761db65376523b355615..cc048d44879be639d42477eacc36dc8410e0be75 100644 (file)
        };
 };
 
+&ethernet {
+       pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
+};
+
 &gmac0 {
        nvmem-cells = <&macaddr_factory_e000>;
        nvmem-cell-names = "mac-address";
index f9211463f85971c7ae6de26107a887ffccad60ad..74d8fbe1d1e1b3282094511bcf66fcf34b1e2cf8 100644 (file)
        };
 };
 
+&ethernet {
+       pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
+};
+
 &switch0 {
        ports {
                port@0 {
index 5d20b6e28a8d7e6c4ceab9540c170c67de4cf78a..0f3b0fd8f010c23b253f35b48617227e43c3eafd 100644 (file)
        };
 };
 
+&ethernet {
+       pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
+};
+
 &gmac0 {
        nvmem-cells = <&macaddr_factory_4>;
        nvmem-cell-names = "mac-address";
index d30e4d19536b6dacb9fbec5e693ce54c99110985..03b593e093d11c345049343357ead336e7562baf 100644 (file)
        };
 };
 
+&ethernet {
+       pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
+};
+
 &gmac0 {
        nvmem-cells = <&macaddr_factory_e000>;
        nvmem-cell-names = "mac-address";
index 9da515f017b7432a25c7e578249ccc419a8596f7..46954b616f01f89e9d80a43ce21b0cf4d193bc1c 100644 (file)
        };
 };
 
+&ethernet {
+       pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
+};
+
 &gmac0 {
        nvmem-cells = <&macaddr_factory_e000>;
        nvmem-cell-names = "mac-address";
index db760381a45aeb2fc87636d271d91d6487ee90bb..6854d56266eac3f9bc590d6fdb194e5ce07186f1 100644 (file)
        status = "okay";
 };
 
+&ethernet {
+       pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
+};
+
 &gmac0 {
        nvmem-cells = <&macaddr_factory_e000>;
        nvmem-cell-names = "mac-address";
index a3ef3a01043caa81647219908de70a3908742d07..de113c2a5ab06dc9ef9a44dba32c8c036da2961f 100644 (file)
        status = "okay";
 };
 
+&ethernet {
+       pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
+};
+
 &gmac0 {
        nvmem-cells = <&macaddr_factory_e000>;
        nvmem-cell-names = "mac-address";
index 73dfbef27fcf74d7ceacd265e2c9547d57740dd7..43cf502b0b25f35dee1437f234ed877be5186a66 100644 (file)
        status = "okay";
 };
 
+&ethernet {
+       pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
+};
+
 &gmac0 {
        nvmem-cells = <&macaddr_factory_5>;
        nvmem-cell-names = "mac-address";
index c86eea0de5758d1c3d9763a563791c31843565e8..ce627d6621a7e84cff9679d6cfd6af7d00be078f 100644 (file)
        status = "okay";
 };
 
+&ethernet {
+       pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
+};
+
 &switch0 {
        ports {
                port@0 {
index 20a834a3ebfee5e7b5c5154c8428436b4b66bf95..eacbbda54d6870a612afd8081ee30f83a2717fa9 100644 (file)
        };
 };
 
+&ethernet {
+       pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
+};
+
 &switch0 {
        ports {
                port@0 {
index b1b020b3a856b80fef98cebb3a53c500b1bd93f9..0f45743d6f4f8fbc685ecddab8d46cedca4a4c94 100644 (file)
        };
 };
 
+&ethernet {
+       pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
+};
+
 &gmac0 {
        nvmem-cells = <&macaddr_factory_4>;
        nvmem-cell-names = "mac-address";
index 360bcbb77d46c7ee9b86e0d2630b43b12b083257..1695e9c845cc366b979a7f04d561afce2a6e5251 100644 (file)
        };
 };
 
+&ethernet {
+       pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
+};
+
 &gmac0 {
        nvmem-cells = <&macaddr_factory_4>;
        nvmem-cell-names = "mac-address";
index ee77e303624cd1b0dbe1e084efd1adfe28eff6a0..9ec4cf77888cf87e5c92308dc9dbc8a897f6b71b 100644 (file)
        };
 };
 
+&ethernet {
+       pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
+};
+
 &gmac0 {
        nvmem-cells = <&macaddr_factory_e000>;
        nvmem-cell-names = "mac-address";
index ce700e0c2b92a3e812782209fa8a8cfec8d521a7..23e85f990229d8258a28664e98fdb73ec50f705f 100644 (file)
        };
 };
 
+&ethernet {
+       pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
+};
+
 &gmac0 {
        nvmem-cells = <&macaddr_factory_e006>;
        nvmem-cell-names = "mac-address";
index 3cc738530cc48ac57f444fccba022048250f25e7..6454273f496a46dc174b79d2f9907e66f34bfbb7 100644 (file)
 
 &state_default {
        gpio {
-               groups =  "i2c", "uart2", "uart3", "jtag", "wdt";
+               groups =  "i2c", "rgmii2", "uart2", "uart3", "jtag", "wdt";
                function = "gpio";
        };
 };
        };
 };
 
+&ethernet {
+       pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
+};
+
 &gmac0 {
        nvmem-cells = <&macaddr_config_8>;
        nvmem-cell-names = "mac-address";
index 3df4bc5d64fa103f42661f1d577accb10f6decb9..866abf87c613a181841f84d445f92fd3fb47d08b 100644 (file)
        };
 };
 
+&ethernet {
+       pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
+};
+
 &gmac0 {
        nvmem-cells = <&macaddr_config_10008>;
        nvmem-cell-names = "mac-address";
index 6cb6c0e460b5ca707d03baf1f7f23b1f2aa11dab..f67c0e3c6d9011f8bdccf9d161093116c41916c0 100644 (file)
        };
 };
 
+&ethernet {
+       pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
+};
+
 &gmac0 {
        nvmem-cells = <&macaddr_config_10008>;
        nvmem-cell-names = "mac-address";
index e968c4e6850d5cc9fae7abbadbe82f06b8eb336a..dcc84d7ccc15e25afd95d5350495b6064685501f 100644 (file)
        };
 };
 
+&ethernet {
+       pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
+};
+
 &gmac0 {
        nvmem-cells = <&macaddr_factory_22>;
        nvmem-cell-names = "mac-address";
index 252ade4854feef1096826624d119e871fa31e521..f8c6bffb403de43581495f28cbd262ad4ce543dc 100644 (file)
        };
 };
 
+&ethernet {
+       pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
+};
+
 &gmac0 {
        nvmem-cells = <&macaddr_factory_e000>;
        nvmem-cell-names = "mac-address";
index 005cc619c6177102e46798a51057f4433284b954..cfd2344d21c6877df5d33f1ccc595132447a0862 100644 (file)
        };
 };
 
+&ethernet {
+       pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
+};
+
 &gmac0 {
        nvmem-cells = <&macaddr_factory_e000>;
        nvmem-cell-names = "mac-address";
index af6181b6d01c38131ac7cbb15a0eab03b296a77f..ec81839d1d24908a45f265ab148790929acbdb63 100644 (file)
        };
 };
 
+&ethernet {
+       pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
+};
+
 &gmac0 {
        nvmem-cells = <&macaddr_factory_e000>;
        nvmem-cell-names = "mac-address";
index 6e04f9a49346cae509323450261ee1ec9a5dc878..32f7e5056a313c6e8352e90af6935e85e821c1aa 100644 (file)
        };
 };
 
+&ethernet {
+       pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
+};
+
 &gmac0 {
        nvmem-cells = <&macaddr_factory_e000>;
        nvmem-cell-names = "mac-address";
index e377a134448846dbcea91327998162aa07753c88..4830206ae14233b99ad39aeafb2e6c3cb747763d 100644 (file)
        };
 };
 
+&ethernet {
+       pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
+};
+
 &gmac0 {
        nvmem-cells = <&macaddr_factory_e000>;
        nvmem-cell-names = "mac-address";
index e33fac8db10788a72a72e2cfbd3569e288838e64..a1d6af94662bc952d916070c7e8c5b8e46e1f434 100644 (file)
        };
 };
 
+&ethernet {
+       pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
+};
+
 &gmac0 {
        nvmem-cells = <&macaddr_factory_e000>;
        nvmem-cell-names = "mac-address";
index 01269e1c1cf108b4c2e98d89aeeff727183d26ec..9af057378d184b1b061912a224ea69528b3a6654 100644 (file)
        };
 };
 
+&ethernet {
+       pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
+};
+
 &gmac0 {
        nvmem-cells = <&macaddr_factory_e000>;
        nvmem-cell-names = "mac-address";
index 2a0bc6f8fd0d2d1ac14e773bc4d2fea3e540e379..71eb4c9414bdf0793202ef3dea265d3a0e1fd78f 100644 (file)
        };
 };
 
+&ethernet {
+       pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
+};
+
 &gmac0 {
        nvmem-cells = <&macaddr_factory_e000>;
        nvmem-cell-names = "mac-address";