ramips: convert mtd-mac-address to nvmem implementation
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / rt5350_poray_x5.dts
index 9c00da82ed1639febeb8d011f3004382610a08c2..20e2a5257fa491b41cc2e7c5d3e025971e30110f 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
        ralink,mtd-eeprom = <&factory 0x0>;
        ralink,led-polarity = <1>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};