ramips: convert mtd-mac-address to nvmem implementation
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7621_tenbay_t-mb5eu-v01.dts
index ef0d48b8c4a4af81ca4f76ef0d7d1235d473c47b..6e5f5772be9a05be40679ac5bc4296c00bf26aec 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                wan_port: port@0 {
                        status = "okay";
                        label = "wan";
-                       mtd-mac-address = <&factory 0x28>;
+                       nvmem-cells = <&macaddr_factory_28>;
+                       nvmem-cell-names = "mac-address";
                };
 
                port@1 {
                };
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};