ramips: mt7628: use nvmem-layout
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7628an_tplink_re305-v3.dts
index 9f80bd57fb10af3010a04b0f800aa04b4c362726..d0d0701231e9bdd0d0b323cf6a1920c94f976d5c 100644 (file)
                        };
 
                        config: partition@7c0000 {
-                               compatible = "nvmem-cells";
                                label = "config";
                                reg = <0x7c0000 0x30000>;
-                               #address-cells = <1>;
-                               #size-cells = <1>;
                                read-only;
 
-                               macaddr_config_2008: macaddr@2008 {
-                                       reg = <0x2008 0x6>;
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       macaddr_config_2008: macaddr@2008 {
+                                               reg = <0x2008 0x6>;
+                                       };
                                };
                        };
 
                        radio: partition@7f0000 {
-                               compatible = "nvmem-cells";
                                label = "radio";
                                reg = <0x7f0000 0x10000>;
-                               #address-cells = <1>;
-                               #size-cells = <1>;
                                read-only;
 
-                               eeprom_radio_0: eeprom@0 {
-                                       reg = <0x0 0x400>;
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       eeprom_radio_0: eeprom@0 {
+                                               reg = <0x0 0x400>;
+                                       };
+
+                                       eeprom_radio_8000: eeprom@8000 {
+                                               reg = <0x8000 0x200>;
+                                       };
                                };
                        };
                };
 };
 
 &wlan5g {
-       mediatek,mtd-eeprom = <&radio 0x8000>;
-
-       nvmem-cells = <&macaddr_config_2008>;
-       nvmem-cell-names = "mac-address";
+       nvmem-cells = <&eeprom_radio_8000>, <&macaddr_config_2008>;
+       nvmem-cell-names = "eeprom", "mac-address";
        mac-address-increment = <(-2)>;
 };