ramips: mt7621-dts: do not claim rgmii2 group as gpio for certain devices

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>
This commit is contained in:
Arınç ÜNAL 2022-08-14 10:44:12 +03:00 committed by Hauke Mehrtens
parent 4807bd6a00
commit 271456abd8
11 changed files with 23 additions and 46 deletions

View File

@ -163,9 +163,13 @@
};
};
&ethernet {
pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
};
&state_default {
gpio {
groups = "jtag", "uart2", "uart3", "wdt";
groups = "jtag", "uart2", "uart3", "wdt", "rgmii2";
function = "gpio";
};
};

View File

@ -152,10 +152,6 @@
};
};
&ethernet {
pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
};
&switch0 {
ports {
port@0 {
@ -187,7 +183,7 @@
&state_default {
gpio {
groups = "i2c", "uart2", "uart3", "rgmii2", "sdhci";
groups = "i2c", "uart2", "uart3", "sdhci";
function = "gpio";
};
};

View File

@ -149,7 +149,7 @@
&state_default {
gpio {
groups = "i2c", "uart2", "uart3", "rgmii2", "sdhci";
groups = "i2c", "uart2", "uart3", "sdhci";
function = "gpio";
};
};
@ -172,10 +172,6 @@
};
};
&ethernet {
pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
};
&gmac0 {
nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";

View File

@ -32,7 +32,7 @@
&state_default {
gpio {
groups = "uart2", "rgmii2";
groups = "uart2";
function = "gpio";
};
};
@ -112,10 +112,6 @@
status = "okay";
};
&ethernet {
pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
};
&gmac0 {
nvmem-cells = <&macaddr_factory_5>;
nvmem-cell-names = "mac-address";

View File

@ -39,10 +39,6 @@
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";
};
};

View File

@ -163,11 +163,6 @@
};
};
&ethernet {
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &mdio_pins>;
};
&gmac0 {
nvmem-cells = <&macaddr_config_8>;
nvmem-cell-names = "mac-address";

View File

@ -120,11 +120,6 @@
};
};
&ethernet {
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &mdio_pins>;
};
&pcie {
status = "okay";
};

View File

@ -148,10 +148,6 @@
};
};
&ethernet {
pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
};
&gmac0 {
nvmem-cells = <&macaddr_factory_e000>;
nvmem-cell-names = "mac-address";
@ -190,7 +186,7 @@
&state_default {
gpio {
groups = "i2c", "rgmii2", "uart2", "wdt";
groups = "i2c", "uart2", "wdt";
function = "gpio";
};
};

View File

@ -143,10 +143,6 @@
};
};
&ethernet {
pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
};
&gmac0 {
nvmem-cells = <&macaddr_factory_e000>;
nvmem-cell-names = "mac-address";
@ -163,7 +159,7 @@
&state_default {
gpio {
groups = "i2c", "rgmii2", "uart3", "jtag", "wdt";
groups = "i2c", "uart3", "jtag", "wdt";
function = "gpio";
};
};

View File

@ -141,11 +141,7 @@
&state_default {
gpio {
groups = "uart3", "rgmii2";
groups = "uart3";
function = "gpio";
};
};
&ethernet {
pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
};

View File

@ -43,3 +43,14 @@
};
};
};
&ethernet {
pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
};
&state_default {
gpio {
groups = "uart3", "rgmii2";
function = "gpio";
};
};