mpc85xx: convert mtd-mac-address to nvmem implementation
[openwrt/openwrt.git] / target / linux / mpc85xx / files / arch / powerpc / boot / dts / hiveap-330.dts
index 10bb353683a53bacc90907b06d152e86e7e9ec67..97f5b7c7b7604fc1674112269fb832ae9644f200 100644 (file)
                        status = "okay";
                        phy-handle = <&phy0>;
                        phy-connection-type = "rgmii-id";
-                       mtd-mac-address = <&hwinfo 0>;
+                       nvmem-cells = <&macaddr_hwinfo_0>;
+                       nvmem-cell-names = "mac-address";
                };
 
                enet1: ethernet@b1000 {
                        status = "okay";
                        phy-handle = <&phy1>;
                        phy-connection-type = "rgmii-id";
-                       mtd-mac-address = <&hwinfo 0>;
+                       nvmem-cells = <&macaddr_hwinfo_0>;
+                       nvmem-cell-names = "mac-address";
                        mac-address-increment = <1>;
                };
 
        };
 };
 /include/ "fsl/p1020si-post.dtsi"
+
+&hwinfo {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_hwinfo_0: macaddr@0 {
+               reg = <0x0 0x6>;
+       };
+};