ramips: convert mtd-mac-address to nvmem implementation
[openwrt/staging/hauke.git] / target / linux / ramips / dts / mt7621_adslr_g7.dts
index 84c0d3b282852466ba272a18166d845c01e73389..95f2ac3a20b7a0946485a0d0f2e774517653ccc0 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xe00c>;
+       nvmem-cells = <&macaddr_factory_e00c>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                port@4 {
                        status = "okay";
                        label = "wan";
-                       mtd-mac-address = <&factory 0xe00c>;
+                       nvmem-cells = <&macaddr_factory_e00c>;
+                       nvmem-cell-names = "mac-address";
                        mac-address-increment = <1>;
                };
        };
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_e00c: macaddr@e00c {
+               reg = <0xe00c 0x6>;
+       };
+};