&state_default {
gpio {
- groups = "uart2", "rgmii2";
+ groups = "uart2";
function = "gpio";
};
};
read-only;
};
- factory: partition@40000 {
+ partition@40000 {
label = "factory";
reg = <0x40000 0x10000>;
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_5: macaddr@5 {
+ compatible = "mac-base";
+ reg = <0x5 0x6>;
+ #nvmem-cell-cells = <1>;
+ };
+ };
};
partition@50000 {
};
&gmac0 {
- mtd-mac-address = <&factory 0x5>;
+ nvmem-cells = <&macaddr_factory_5 0>;
+ nvmem-cell-names = "mac-address";
+};
+
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+
+ nvmem-cells = <&macaddr_factory_5 1>;
+ nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+ ethphy4: ethernet-phy@4 {
+ reg = <4>;
+ };
};
&switch0 {
status = "okay";
label = "lan4";
};
-
- port@4 {
- status = "okay";
- label = "wan";
- mtd-mac-address = <&factory 0x5>;
- mtd-mac-address-increment = <1>;
- };
};
};