ramips: mt7621: convert to nvmem-layout
[openwrt/staging/hauke.git] / target / linux / ramips / dts / mt7621_elecom_wrc-1167gst2.dts
index cb2e202793754655d6caa887f269e2a69bc4536a..d7510c292b7e6f55688976ff12d1d7e2fb4906dd 100644 (file)
 };
 
 &wifi {
-       nvmem-cells = <&macaddr_factory_e006>;
+       nvmem-cells = <&macaddr_factory_e006 1>;
        nvmem-cell-names = "mac-address";
-       mac-address-increment = <1>;
 };
 
 &factory {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
+       nvmem-layout {
+               compatible = "fixed-layout";
+               #address-cells = <1>;
+               #size-cells = <1>;
 
-       macaddr_factory_e000: macaddr@e000 {
-               reg = <0xe000 0x6>;
-       };
+               macaddr_factory_e000: macaddr@e000 {
+                       reg = <0xe000 0x6>;
+               };
 
-       macaddr_factory_e006: macaddr@e006 {
-               reg = <0xe006 0x6>;
+               macaddr_factory_e006: macaddr@e006 {
+                       compatible = "mac-base";
+                       reg = <0xe006 0x6>;
+                       #nvmem-cell-cells = <1>;
+               };
        };
 };