ramips: convert mtd-mac-address to nvmem implementation
[openwrt/staging/hauke.git] / target / linux / ramips / dts / rt3052_belkin_f5d8235-v2.dts
index a9db2882f3bdc9cfde8d25e3e66e5960b5d936f2..444a5af4f53fef0a4c4b6630e59c6edce3943b0f 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&uboot 0x40004>;
+       nvmem-cells = <&macaddr_uboot_40004>;
+       nvmem-cell-names = "mac-address";
        pinctrl-names = "default";
        pinctrl-0 = <&rgmii_pins>;
 };
 &otg {
        status = "okay";
 };
+
+&uboot {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_uboot_40004: macaddr@40004 {
+               reg = <0x40004 0x6>;
+       };
+};