};
&gmac0 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ 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@2 {
status = "okay";
label = "lan2";
};
- port@4 {
+ port@2 {
status = "okay";
- label = "wan";
- mtd-mac-address = <&factory 0xe006>;
+ label = "lan1";
};
};
};