};
};
-ðernet {
- pinctrl-names = "default";
- pinctrl-0 = <&rgmii1_pins &mdio_pins>;
+&gmac0 {
+ nvmem-cells = <&macaddr_config_8>;
+ nvmem-cell-names = "mac-address";
};
-&gmac0 {
+&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";