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";