ramips: convert MT7628 EEPROM to NVMEM format
[openwrt/staging/stintel.git] / target / linux / ramips / dts / mt7628an_tplink_re305-v3.dts
index 21df0fb3e69d6f2ed94d32a3bda498e6030ab9b3..9f80bd57fb10af3010a04b0f800aa04b4c362726 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>;
+                               };
                        };
 
                        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>;
+                               };
                        };
                };
        };
 };
 
 &wmac {
-       mediatek,mtd-eeprom = <&radio 0x0>;
-
-       nvmem-cells = <&macaddr_config_2008>;
-       nvmem-cell-names = "mac-address";
+       nvmem-cells = <&eeprom_radio_0>, <&macaddr_config_2008>;
+       nvmem-cell-names = "eeprom", "mac-address";
        mac-address-increment = <(-1)>;
 };
 
        nvmem-cells = <&macaddr_config_2008>;
        nvmem-cell-names = "mac-address";
 };
-
-&config {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_config_2008: macaddr@2008 {
-               reg = <0x2008 0x6>;
-       };
-};