1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-10-18 21:48:23 +02:00

ramips: mt7621-dts: mux phy0/4 to gmac1

Mux the MT7530 switch's phy0/4 to the SoC's gmac1 on devices where RGMII2
pins are available. This achieves 2 Gbps total bandwidth to the CPU using
the second RGMII.

The ports called "wan" are muxed where possible. On a minority of devices,
this is not possible. Those cases:

mt7621_ampedwireless_ally-r1900k.dts: lan3
mt7621_ubnt_edgerouter-x.dts: eth0
mt7621_gnubee_gb-pc1.dts: ethblue
mt7621_linksys_re6500.dts: lan1
mt7621_netgear_wac104.dts: lan4
mt7621_tplink_eap235-wall-v1.dts: lan0
mt7621_tplink_eap615-wall-v1.dts: lan0
mt7621_ubnt_usw-flex.dts: lan1

The "wan" port is just what the vendor designated on the board/plastic
chasis of the device. On a technical level, there is no difference between
a lan and wan port on MT7621AT, MT7621DAT and MT7621ST SoCs. Prefer
connecting to WAN via the port described above for these devices to benefit
the feature brought with this patch.

mt7621_d-team_newifi-d2.dts cannot benefit this feature, although it looks
like it should, because the rgmii2 pins are wired to unused components.

Tested on a range of devices documented on the GitHub PR.

Link: https://github.com/openwrt/openwrt/pull/10238
Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
This commit is contained in:
Arınç ÜNAL 2022-07-06 01:20:32 +03:00 committed by Hauke Mehrtens
parent 81bd10e4a2
commit f1c9afd801
113 changed files with 1429 additions and 635 deletions

@ -105,6 +105,22 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy4>;
nvmem-cells = <&macaddr_factory_e00c>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
&mdio {
ethphy4: ethernet-phy@4 {
reg = <4>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 { port@0 {
@ -126,14 +142,6 @@
status = "okay"; status = "okay";
label = "lan4"; label = "lan4";
}; };
port@4 {
status = "okay";
label = "wan";
nvmem-cells = <&macaddr_factory_e00c>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
}; };
}; };

@ -110,6 +110,22 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy4>;
nvmem-cells = <&macaddr_factory_e000>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
&mdio {
ethphy4: ethernet-phy@4 {
reg = <4>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 { port@0 {
@ -131,14 +147,6 @@
status = "okay"; status = "okay";
label = "lan4"; label = "lan4";
}; };
port@4 {
status = "okay";
label = "wan";
nvmem-cells = <&macaddr_factory_e000>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
}; };
}; };

@ -7,6 +7,18 @@
model = "Amped Wireless ALLY-R1900K"; model = "Amped Wireless ALLY-R1900K";
}; };
&gmac1 {
status = "okay";
label = "lan3";
phy-handle = <&ethphy4>;
};
&mdio {
ethphy4: ethernet-phy@4 {
reg = <4>;
};
};
&switch0 { &switch0 {
ports { ports {
port@1 { port@1 {
@ -23,10 +35,5 @@
status = "okay"; status = "okay";
label = "lan2"; label = "lan2";
}; };
port@4 {
status = "okay";
label = "lan3";
};
}; };
}; };

@ -171,6 +171,21 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy4>;
nvmem-cells = <&macaddr_factory_fff0>;
nvmem-cell-names = "mac-address";
};
&mdio {
ethphy4: ethernet-phy@4 {
reg = <4>;
};
};
&switch0 { &switch0 {
ports { ports {
port@2 { port@2 {
@ -182,11 +197,6 @@
status = "okay"; status = "okay";
label = "lan1"; label = "lan1";
}; };
port@4 {
status = "okay";
label = "wan";
};
}; };
}; };

@ -7,19 +7,27 @@
model = "AsiaRF AP7621-001"; model = "AsiaRF AP7621-001";
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy4>;
nvmem-cells = <&macaddr_factory_e000>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
&mdio {
ethphy4: ethernet-phy@4 {
reg = <4>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 { port@0 {
status = "okay"; status = "okay";
label = "lan"; label = "lan";
}; };
port@4 {
status = "okay";
label = "wan";
nvmem-cells = <&macaddr_factory_e000>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
}; };
}; };

@ -7,16 +7,24 @@
model = "AsiaRF AP7621-NV1"; model = "AsiaRF AP7621-NV1";
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy0>;
nvmem-cells = <&macaddr_factory_e000>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
&mdio {
ethphy0: ethernet-phy@0 {
reg = <0>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 {
status = "okay";
label = "wan";
nvmem-cells = <&macaddr_factory_e000>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
port@2 { port@2 {
status = "okay"; status = "okay";
label = "lan1"; label = "lan1";

@ -134,15 +134,23 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy0>;
nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address";
};
&mdio {
ethphy0: ethernet-phy@0 {
reg = <0>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 {
status = "okay";
label = "wan";
nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address";
};
port@1 { port@1 {
status = "okay"; status = "okay";
label = "lan1"; label = "lan1";

@ -135,13 +135,23 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy0>;
nvmem-cells = <&macaddr_factory_e000>;
nvmem-cell-names = "mac-address";
};
&mdio {
ethphy0: ethernet-phy@0 {
reg = <0>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 {
status = "okay";
label = "wan";
};
port@1 { port@1 {
status = "okay"; status = "okay";
label = "lan1"; label = "lan1";

@ -126,13 +126,23 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy0>;
nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
};
&mdio {
ethphy0: ethernet-phy@0 {
reg = <0>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 {
status = "okay";
label = "wan";
};
port@1 { port@1 {
status = "okay"; status = "okay";
label = "lan1"; label = "lan1";

@ -10,7 +10,7 @@
model = "ASUS RT-N56U B1"; model = "ASUS RT-N56U B1";
aliases { aliases {
label-mac-device = &wan; label-mac-device = &gmac1;
led-boot = &led_power; led-boot = &led_power;
led-failsafe = &led_power; led-failsafe = &led_power;
led-running = &led_power; led-running = &led_power;
@ -144,6 +144,21 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy4>;
nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
};
&mdio {
ethphy4: ethernet-phy@4 {
reg = <4>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 { port@0 {
@ -165,13 +180,6 @@
status = "okay"; status = "okay";
label = "lan1"; label = "lan1";
}; };
wan: port@4 {
status = "okay";
label = "wan";
nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
};
}; };
}; };

@ -202,17 +202,24 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy0>;
nvmem-cells = <&macaddr_factory_21000>;
nvmem-cell-names = "mac-address";
mac-address-increment = <(1)>;
};
&mdio {
ethphy0: ethernet-phy@0 {
reg = <0>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 {
status = "okay";
label = "wan";
nvmem-cells = <&macaddr_factory_21000>;
nvmem-cell-names = "mac-address";
mac-address-increment = <(1)>;
};
port@1 { port@1 {
status = "okay"; status = "okay";
label = "lan1"; label = "lan1";

@ -202,17 +202,24 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy0>;
nvmem-cells = <&macaddr_factory_21000>;
nvmem-cell-names = "mac-address";
mac-address-increment = <(1)>;
};
&mdio {
ethphy0: ethernet-phy@0 {
reg = <0>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 {
status = "okay";
label = "wan";
nvmem-cells = <&macaddr_factory_21000>;
nvmem-cell-names = "mac-address";
mac-address-increment = <(1)>;
};
port@1 { port@1 {
status = "okay"; status = "okay";
label = "lan1"; label = "lan1";

@ -152,6 +152,18 @@
}; };
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy4>;
};
&mdio {
ethphy4: ethernet-phy@4 {
reg = <4>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 { port@0 {
@ -173,11 +185,6 @@
status = "okay"; status = "okay";
label = "lan4"; label = "lan4";
}; };
port@4 {
status = "okay";
label = "wan";
};
}; };
}; };

@ -169,13 +169,24 @@
mac-address-increment = <(-1)>; mac-address-increment = <(-1)>;
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy0>;
nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mac-address-increment = <(-1)>;
};
&mdio {
ethphy0: ethernet-phy@0 {
reg = <0>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 {
status = "okay";
label = "wan";
};
port@1 { port@1 {
status = "okay"; status = "okay";
label = "lan4"; label = "lan4";

@ -177,6 +177,21 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy4>;
nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
};
&mdio {
ethphy4: ethernet-phy@4 {
reg = <4>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 { port@0 {
@ -198,11 +213,6 @@
status = "okay"; status = "okay";
label = "lan4"; label = "lan4";
}; };
port@4 {
status = "okay";
label = "wan";
};
}; };
}; };

@ -159,6 +159,22 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy4>;
nvmem-cells = <&macaddr_bdinfo_de00>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
&mdio {
ethphy4: ethernet-phy@4 {
reg = <4>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 { port@0 {
@ -180,14 +196,6 @@
status = "okay"; status = "okay";
label = "lan1"; label = "lan1";
}; };
port@4 {
status = "okay";
label = "wan";
nvmem-cells = <&macaddr_bdinfo_de00>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
}; };
}; };

@ -169,6 +169,22 @@
}; };
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy4>;
nvmem-cells = <&macaddr_bdinfo_de00>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
&mdio {
ethphy4: ethernet-phy@4 {
reg = <4>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 { port@0 {
@ -190,15 +206,6 @@
status = "okay"; status = "okay";
label = "lan4"; label = "lan4";
}; };
port@4 {
status = "okay";
label = "wan";
nvmem-cells = <&macaddr_bdinfo_de00>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
}; };
}; };

@ -128,6 +128,22 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy4>;
nvmem-cells = <&macaddr_bdinfo_de00>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
&mdio {
ethphy4: ethernet-phy@4 {
reg = <4>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 { port@0 {
@ -149,14 +165,6 @@
status = "okay"; status = "okay";
label = "lan4"; label = "lan4";
}; };
port@4 {
status = "okay";
label = "wan";
nvmem-cells = <&macaddr_bdinfo_de00>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
}; };
}; };

@ -169,6 +169,21 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy4>;
nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address";
};
&mdio {
ethphy4: ethernet-phy@4 {
reg = <4>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 { port@0 {
@ -190,13 +205,6 @@
status = "okay"; status = "okay";
label = "lan1"; label = "lan1";
}; };
port@4 {
status = "okay";
label = "wan";
nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address";
};
}; };
}; };

@ -12,7 +12,7 @@
model = "D-Link DIR-853 R1"; model = "D-Link DIR-853 R1";
aliases { aliases {
label-mac-device = &wan; label-mac-device = &gmac1;
led-boot = &led_power_orange; led-boot = &led_power_orange;
led-failsafe = &led_power_blue; led-failsafe = &led_power_blue;
@ -110,6 +110,22 @@
mac-address-increment = <(-1)>; mac-address-increment = <(-1)>;
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy4>;
nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mac-address-increment = <(-2)>;
};
&mdio {
ethphy4: ethernet-phy@4 {
reg = <4>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 { port@0 {
@ -131,14 +147,6 @@
status = "okay"; status = "okay";
label = "lan1"; label = "lan1";
}; };
wan: port@4 {
status = "okay";
label = "wan";
nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mac-address-increment = <(-2)>;
};
}; };
}; };

@ -114,13 +114,23 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy0>;
nvmem-cells = <&macaddr_radio_4>;
nvmem-cell-names = "mac-address";
};
&mdio {
ethphy0: ethernet-phy@0 {
reg = <0>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 {
status = "okay";
label = "wan";
};
port@1 { port@1 {
status = "okay"; status = "okay";
label = "lan4"; label = "lan4";

@ -17,7 +17,7 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&wan { &gmac1 {
nvmem-cells = <&macaddr_factory_e006>; nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };

@ -17,7 +17,7 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&wan { &gmac1 {
nvmem-cells = <&macaddr_factory_e006>; nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };

@ -17,7 +17,7 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&wan { &gmac1 {
nvmem-cells = <&macaddr_factory_e006>; nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };

@ -33,7 +33,7 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&wan { &gmac1 {
nvmem-cells = <&macaddr_factory_e006>; nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };

@ -33,7 +33,7 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&wan { &gmac1 {
nvmem-cells = <&macaddr_factory_e006>; nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };

@ -90,6 +90,18 @@
}; };
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy4>;
};
&mdio {
ethphy4: ethernet-phy@4 {
reg = <4>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 { port@0 {
@ -111,11 +123,6 @@
status = "okay"; status = "okay";
label = "lan1"; label = "lan1";
}; };
wan: port@4 {
status = "okay";
label = "wan";
};
}; };
}; };

@ -154,6 +154,21 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy4>;
nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address";
};
&mdio {
ethphy4: ethernet-phy@4 {
reg = <4>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 { port@0 {
@ -175,13 +190,6 @@
status = "okay"; status = "okay";
label = "lan1"; label = "lan1";
}; };
port@4 {
status = "okay";
label = "wan";
nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address";
};
}; };
}; };

@ -122,13 +122,23 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy0>;
nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
};
&mdio {
ethphy0: ethernet-phy@0 {
reg = <0>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 {
status = "okay";
label = "wan";
};
port@1 { port@1 {
status = "okay"; status = "okay";
label = "lan4"; label = "lan4";

@ -71,15 +71,23 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy0>;
nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address";
};
&mdio {
ethphy0: ethernet-phy@0 {
reg = <0>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 {
status = "okay";
label = "wan";
nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address";
};
port@1 { port@1 {
status = "okay"; status = "okay";
label = "lan4"; label = "lan4";

@ -12,7 +12,7 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&wan { &gmac1 {
nvmem-cells = <&macaddr_factory_fffa>; nvmem-cells = <&macaddr_factory_fffa>;
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };

@ -12,7 +12,7 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&wan { &gmac1 {
nvmem-cells = <&macaddr_factory_e006>; nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };

@ -44,7 +44,7 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&wan { &gmac1 {
nvmem-cells = <&macaddr_factory_e006>; nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };

@ -44,7 +44,7 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&wan { &gmac1 {
nvmem-cells = <&macaddr_factory_e006>; nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };

@ -44,7 +44,7 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&wan { &gmac1 {
nvmem-cells = <&macaddr_factory_e006>; nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };

@ -44,7 +44,7 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&wan { &gmac1 {
nvmem-cells = <&macaddr_factory_e006>; nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };

@ -136,13 +136,20 @@
}; };
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy0>;
};
&mdio {
ethphy0: ethernet-phy@0 {
reg = <0>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 {
status = "okay";
label = "wan";
};
port@1 { port@1 {
status = "okay"; status = "okay";
label = "lan4"; label = "lan4";

@ -44,7 +44,7 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&wan { &gmac1 {
nvmem-cells = <&macaddr_factory_fffa>; nvmem-cells = <&macaddr_factory_fffa>;
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };

@ -42,7 +42,7 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&wan { &gmac1 {
nvmem-cells = <&macaddr_factory_e006>; nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };

@ -44,7 +44,7 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&wan { &gmac1 {
nvmem-cells = <&macaddr_factory_e006>; nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };

@ -11,7 +11,7 @@
led-failsafe = &led_power_green; led-failsafe = &led_power_green;
led-running = &led_power_green; led-running = &led_power_green;
led-upgrade = &led_power_green; led-upgrade = &led_power_green;
label-mac-device = &wan; label-mac-device = &gmac1;
}; };
leds: leds { leds: leds {
@ -83,13 +83,20 @@
}; };
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy0>;
};
&mdio {
ethphy0: ethernet-phy@0 {
reg = <0>;
};
};
&switch0 { &switch0 {
ports { ports {
wan: port@0 {
status = "okay";
label = "wan";
};
port@1 { port@1 {
status = "okay"; status = "okay";
label = "lan4"; label = "lan4";

@ -111,6 +111,22 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy4>;
nvmem-cells = <&macaddr_factory_e000>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
&mdio {
ethphy4: ethernet-phy@4 {
reg = <4>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 { port@0 {
@ -127,14 +143,6 @@
status = "okay"; status = "okay";
label = "lan3"; label = "lan3";
}; };
port@4 {
status = "okay";
label = "wan";
nvmem-cells = <&macaddr_factory_e000>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
}; };
}; };

@ -14,7 +14,7 @@
led-failsafe = &led_run; led-failsafe = &led_run;
led-running = &led_run; led-running = &led_run;
led-upgrade = &led_run; led-upgrade = &led_run;
label-mac-device = &wan; label-mac-device = &gmac1;
}; };
chosen { chosen {
@ -121,6 +121,21 @@
mac-address-increment = <1>; mac-address-increment = <1>;
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy4>;
nvmem-cells = <&macaddr_factory_4000>;
nvmem-cell-names = "mac-address";
};
&mdio {
ethphy4: ethernet-phy@4 {
reg = <4>;
};
};
&switch0 { &switch0 {
ports { ports {
port@2 { port@2 {
@ -132,13 +147,6 @@
status = "okay"; status = "okay";
label = "lan2"; label = "lan2";
}; };
wan: port@4 {
status = "okay";
label = "wan";
nvmem-cells = <&macaddr_factory_4000>;
nvmem-cell-names = "mac-address";
};
}; };
}; };

@ -105,17 +105,27 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&gmac1 {
status = "okay";
label = "ethblue";
phy-handle = <&ethphy4>;
nvmem-cells = <&macaddr_factory_e000>;
nvmem-cell-names = "mac-address";
};
&mdio {
ethphy4: ethernet-phy@4 {
reg = <4>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 { port@0 {
status = "okay"; status = "okay";
label = "ethblack"; label = "ethblack";
}; };
port@4 {
status = "okay";
label = "ethblue";
};
}; };
}; };

@ -61,6 +61,18 @@
}; };
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy4>;
};
&mdio {
ethphy4: ethernet-phy@4 {
reg = <4>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 { port@0 {
@ -82,11 +94,6 @@
status = "okay"; status = "okay";
label = "lan4"; label = "lan4";
}; };
port@4 {
status = "okay";
label = "wan";
};
}; };
}; };

@ -129,6 +129,18 @@
}; };
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy4>;
};
&mdio {
ethphy4: ethernet-phy@4 {
reg = <4>;
};
};
&switch0 { &switch0 {
ports { ports {
port@1 { port@1 {
@ -145,11 +157,6 @@
status = "okay"; status = "okay";
label = "lan3"; label = "lan3";
}; };
port@4 {
status = "okay";
label = "wan";
};
}; };
}; };

@ -15,7 +15,7 @@
led-failsafe = &led_power; led-failsafe = &led_power;
led-running = &led_power; led-running = &led_power;
led-upgrade = &led_power; led-upgrade = &led_power;
label-mac-device = &wan; label-mac-device = &gmac1;
}; };
gpio-export { gpio-export {
@ -132,15 +132,23 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy0>;
nvmem-cells = <&macaddr_factory_1000d>;
nvmem-cell-names = "mac-address";
};
&mdio {
ethphy0: ethernet-phy@0 {
reg = <0>;
};
};
&switch0 { &switch0 {
ports { ports {
wan: port@0 {
status = "okay";
label = "wan";
nvmem-cells = <&macaddr_factory_1000d>;
nvmem-cell-names = "mac-address";
};
port@1 { port@1 {
status = "okay"; status = "okay";
label = "lan"; label = "lan";

@ -132,16 +132,24 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy0>;
nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
&mdio {
ethphy0: ethernet-phy@0 {
reg = <0>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 {
status = "okay";
label = "wan";
nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
port@1 { port@1 {
status = "okay"; status = "okay";
label = "lan4"; label = "lan4";

@ -14,7 +14,7 @@
led-failsafe = &led_power; led-failsafe = &led_power;
led-running = &led_power; led-running = &led_power;
led-upgrade = &led_power; led-upgrade = &led_power;
label-mac-device = &wan; label-mac-device = &gmac1;
}; };
leds { leds {
@ -131,15 +131,23 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy0>;
nvmem-cells = <&macaddr_factory_1e006>;
nvmem-cell-names = "mac-address";
};
&mdio {
ethphy0: ethernet-phy@0 {
reg = <0>;
};
};
&switch0 { &switch0 {
ports { ports {
wan: port@0 {
status = "okay";
label = "wan";
nvmem-cells = <&macaddr_factory_1e006>;
nvmem-cell-names = "mac-address";
};
port@1 { port@1 {
status = "okay"; status = "okay";
label = "lan4"; label = "lan4";

@ -132,16 +132,24 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy0>;
nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
&mdio {
ethphy0: ethernet-phy@0 {
reg = <0>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 {
status = "okay";
label = "wan";
nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
port@1 { port@1 {
status = "okay"; status = "okay";
label = "lan4"; label = "lan4";

@ -11,7 +11,7 @@
led-failsafe = &led_power; led-failsafe = &led_power;
led-running = &led_power; led-running = &led_power;
led-upgrade = &led_power; led-upgrade = &led_power;
label-mac-device = &wan; label-mac-device = &gmac1;
}; };
leds { leds {
@ -122,15 +122,23 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy0>;
nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address";
};
&mdio {
ethphy0: ethernet-phy@0 {
reg = <0>;
};
};
&switch0 { &switch0 {
ports { ports {
wan: port@0 {
status = "okay";
label = "wan";
nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address";
};
port@1 { port@1 {
status = "okay"; status = "okay";
label = "lan4"; label = "lan4";

@ -124,13 +124,23 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy0>;
nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
};
&mdio {
ethphy0: ethernet-phy@0 {
reg = <0>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 {
status = "okay";
label = "wan";
};
port@1 { port@1 {
status = "okay"; status = "okay";
label = "lan4"; label = "lan4";

@ -109,15 +109,23 @@
mac-address-increment = <(2)>; mac-address-increment = <(2)>;
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy0>;
nvmem-cells = <&macaddr_uboot_1fc40>;
nvmem-cell-names = "mac-address";
};
&mdio {
ethphy0: ethernet-phy@0 {
reg = <0>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 {
status = "okay";
label = "wan";
nvmem-cells = <&macaddr_uboot_1fc40>;
nvmem-cell-names = "mac-address";
};
port@3 { port@3 {
status = "okay"; status = "okay";
label = "lan1"; label = "lan1";

@ -94,15 +94,23 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy0>;
nvmem-cells = <&macaddr_uboot_1fc40>;
nvmem-cell-names = "mac-address";
};
&mdio {
ethphy0: ethernet-phy@0 {
reg = <0>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 {
status = "okay";
label = "wan";
nvmem-cells = <&macaddr_uboot_1fc40>;
nvmem-cell-names = "mac-address";
};
port@1 { port@1 {
status = "okay"; status = "okay";
label = "lan1"; label = "lan1";

@ -120,16 +120,24 @@
mac-address-increment = <(3)>; mac-address-increment = <(3)>;
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy0>;
nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mac-address-increment = <(1)>;
};
&mdio {
ethphy0: ethernet-phy@0 {
reg = <0>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 {
status = "okay";
label = "wan";
nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mac-address-increment = <(1)>;
};
port@1 { port@1 {
status = "okay"; status = "okay";
label = "lan4"; label = "lan4";

@ -112,15 +112,23 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy0>;
nvmem-cells = <&macaddr_uboot_1fc40>;
nvmem-cell-names = "mac-address";
};
&mdio {
ethphy0: ethernet-phy@0 {
reg = <0>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 {
status = "okay";
label = "wan";
nvmem-cells = <&macaddr_uboot_1fc40>;
nvmem-cell-names = "mac-address";
};
port@1 { port@1 {
status = "okay"; status = "okay";
label = "lan1"; label = "lan1";

@ -99,15 +99,23 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy0>;
nvmem-cells = <&macaddr_uboot_1fc40>;
nvmem-cell-names = "mac-address";
};
&mdio {
ethphy0: ethernet-phy@0 {
reg = <0>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 {
status = "okay";
label = "wan";
nvmem-cells = <&macaddr_uboot_1fc40>;
nvmem-cell-names = "mac-address";
};
port@1 { port@1 {
status = "okay"; status = "okay";
label = "lan4"; label = "lan4";

@ -120,16 +120,24 @@
mac-address-increment = <3>; mac-address-increment = <3>;
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy0>;
nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
&mdio {
ethphy0: ethernet-phy@0 {
reg = <0>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 {
status = "okay";
label = "wan";
nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
port@1 { port@1 {
status = "okay"; status = "okay";
label = "lan4"; label = "lan4";

@ -87,13 +87,20 @@
}; };
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy0>;
};
&mdio {
ethphy0: ethernet-phy@0 {
reg = <0>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 {
status = "okay";
label = "wan";
};
port@1 { port@1 {
status = "okay"; status = "okay";
label = "lan4"; label = "lan4";

@ -14,7 +14,7 @@
led-failsafe = &led_wps; led-failsafe = &led_wps;
led-running = &led_wps; led-running = &led_wps;
led-upgrade = &led_wps; led-upgrade = &led_wps;
label-mac-device = &wan; label-mac-device = &gmac1;
}; };
leds { leds {
@ -133,6 +133,21 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy4>;
nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
};
&mdio {
ethphy4: ethernet-phy@4 {
reg = <4>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 { port@0 {
@ -154,12 +169,6 @@
status = "okay"; status = "okay";
label = "lan4"; label = "lan4";
}; };
wan: port@4 {
status = "okay";
label = "wan";
nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
};
}; };
}; };

@ -148,15 +148,23 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy0>;
nvmem-cells = <&macaddr_factory_3fffa>;
nvmem-cell-names = "mac-address";
};
&mdio {
ethphy0: ethernet-phy@0 {
reg = <0>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 {
status = "okay";
label = "wan";
nvmem-cells = <&macaddr_factory_3fffa>;
nvmem-cell-names = "mac-address";
};
port@1 { port@1 {
status = "okay"; status = "okay";
label = "lan1"; label = "lan1";

@ -93,6 +93,21 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy4>;
nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address";
};
&mdio {
ethphy4: ethernet-phy@4 {
reg = <4>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 { port@0 {
@ -114,13 +129,6 @@
status = "okay"; status = "okay";
label = "lan1"; label = "lan1";
}; };
wan: port@4 {
status = "okay";
label = "wan";
nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address";
};
}; };
}; };

@ -142,6 +142,21 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy4>;
nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address";
};
&mdio {
ethphy4: ethernet-phy@4 {
reg = <4>;
};
};
&switch0 { &switch0 {
ports { ports {
port@1 { port@1 {
@ -153,13 +168,6 @@
status = "okay"; status = "okay";
label = "lan1"; label = "lan1";
}; };
port@4 {
status = "okay";
label = "wan";
nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address";
};
}; };
}; };

@ -148,6 +148,18 @@
}; };
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy4>;
};
&mdio {
ethphy4: ethernet-phy@4 {
reg = <4>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 { port@0 {
@ -169,11 +181,6 @@
status = "okay"; status = "okay";
label = "lan4"; label = "lan4";
}; };
port@4 {
status = "okay";
label = "wan";
};
}; };
}; };

@ -7,6 +7,20 @@
model = "Linksys EA6350 v4"; model = "Linksys EA6350 v4";
}; };
&gmac1 {
phy-handle = <&ethphy4>;
};
&mdio {
ethernet-phy@0 {
status = "disabled";
};
ethphy4: ethernet-phy@4 {
reg = <4>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 { port@0 {
@ -30,8 +44,7 @@
}; };
port@4 { port@4 {
status = "okay"; status = "disabled";
label = "wan";
}; };
}; };
}; };

@ -177,13 +177,20 @@
}; };
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy0>;
};
&mdio {
ethphy0: ethernet-phy@0 {
reg = <0>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 {
status = "okay";
label = "wan";
};
port@1 { port@1 {
status = "okay"; status = "okay";
label = "lan1"; label = "lan1";

@ -117,13 +117,23 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&gmac1 {
status = "okay";
label = "lan1";
phy-handle = <&ethphy0>;
nvmem-cells = <&macaddr_factory_2e>;
nvmem-cell-names = "mac-address";
};
&mdio {
ethphy0: ethernet-phy@0 {
reg = <0>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 {
status = "okay";
label = "lan1";
};
port@1 { port@1 {
status = "okay"; status = "okay";
label = "lan2"; label = "lan2";

@ -117,6 +117,22 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy4>;
nvmem-cells = <&macaddr_factory_5>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
&mdio {
ethphy4: ethernet-phy@4 {
reg = <4>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 { port@0 {
@ -138,14 +154,6 @@
status = "okay"; status = "okay";
label = "lan4"; label = "lan4";
}; };
port@4 {
status = "okay";
label = "wan";
nvmem-cells = <&macaddr_factory_5>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
}; };
}; };

@ -39,6 +39,18 @@
status = "okay"; status = "okay";
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy4>;
};
&mdio {
ethphy4: ethernet-phy@4 {
reg = <4>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 { port@0 {
@ -60,11 +72,6 @@
status = "okay"; status = "okay";
label = "lan4"; label = "lan4";
}; };
port@4 {
status = "okay";
label = "wan";
};
}; };
}; };

@ -35,3 +35,23 @@
function = "gpio"; function = "gpio";
}; };
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy0>;
};
&mdio {
ethphy0: ethernet-phy@0 {
reg = <0>;
};
};
&switch0 {
ports {
port@0 {
status = "disabled";
};
};
};

@ -90,13 +90,20 @@
}; };
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy0>;
};
&mdio {
ethphy0: ethernet-phy@0 {
reg = <0>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 {
status = "okay";
label = "wan";
};
port@1 { port@1 {
status = "okay"; status = "okay";
label = "lan1"; label = "lan1";

@ -100,6 +100,22 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy4>;
nvmem-cells = <&macaddr_factory_e000>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
&mdio {
ethphy4: ethernet-phy@4 {
reg = <4>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 { port@0 {
@ -121,14 +137,6 @@
status = "okay"; status = "okay";
label = "lan4"; label = "lan4";
}; };
port@4 {
status = "okay";
label = "wan";
nvmem-cells = <&macaddr_factory_e000>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
}; };
}; };

@ -60,7 +60,7 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&wan { &gmac1 {
nvmem-cells = <&macaddr_factory_4>; nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
mac-address-increment = <1>; mac-address-increment = <1>;

@ -105,6 +105,18 @@
}; };
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy4>;
};
&mdio {
ethphy4: ethernet-phy@4 {
reg = <4>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 { port@0 {
@ -126,11 +138,6 @@
status = "okay"; status = "okay";
label = "lan1"; label = "lan1";
}; };
wan: port@4 {
status = "okay";
label = "wan";
};
}; };
}; };

@ -166,6 +166,22 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy4>;
nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mac-address-increment = <2>;
};
&mdio {
ethphy4: ethernet-phy@4 {
reg = <4>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 { port@0 {
@ -187,14 +203,6 @@
status = "okay"; status = "okay";
label = "lan1"; label = "lan1";
}; };
port@4 {
status = "okay";
label = "wan";
nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mac-address-increment = <2>;
};
}; };
}; };

@ -100,6 +100,22 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy4>;
nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mac-address-increment = <2>;
};
&mdio {
ethphy4: ethernet-phy@4 {
reg = <4>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 { port@0 {
@ -121,14 +137,6 @@
status = "okay"; status = "okay";
label = "lan1"; label = "lan1";
}; };
port@4 {
status = "okay";
label = "wan";
nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mac-address-increment = <2>;
};
}; };
}; };

@ -138,13 +138,23 @@
}; };
}; };
&gmac1 {
status = "okay";
label = "lan4";
phy-handle = <&ethphy0>;
nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
};
&mdio {
ethphy0: ethernet-phy@0 {
reg = <0>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 {
status = "okay";
label = "lan4";
};
port@1 { port@1 {
status = "okay"; status = "okay";
label = "lan3"; label = "lan3";

@ -243,16 +243,23 @@
}; };
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy0>;
};
&mdio {
ethphy0: ethernet-phy@0 {
reg = <0>;
};
};
&switch0 { &switch0 {
gpio-controller; gpio-controller;
#gpio-cells = <2>; #gpio-cells = <2>;
ports { ports {
port@0 {
status = "okay";
label = "wan";
};
port@1 { port@1 {
status = "okay"; status = "okay";
label = "lan1"; label = "lan1";

@ -56,7 +56,7 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&wan { &gmac1 {
nvmem-cells = <&macaddr_factory_4>; nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
mac-address-increment = <1>; mac-address-increment = <1>;

@ -126,6 +126,21 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy4>;
nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address";
};
&mdio {
ethphy4: ethernet-phy@4 {
reg = <4>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 { port@0 {
@ -147,13 +162,6 @@
status = "okay"; status = "okay";
label = "lan1"; label = "lan1";
}; };
port@4 {
status = "okay";
label = "wan";
nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address";
};
}; };
}; };

@ -128,6 +128,22 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy4>;
nvmem-cells = <&macaddr_bdinfo_9>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
&mdio {
ethphy4: ethernet-phy@4 {
reg = <4>;
};
};
&switch0 { &switch0 {
ports { ports {
port@2 { port@2 {
@ -139,14 +155,6 @@
status = "okay"; status = "okay";
label = "lan1"; label = "lan1";
}; };
port@4 {
status = "okay";
label = "wan";
nvmem-cells = <&macaddr_bdinfo_9>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
}; };
}; };

@ -112,6 +112,21 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy4>;
nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address";
};
&mdio {
ethphy4: ethernet-phy@4 {
reg = <4>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 { port@0 {
@ -133,13 +148,6 @@
status = "okay"; status = "okay";
label = "lan4"; label = "lan4";
}; };
port@4 {
status = "okay";
label = "wan";
nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address";
};
}; };
}; };

@ -79,6 +79,21 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy4>;
nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address";
};
&mdio {
ethphy4: ethernet-phy@4 {
reg = <4>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 { port@0 {
@ -100,13 +115,6 @@
status = "okay"; status = "okay";
label = "lan4"; label = "lan4";
}; };
port@4 {
status = "okay";
label = "wan";
nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address";
};
}; };
}; };

@ -115,6 +115,18 @@
}; };
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy4>;
};
&mdio {
ethphy4: ethernet-phy@4 {
reg = <4>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 { port@0 {
@ -136,11 +148,6 @@
status = "okay"; status = "okay";
label = "lan1"; label = "lan1";
}; };
port@4 {
status = "okay";
label = "wan";
};
}; };
}; };

@ -115,6 +115,22 @@
mac-address-increment = <(-2)>; mac-address-increment = <(-2)>;
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy4>;
nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mac-address-increment = <(-1)>;
};
&mdio {
ethphy4: ethernet-phy@4 {
reg = <4>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 { port@0 {
@ -126,14 +142,6 @@
status = "okay"; status = "okay";
label = "lan1"; label = "lan1";
}; };
port@4 {
status = "okay";
label = "wan";
nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mac-address-increment = <(-1)>;
};
}; };
}; };

@ -110,6 +110,21 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy4>;
nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address";
};
&mdio {
ethphy4: ethernet-phy@4 {
reg = <4>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 { port@0 {
@ -131,13 +146,6 @@
status = "okay"; status = "okay";
label = "lan4"; label = "lan4";
}; };
port@4 {
status = "okay";
label = "wan";
nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address";
};
}; };
}; };

@ -106,6 +106,22 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy4>;
nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
&mdio {
ethphy4: ethernet-phy@4 {
reg = <4>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 { port@0 {
@ -127,14 +143,6 @@
status = "okay"; status = "okay";
label = "lan4"; label = "lan4";
}; };
port@4 {
status = "okay";
label = "wan";
nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
}; };
}; };

@ -14,7 +14,7 @@
led-failsafe = &led_red; led-failsafe = &led_red;
led-running = &led_blue; led-running = &led_blue;
led-upgrade = &led_red; led-upgrade = &led_red;
label-mac-device = &wan_port; label-mac-device = &gmac1;
}; };
chosen { chosen {
@ -115,16 +115,24 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy0>;
nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mac-address-increment = <(-2)>;
};
&mdio {
ethphy0: ethernet-phy@0 {
reg = <0>;
};
};
&switch0 { &switch0 {
ports { ports {
wan_port: port@0 {
status = "okay";
label = "wan";
nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mac-address-increment = <(-2)>;
};
port@1 { port@1 {
status = "okay"; status = "okay";
label = "lan1"; label = "lan1";

@ -104,6 +104,22 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy4>;
nvmem-cells = <&macaddr_factory_e000>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
&mdio {
ethphy4: ethernet-phy@4 {
reg = <4>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 { port@0 {
@ -125,14 +141,6 @@
status = "okay"; status = "okay";
label = "lan4"; label = "lan4";
}; };
port@4 {
status = "okay";
label = "wan";
nvmem-cells = <&macaddr_factory_e000>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
}; };
}; };

@ -101,6 +101,21 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy4>;
nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address";
};
&mdio {
ethphy4: ethernet-phy@4 {
reg = <4>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 { port@0 {
@ -122,13 +137,6 @@
status = "okay"; status = "okay";
label = "lan4"; label = "lan4";
}; };
port@4 {
status = "okay";
label = "wan";
nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address";
};
}; };
}; };

@ -168,16 +168,24 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy0>;
nvmem-cells = <&macaddr_config_8>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
&mdio {
ethphy0: ethernet-phy@0 {
reg = <0>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 {
status = "okay";
label = "wan";
nvmem-cells = <&macaddr_config_8>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
port@1 { port@1 {
status = "okay"; status = "okay";
label = "lan1"; label = "lan1";

@ -158,13 +158,23 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&gmac1 {
status = "okay";
label = "lan0";
phy-handle = <&ethphy0>;
nvmem-cells = <&macaddr_info_8>;
nvmem-cell-names = "mac-address";
};
&mdio {
ethphy0: ethernet-phy@0 {
reg = <0>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 {
status = "okay";
label = "lan0";
};
port@1 { port@1 {
status = "okay"; status = "okay";
label = "lan3"; label = "lan3";

@ -156,14 +156,24 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&gmac1 {
status = "okay";
label = "lan0";
phy-handle = <&ethphy0>;
nvmem-cells = <&macaddr_info_8>;
nvmem-cell-names = "mac-address";
};
&mdio {
ethphy0: ethernet-phy@0 {
reg = <0>;
};
};
&switch0 { &switch0 {
compatible = "mediatek,mt7530"; compatible = "mediatek,mt7530";
ports { ports {
port@0 {
status = "okay";
label = "lan0";
};
port@1 { port@1 {
status = "okay"; status = "okay";
label = "lan3"; label = "lan3";

@ -4,3 +4,26 @@
model = "Ubiquiti EdgeRouter X"; model = "Ubiquiti EdgeRouter X";
compatible = "ubnt,edgerouter-x", "mediatek,mt7621-soc"; compatible = "ubnt,edgerouter-x", "mediatek,mt7621-soc";
}; };
&gmac1 {
status = "okay";
label = "eth0";
phy-handle = <&ethphy0>;
nvmem-cells = <&macaddr_factory_22>;
nvmem-cell-names = "mac-address";
};
&mdio {
ethphy0: ethernet-phy@0 {
reg = <0>;
};
};
&switch0 {
ports {
port@0 {
status = "disabled";
};
};
};

@ -61,6 +61,21 @@
label = "dsa"; label = "dsa";
}; };
&gmac1 {
status = "okay";
label = "lan1";
phy-handle = <&ethphy4>;
nvmem-cells = <&macaddr_eeprom>;
nvmem-cell-names = "mac-address";
};
&mdio {
ethphy4: ethernet-phy@4 {
reg = <4>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 { port@0 {
@ -82,11 +97,6 @@
status = "okay"; status = "okay";
label = "lan2"; label = "lan2";
}; };
port@4 {
status = "okay";
label = "lan1";
};
}; };
}; };

@ -52,7 +52,7 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&wan { &gmac1 {
nvmem-cells = <&macaddr_factory_e000>; nvmem-cells = <&macaddr_factory_e000>;
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
mac-address-increment = <1>; mac-address-increment = <1>;

@ -72,13 +72,20 @@
}; };
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy0>;
};
&mdio {
ethphy0: ethernet-phy@0 {
reg = <0>;
};
};
&switch0 { &switch0 {
ports { ports {
wan: port@0 {
status = "okay";
label = "wan";
};
port@1 { port@1 {
status = "okay"; status = "okay";
label = "lan1"; label = "lan1";

@ -57,7 +57,7 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&wan { &gmac1 {
nvmem-cells = <&macaddr_factory_e000>; nvmem-cells = <&macaddr_factory_e000>;
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
mac-address-increment = <1>; mac-address-increment = <1>;

@ -58,7 +58,7 @@
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
}; };
&wan { &gmac1 {
nvmem-cells = <&macaddr_factory_e000>; nvmem-cells = <&macaddr_factory_e000>;
nvmem-cell-names = "mac-address"; nvmem-cell-names = "mac-address";
mac-address-increment = <1>; mac-address-increment = <1>;

@ -73,6 +73,18 @@
status = "okay"; status = "okay";
}; };
&gmac1 {
status = "okay";
label = "wan";
phy-handle = <&ethphy4>;
};
&mdio {
ethphy4: ethernet-phy@4 {
reg = <4>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 { port@0 {
@ -94,11 +106,6 @@
status = "okay"; status = "okay";
label = "lan4"; label = "lan4";
}; };
wan: port@4 {
status = "okay";
label = "wan";
};
}; };
}; };

Some files were not shown because too many files have changed in this diff Show More