ramips: mt7628: use mac-base
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_tplink_archer-ax23-v1.dts
index 69652772acf604e9e18da87300f34411b4589a5c..50834c586643ec62a2069b8054854b415a07dbc5 100644 (file)
                        };
 
                        config: partition@fa0000 {
-                               compatible = "nvmem-cells";
                                label = "config";
                                reg = <0xfa0000 0x010000>;
-                               #address-cells = <1>;
-                               #size-cells = <1>;
                                read-only;
-
-                               macaddr_config_8: macaddr@8 {
-                                       reg = <0x8 0x6>;
-                               };
                        };
 
                        partition@fb0000 {
                        };
 
                        radio: partition@ff0000 {
-                               compatible = "nvmem-cells";
                                label = "radio";
                                reg = <0xff0000 0x010000>;
-                               #address-cells = <1>;
-                               #size-cells = <1>;
                                read-only;
-
-                               eeprom_radio_0: eeprom@0 {
-                                       reg = <0x0 0xe00>;
-                               };
                        };
                };
        };
        wifi@0,0 {
                compatible = "mediatek,mt76";
                reg = <0x0000 0 0 0 0>;
-               nvmem-cells = <&eeprom_radio_0>, <&macaddr_config_8>;
-               nvmem-cell-names = "eeprom", "mac-address";
+               mediatek,mtd-eeprom = <&radio 0x0>;
+               nvmem-cells = <&macaddr_config_8>;
+               nvmem-cell-names = "mac-address";
                mediatek,disable-radar-background;
        };
 };
                function = "gpio";
        };
 };
+
+&config {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_config_8: macaddr@8 {
+               reg = <0x8 0x6>;
+       };
+};