nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+
+ nvmem-cells = <&macaddr_factory_e00c>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <1>;
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
ports {
port@0 {
status = "okay";
label = "lan4";
};
-
- port@4 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_factory_e00c>;
- nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
- };
};
};
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <1>;
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
ports {
port@0 {
status = "okay";
label = "lan4";
};
-
- port@4 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_factory_e000>;
- nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
- };
};
};
model = "Amped Wireless ALLY-R1900K";
};
+&gmac1 {
+ status = "okay";
+ label = "lan3";
+ phy-handle = <ðphy4>;
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
ports {
port@1 {
status = "okay";
label = "lan2";
};
-
- port@4 {
- status = "okay";
- label = "lan3";
- };
};
};
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+
+ nvmem-cells = <&macaddr_factory_fff0>;
+ nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
ports {
port@2 {
status = "okay";
label = "lan1";
};
-
- port@4 {
- status = "okay";
- label = "wan";
- };
};
};
model = "AsiaRF AP7621-001";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <1>;
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
ports {
port@0 {
status = "okay";
label = "lan";
};
-
- port@4 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_factory_e000>;
- nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
- };
};
};
model = "AsiaRF AP7621-NV1";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy0>;
+
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <1>;
+};
+
+&mdio {
+ ethphy0: ethernet-phy@0 {
+ reg = <0>;
+ };
+};
+
&switch0 {
ports {
- port@0 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_factory_e000>;
- nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
- };
-
port@2 {
status = "okay";
label = "lan1";
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy0>;
+
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+ ethphy0: ethernet-phy@0 {
+ reg = <0>;
+ };
+};
+
&switch0 {
ports {
- port@0 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_factory_e006>;
- nvmem-cell-names = "mac-address";
- };
-
port@1 {
status = "okay";
label = "lan1";
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy0>;
+
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+ ethphy0: ethernet-phy@0 {
+ reg = <0>;
+ };
+};
+
&switch0 {
ports {
- port@0 {
- status = "okay";
- label = "wan";
- };
-
port@1 {
status = "okay";
label = "lan1";
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy0>;
+
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+ ethphy0: ethernet-phy@0 {
+ reg = <0>;
+ };
+};
+
&switch0 {
ports {
- port@0 {
- status = "okay";
- label = "wan";
- };
-
port@1 {
status = "okay";
label = "lan1";
model = "ASUS RT-N56U B1";
aliases {
- label-mac-device = &wan;
+ label-mac-device = &gmac1;
led-boot = &led_power;
led-failsafe = &led_power;
led-running = &led_power;
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
ports {
port@0 {
status = "okay";
label = "lan1";
};
-
- wan: port@4 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_factory_4>;
- nvmem-cell-names = "mac-address";
- };
};
};
nvmem-cell-names = "mac-address";
};
-&switch0 {
- ports {
- port@0 {
- status = "okay";
- label = "wan";
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy0>;
- nvmem-cells = <&macaddr_factory_21000>;
- nvmem-cell-names = "mac-address";
- mac-address-increment = <(1)>;
- };
+ nvmem-cells = <&macaddr_factory_21000>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <(1)>;
+};
+
+&mdio {
+ ethphy0: ethernet-phy@0 {
+ reg = <0>;
+ };
+};
+&switch0 {
+ ports {
port@1 {
status = "okay";
label = "lan1";
nvmem-cell-names = "mac-address";
};
-&switch0 {
- ports {
- port@0 {
- status = "okay";
- label = "wan";
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy0>;
- nvmem-cells = <&macaddr_factory_21000>;
- nvmem-cell-names = "mac-address";
- mac-address-increment = <(1)>;
- };
+ nvmem-cells = <&macaddr_factory_21000>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <(1)>;
+};
+
+&mdio {
+ ethphy0: ethernet-phy@0 {
+ reg = <0>;
+ };
+};
+&switch0 {
+ ports {
port@1 {
status = "okay";
label = "lan1";
};
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
ports {
port@0 {
status = "okay";
label = "lan4";
};
-
- port@4 {
- status = "okay";
- label = "wan";
- };
};
};
mac-address-increment = <(-1)>;
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy0>;
+
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <(-1)>;
+};
+
+&mdio {
+ ethphy0: ethernet-phy@0 {
+ reg = <0>;
+ };
+};
+
&switch0 {
ports {
- port@0 {
- status = "okay";
- label = "wan";
- };
-
port@1 {
status = "okay";
label = "lan4";
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
ports {
port@0 {
status = "okay";
label = "lan4";
};
-
- port@4 {
- status = "okay";
- label = "wan";
- };
};
};
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+
+ nvmem-cells = <&macaddr_bdinfo_de00>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <1>;
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
ports {
port@0 {
status = "okay";
label = "lan1";
};
-
- port@4 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_bdinfo_de00>;
- nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
- };
};
};
};
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+
+ nvmem-cells = <&macaddr_bdinfo_de00>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <1>;
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
ports {
port@0 {
status = "okay";
label = "lan4";
};
-
- port@4 {
- status = "okay";
- label = "wan";
-
- nvmem-cells = <&macaddr_bdinfo_de00>;
- nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
- };
};
};
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+
+ nvmem-cells = <&macaddr_bdinfo_de00>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <1>;
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
ports {
port@0 {
status = "okay";
label = "lan4";
};
-
- port@4 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_bdinfo_de00>;
- nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
- };
};
};
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
ports {
port@0 {
status = "okay";
label = "lan1";
};
-
- port@4 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_factory_e006>;
- nvmem-cell-names = "mac-address";
- };
};
};
model = "D-Link DIR-853 R1";
aliases {
- label-mac-device = &wan;
+ label-mac-device = &gmac1;
led-boot = &led_power_orange;
led-failsafe = &led_power_blue;
mac-address-increment = <(-1)>;
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <(-2)>;
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
ports {
port@0 {
status = "okay";
label = "lan1";
};
-
- wan: port@4 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_factory_4>;
- nvmem-cell-names = "mac-address";
- mac-address-increment = <(-2)>;
- };
};
};
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy0>;
+
+ nvmem-cells = <&macaddr_radio_4>;
+ nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+ ethphy0: ethernet-phy@0 {
+ reg = <0>;
+ };
+};
+
&switch0 {
ports {
- port@0 {
- status = "okay";
- label = "wan";
- };
-
port@1 {
status = "okay";
label = "lan4";
nvmem-cell-names = "mac-address";
};
-&wan {
+&gmac1 {
nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address";
};
nvmem-cell-names = "mac-address";
};
-&wan {
+&gmac1 {
nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address";
};
nvmem-cell-names = "mac-address";
};
-&wan {
+&gmac1 {
nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address";
};
nvmem-cell-names = "mac-address";
};
-&wan {
+&gmac1 {
nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address";
};
nvmem-cell-names = "mac-address";
};
-&wan {
+&gmac1 {
nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address";
};
};
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
ports {
port@0 {
status = "okay";
label = "lan1";
};
-
- wan: port@4 {
- status = "okay";
- label = "wan";
- };
};
};
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
ports {
port@0 {
status = "okay";
label = "lan1";
};
-
- port@4 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_factory_e006>;
- nvmem-cell-names = "mac-address";
- };
};
};
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy0>;
+
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+ ethphy0: ethernet-phy@0 {
+ reg = <0>;
+ };
+};
+
&switch0 {
ports {
- port@0 {
- status = "okay";
- label = "wan";
- };
-
port@1 {
status = "okay";
label = "lan4";
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy0>;
+
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+ ethphy0: ethernet-phy@0 {
+ reg = <0>;
+ };
+};
+
&switch0 {
ports {
- port@0 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_factory_e006>;
- nvmem-cell-names = "mac-address";
- };
-
port@1 {
status = "okay";
label = "lan4";
nvmem-cell-names = "mac-address";
};
-&wan {
+&gmac1 {
nvmem-cells = <&macaddr_factory_fffa>;
nvmem-cell-names = "mac-address";
};
nvmem-cell-names = "mac-address";
};
-&wan {
+&gmac1 {
nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address";
};
nvmem-cell-names = "mac-address";
};
-&wan {
+&gmac1 {
nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address";
};
nvmem-cell-names = "mac-address";
};
-&wan {
+&gmac1 {
nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address";
};
nvmem-cell-names = "mac-address";
};
-&wan {
+&gmac1 {
nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address";
};
nvmem-cell-names = "mac-address";
};
-&wan {
+&gmac1 {
nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address";
};
};
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy0>;
+};
+
+&mdio {
+ ethphy0: ethernet-phy@0 {
+ reg = <0>;
+ };
+};
+
&switch0 {
ports {
- port@0 {
- status = "okay";
- label = "wan";
- };
-
port@1 {
status = "okay";
label = "lan4";
nvmem-cell-names = "mac-address";
};
-&wan {
+&gmac1 {
nvmem-cells = <&macaddr_factory_fffa>;
nvmem-cell-names = "mac-address";
};
nvmem-cell-names = "mac-address";
};
-&wan {
+&gmac1 {
nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address";
};
nvmem-cell-names = "mac-address";
};
-&wan {
+&gmac1 {
nvmem-cells = <&macaddr_factory_e006>;
nvmem-cell-names = "mac-address";
};
led-failsafe = &led_power_green;
led-running = &led_power_green;
led-upgrade = &led_power_green;
- label-mac-device = &wan;
+ label-mac-device = &gmac1;
};
leds: leds {
};
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy0>;
+};
+
+&mdio {
+ ethphy0: ethernet-phy@0 {
+ reg = <0>;
+ };
+};
+
&switch0 {
ports {
- wan: port@0 {
- status = "okay";
- label = "wan";
- };
-
port@1 {
status = "okay";
label = "lan4";
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <1>;
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
ports {
port@0 {
status = "okay";
label = "lan3";
};
-
- port@4 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_factory_e000>;
- nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
- };
};
};
led-failsafe = &led_run;
led-running = &led_run;
led-upgrade = &led_run;
- label-mac-device = &wan;
+ label-mac-device = &gmac1;
};
chosen {
mac-address-increment = <1>;
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+
+ nvmem-cells = <&macaddr_factory_4000>;
+ nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
ports {
port@2 {
status = "okay";
label = "lan2";
};
-
- wan: port@4 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_factory_4000>;
- nvmem-cell-names = "mac-address";
- };
};
};
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "ethblue";
+ phy-handle = <ðphy4>;
+
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
ports {
port@0 {
status = "okay";
label = "ethblack";
};
-
- port@4 {
- status = "okay";
- label = "ethblue";
- };
};
};
};
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
ports {
port@0 {
status = "okay";
label = "lan4";
};
-
- port@4 {
- status = "okay";
- label = "wan";
- };
};
};
};
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
ports {
port@1 {
status = "okay";
label = "lan3";
};
-
- port@4 {
- status = "okay";
- label = "wan";
- };
};
};
led-failsafe = &led_power;
led-running = &led_power;
led-upgrade = &led_power;
- label-mac-device = &wan;
+ label-mac-device = &gmac1;
};
gpio-export {
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy0>;
+
+ nvmem-cells = <&macaddr_factory_1000d>;
+ nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+ ethphy0: ethernet-phy@0 {
+ reg = <0>;
+ };
+};
+
&switch0 {
ports {
- wan: port@0 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_factory_1000d>;
- nvmem-cell-names = "mac-address";
- };
-
port@1 {
status = "okay";
label = "lan";
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy0>;
+
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <1>;
+};
+
+&mdio {
+ ethphy0: ethernet-phy@0 {
+ reg = <0>;
+ };
+};
+
&switch0 {
ports {
- port@0 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_factory_4>;
- nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
- };
-
port@1 {
status = "okay";
label = "lan4";
led-failsafe = &led_power;
led-running = &led_power;
led-upgrade = &led_power;
- label-mac-device = &wan;
+ label-mac-device = &gmac1;
};
leds {
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy0>;
+
+ nvmem-cells = <&macaddr_factory_1e006>;
+ nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+ ethphy0: ethernet-phy@0 {
+ reg = <0>;
+ };
+};
+
&switch0 {
ports {
- wan: port@0 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_factory_1e006>;
- nvmem-cell-names = "mac-address";
- };
-
port@1 {
status = "okay";
label = "lan4";
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy0>;
+
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <1>;
+};
+
+&mdio {
+ ethphy0: ethernet-phy@0 {
+ reg = <0>;
+ };
+};
+
&switch0 {
ports {
- port@0 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_factory_4>;
- nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
- };
-
port@1 {
status = "okay";
label = "lan4";
led-failsafe = &led_power;
led-running = &led_power;
led-upgrade = &led_power;
- label-mac-device = &wan;
+ label-mac-device = &gmac1;
};
leds {
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy0>;
+
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+ ethphy0: ethernet-phy@0 {
+ reg = <0>;
+ };
+};
+
&switch0 {
ports {
- wan: port@0 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_factory_e006>;
- nvmem-cell-names = "mac-address";
- };
-
port@1 {
status = "okay";
label = "lan4";
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy0>;
+
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+ ethphy0: ethernet-phy@0 {
+ reg = <0>;
+ };
+};
+
&switch0 {
ports {
- port@0 {
- status = "okay";
- label = "wan";
- };
-
port@1 {
status = "okay";
label = "lan4";
mac-address-increment = <(2)>;
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy0>;
+
+ nvmem-cells = <&macaddr_uboot_1fc40>;
+ nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+ ethphy0: ethernet-phy@0 {
+ reg = <0>;
+ };
+};
+
&switch0 {
ports {
- port@0 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_uboot_1fc40>;
- nvmem-cell-names = "mac-address";
- };
-
port@3 {
status = "okay";
label = "lan1";
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy0>;
+
+ nvmem-cells = <&macaddr_uboot_1fc40>;
+ nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+ ethphy0: ethernet-phy@0 {
+ reg = <0>;
+ };
+};
+
&switch0 {
ports {
- port@0 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_uboot_1fc40>;
- nvmem-cell-names = "mac-address";
- };
-
port@1 {
status = "okay";
label = "lan1";
mac-address-increment = <(3)>;
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy0>;
+
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <(1)>;
+};
+
+&mdio {
+ ethphy0: ethernet-phy@0 {
+ reg = <0>;
+ };
+};
+
&switch0 {
ports {
- port@0 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_factory_4>;
- nvmem-cell-names = "mac-address";
- mac-address-increment = <(1)>;
- };
-
port@1 {
status = "okay";
label = "lan4";
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy0>;
+
+ nvmem-cells = <&macaddr_uboot_1fc40>;
+ nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+ ethphy0: ethernet-phy@0 {
+ reg = <0>;
+ };
+};
+
&switch0 {
ports {
- port@0 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_uboot_1fc40>;
- nvmem-cell-names = "mac-address";
- };
-
port@1 {
status = "okay";
label = "lan1";
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy0>;
+
+ nvmem-cells = <&macaddr_uboot_1fc40>;
+ nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+ ethphy0: ethernet-phy@0 {
+ reg = <0>;
+ };
+};
+
&switch0 {
ports {
- port@0 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_uboot_1fc40>;
- nvmem-cell-names = "mac-address";
- };
-
port@1 {
status = "okay";
label = "lan4";
mac-address-increment = <3>;
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy0>;
+
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <1>;
+};
+
+&mdio {
+ ethphy0: ethernet-phy@0 {
+ reg = <0>;
+ };
+};
+
&switch0 {
ports {
- port@0 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_factory_4>;
- nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
- };
-
port@1 {
status = "okay";
label = "lan4";
};
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy0>;
+};
+
+&mdio {
+ ethphy0: ethernet-phy@0 {
+ reg = <0>;
+ };
+};
+
&switch0 {
ports {
- port@0 {
- status = "okay";
- label = "wan";
- };
-
port@1 {
status = "okay";
label = "lan4";
led-failsafe = &led_wps;
led-running = &led_wps;
led-upgrade = &led_wps;
- label-mac-device = &wan;
+ label-mac-device = &gmac1;
};
leds {
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
ports {
port@0 {
status = "okay";
label = "lan4";
};
- wan: port@4 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_factory_4>;
- nvmem-cell-names = "mac-address";
- };
};
};
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy0>;
+
+ nvmem-cells = <&macaddr_factory_3fffa>;
+ nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+ ethphy0: ethernet-phy@0 {
+ reg = <0>;
+ };
+};
+
&switch0 {
ports {
- port@0 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_factory_3fffa>;
- nvmem-cell-names = "mac-address";
- };
-
port@1 {
status = "okay";
label = "lan1";
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
ports {
port@0 {
status = "okay";
label = "lan1";
};
-
- wan: port@4 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_factory_e006>;
- nvmem-cell-names = "mac-address";
- };
};
};
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
ports {
port@1 {
status = "okay";
label = "lan1";
};
-
- port@4 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_factory_e006>;
- nvmem-cell-names = "mac-address";
- };
};
};
};
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
ports {
port@0 {
status = "okay";
label = "lan4";
};
-
- port@4 {
- status = "okay";
- label = "wan";
- };
};
};
model = "Linksys EA6350 v4";
};
+&gmac1 {
+ phy-handle = <ðphy4>;
+};
+
+&mdio {
+ ethernet-phy@0 {
+ status = "disabled";
+ };
+
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
ports {
port@0 {
};
port@4 {
- status = "okay";
- label = "wan";
+ status = "disabled";
};
};
};
};
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy0>;
+};
+
+&mdio {
+ ethphy0: ethernet-phy@0 {
+ reg = <0>;
+ };
+};
+
&switch0 {
ports {
- port@0 {
- status = "okay";
- label = "wan";
- };
-
port@1 {
status = "okay";
label = "lan1";
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "lan1";
+ phy-handle = <ðphy0>;
+
+ nvmem-cells = <&macaddr_factory_2e>;
+ nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+ ethphy0: ethernet-phy@0 {
+ reg = <0>;
+ };
+};
+
&switch0 {
ports {
- port@0 {
- status = "okay";
- label = "lan1";
- };
-
port@1 {
status = "okay";
label = "lan2";
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+
+ nvmem-cells = <&macaddr_factory_5>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <1>;
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
ports {
port@0 {
status = "okay";
label = "lan4";
};
-
- port@4 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_factory_5>;
- nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
- };
};
};
status = "okay";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
ports {
port@0 {
status = "okay";
label = "lan4";
};
-
- port@4 {
- status = "okay";
- label = "wan";
- };
};
};
function = "gpio";
};
};
+
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy0>;
+};
+
+&mdio {
+ ethphy0: ethernet-phy@0 {
+ reg = <0>;
+ };
+};
+
+&switch0 {
+ ports {
+ port@0 {
+ status = "disabled";
+ };
+ };
+};
};
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy0>;
+};
+
+&mdio {
+ ethphy0: ethernet-phy@0 {
+ reg = <0>;
+ };
+};
+
&switch0 {
ports {
- port@0 {
- status = "okay";
- label = "wan";
- };
-
port@1 {
status = "okay";
label = "lan1";
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <1>;
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
ports {
port@0 {
status = "okay";
label = "lan4";
};
-
- port@4 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_factory_e000>;
- nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
- };
};
};
nvmem-cell-names = "mac-address";
};
-&wan {
+&gmac1 {
nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
ports {
port@0 {
status = "okay";
label = "lan1";
};
-
- wan: port@4 {
- status = "okay";
- label = "wan";
- };
};
};
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <2>;
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
ports {
port@0 {
status = "okay";
label = "lan1";
};
-
- port@4 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_factory_4>;
- nvmem-cell-names = "mac-address";
- mac-address-increment = <2>;
- };
};
};
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <2>;
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
ports {
port@0 {
status = "okay";
label = "lan1";
};
-
- port@4 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_factory_4>;
- nvmem-cell-names = "mac-address";
- mac-address-increment = <2>;
- };
};
};
};
};
+&gmac1 {
+ status = "okay";
+ label = "lan4";
+ phy-handle = <ðphy0>;
+
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+ ethphy0: ethernet-phy@0 {
+ reg = <0>;
+ };
+};
+
&switch0 {
ports {
- port@0 {
- status = "okay";
- label = "lan4";
- };
-
port@1 {
status = "okay";
label = "lan3";
};
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy0>;
+};
+
+&mdio {
+ ethphy0: ethernet-phy@0 {
+ reg = <0>;
+ };
+};
+
&switch0 {
gpio-controller;
#gpio-cells = <2>;
ports {
- port@0 {
- status = "okay";
- label = "wan";
- };
-
port@1 {
status = "okay";
label = "lan1";
nvmem-cell-names = "mac-address";
};
-&wan {
+&gmac1 {
nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
ports {
port@0 {
status = "okay";
label = "lan1";
};
-
- port@4 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_factory_e006>;
- nvmem-cell-names = "mac-address";
- };
};
};
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+
+ nvmem-cells = <&macaddr_bdinfo_9>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <1>;
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
ports {
port@2 {
status = "okay";
label = "lan1";
};
-
- port@4 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_bdinfo_9>;
- nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
- };
};
};
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
ports {
port@0 {
status = "okay";
label = "lan4";
};
-
- port@4 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_factory_e006>;
- nvmem-cell-names = "mac-address";
- };
};
};
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
ports {
port@0 {
status = "okay";
label = "lan4";
};
-
- port@4 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_factory_e006>;
- nvmem-cell-names = "mac-address";
- };
};
};
};
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
ports {
port@0 {
status = "okay";
label = "lan1";
};
-
- port@4 {
- status = "okay";
- label = "wan";
- };
};
};
mac-address-increment = <(-2)>;
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <(-1)>;
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
ports {
port@0 {
status = "okay";
label = "lan1";
};
-
- port@4 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_factory_4>;
- nvmem-cell-names = "mac-address";
- mac-address-increment = <(-1)>;
- };
};
};
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
ports {
port@0 {
status = "okay";
label = "lan4";
};
-
- port@4 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_factory_e006>;
- nvmem-cell-names = "mac-address";
- };
};
};
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <1>;
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
ports {
port@0 {
status = "okay";
label = "lan4";
};
-
- port@4 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_factory_e006>;
- nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
- };
};
};
led-failsafe = &led_red;
led-running = &led_blue;
led-upgrade = &led_red;
- label-mac-device = &wan_port;
+ label-mac-device = &gmac1;
};
chosen {
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy0>;
+
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <(-2)>;
+};
+
+&mdio {
+ ethphy0: ethernet-phy@0 {
+ reg = <0>;
+ };
+};
+
&switch0 {
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 {
status = "okay";
label = "lan1";
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <1>;
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
ports {
port@0 {
status = "okay";
label = "lan4";
};
-
- port@4 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_factory_e000>;
- nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
- };
};
};
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
ports {
port@0 {
status = "okay";
label = "lan4";
};
-
- port@4 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_factory_e006>;
- nvmem-cell-names = "mac-address";
- };
};
};
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy0>;
+
+ nvmem-cells = <&macaddr_config_8>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <1>;
+};
+
+&mdio {
+ ethphy0: ethernet-phy@0 {
+ reg = <0>;
+ };
+};
+
&switch0 {
ports {
- port@0 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_config_8>;
- nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
- };
-
port@1 {
status = "okay";
label = "lan1";
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "lan0";
+ phy-handle = <ðphy0>;
+
+ nvmem-cells = <&macaddr_info_8>;
+ nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+ ethphy0: ethernet-phy@0 {
+ reg = <0>;
+ };
+};
+
&switch0 {
ports {
- port@0 {
- status = "okay";
- label = "lan0";
- };
-
port@1 {
status = "okay";
label = "lan3";
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "lan0";
+ phy-handle = <ðphy0>;
+
+ nvmem-cells = <&macaddr_info_8>;
+ nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+ ethphy0: ethernet-phy@0 {
+ reg = <0>;
+ };
+};
+
&switch0 {
compatible = "mediatek,mt7530";
ports {
- port@0 {
- status = "okay";
- label = "lan0";
- };
-
port@1 {
status = "okay";
label = "lan3";
model = "Ubiquiti EdgeRouter X";
compatible = "ubnt,edgerouter-x", "mediatek,mt7621-soc";
};
+
+&gmac1 {
+ status = "okay";
+ label = "eth0";
+ phy-handle = <ðphy0>;
+
+ nvmem-cells = <&macaddr_factory_22>;
+ nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+ ethphy0: ethernet-phy@0 {
+ reg = <0>;
+ };
+};
+
+&switch0 {
+ ports {
+ port@0 {
+ status = "disabled";
+ };
+ };
+};
label = "dsa";
};
+&gmac1 {
+ status = "okay";
+ label = "lan1";
+ phy-handle = <ðphy4>;
+
+ nvmem-cells = <&macaddr_eeprom>;
+ nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
ports {
port@0 {
status = "okay";
label = "lan2";
};
-
- port@4 {
- status = "okay";
- label = "lan1";
- };
};
};
nvmem-cell-names = "mac-address";
};
-&wan {
+&gmac1 {
nvmem-cells = <&macaddr_factory_e000>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy0>;
+};
+
+&mdio {
+ ethphy0: ethernet-phy@0 {
+ reg = <0>;
+ };
+};
+
&switch0 {
ports {
- wan: port@0 {
- status = "okay";
- label = "wan";
- };
-
port@1 {
status = "okay";
label = "lan1";
nvmem-cell-names = "mac-address";
};
-&wan {
+&gmac1 {
nvmem-cells = <&macaddr_factory_e000>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
nvmem-cell-names = "mac-address";
};
-&wan {
+&gmac1 {
nvmem-cells = <&macaddr_factory_e000>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
status = "okay";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
ports {
port@0 {
status = "okay";
label = "lan4";
};
-
- wan: port@4 {
- status = "okay";
- label = "wan";
- };
};
};
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
ports {
port@1 {
status = "okay";
label = "lan1";
};
-
- port@4 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_factory_e000>;
- nvmem-cell-names = "mac-address";
- };
};
};
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
ports {
port@1 {
status = "okay";
label = "lan1";
};
-
- port@4 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_factory_e006>;
- nvmem-cell-names = "mac-address";
- };
};
};
led-failsafe = &led_status_yellow;
led-running = &led_status_blue;
led-upgrade = &led_status_yellow;
- label-mac-device = &wan;
+ label-mac-device = &gmac1;
};
chosen {
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
ports {
port@2 {
status = "okay";
label = "lan1";
};
-
- wan: port@4 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_factory_e006>;
- nvmem-cell-names = "mac-address";
- };
};
};
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+
+ nvmem-cells = <&macaddr_factory_3fffa>;
+ nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
ports {
port@0 {
status = "okay";
label = "lan3";
};
-
- port@4 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_factory_3fffa>;
- nvmem-cell-names = "mac-address";
- };
};
};
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy0>;
+
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+ ethphy0: ethernet-phy@0 {
+ reg = <0>;
+ };
+};
+
&switch0 {
ports {
- port@0 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_factory_e006>;
- nvmem-cell-names = "mac-address";
- };
-
port@2 {
status = "okay";
label = "lan1";
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <1>;
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
ports {
port@0 {
status = "okay";
label = "lan4";
};
-
- port@4 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_factory_4>;
- nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
- };
};
};
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy0>;
+
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+ ethphy0: ethernet-phy@0 {
+ reg = <0>;
+ };
+};
+
&switch0 {
ports {
- port@0 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_factory_e006>;
- nvmem-cell-names = "mac-address";
- };
-
port@1 {
status = "okay";
label = "lan1";
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
ports {
port@0 {
status = "okay";
label = "lan4";
};
-
- port@4 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_factory_e006>;
- nvmem-cell-names = "mac-address";
- };
};
};
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy0>;
+
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <1>;
+};
+
+&mdio {
+ ethphy0: ethernet-phy@0 {
+ reg = <0>;
+ };
+};
+
&switch0 {
ports {
- port@0 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_factory_e000>;
- nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
- };
-
port@1 {
status = "okay";
label = "lan";
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
ports {
port@0 {
status = "okay";
label = "lan4";
};
-
- port@4 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_factory_e006>;
- nvmem-cell-names = "mac-address";
- };
};
};
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
ports {
port@0 {
status = "okay";
label = "lan4";
};
-
- port@4 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_factory_e006>;
- nvmem-cell-names = "mac-address";
- };
};
};
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
ports {
port@0 {
status = "okay";
label = "lan4";
};
-
- port@4 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_factory_e006>;
- nvmem-cell-names = "mac-address";
- };
};
};
nvmem-cell-names = "mac-address";
};
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
+};
+
&switch0 {
gpio-controller;
#gpio-cells = <2>;
status = "okay";
label = "lan4";
};
-
- port@4 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_factory_e006>;
- nvmem-cell-names = "mac-address";
- };
};
};