ramips: convert mtd-mac-address to nvmem implementation
[openwrt/openwrt.git] / target / linux / ramips / dts / rt3052_upvel_ur-336un.dts
index 2c00ca89456aa481c31f031a26c886401d86c248..735f59f06706a3a942a758b86a90eab990e98314 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4004>;
+       nvmem-cells = <&macaddr_factory_4004>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &otg {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4004: macaddr@4004 {
+               reg = <0x4004 0x6>;
+       };
+};