Revert "ramips: convert MT7915 EEPROM to NVMEM format"
[openwrt/staging/stintel.git] / target / linux / ramips / dts / mt7621_yuncore_ax820.dts
index 277c584509a8250d55a63ee90d98dd97c6eed21c..1aba94a9125591832b384d396c54cd5598ac41ae 100644 (file)
                         */
 
                        factory: partition@50000 {
-                               compatible = "nvmem-cells";
                                label = "Factory";
                                reg = <0x50000 0x40000>;
-                               #address-cells = <1>;
-                               #size-cells = <1>;
                                read-only;
-
-                               eeprom_factory_0: eeprom@0 {
-                                       reg = <0x0 0xe00>;
-                               };
-
-                               macaddr_factory_e000: macaddr@e000 {
-                                       reg = <0xe000 0x6>;
-                               };
                        };
 
                        partition@90000 {
        wifi@0,0 {
                compatible = "mediatek,mt76";
                reg = <0x0000 0 0 0 0>;
-               nvmem-cells = <&eeprom_factory_0>;
-               nvmem-cell-names = "eeprom";
+               mediatek,mtd-eeprom = <&factory 0x0>;
                mediatek,disable-radar-background;
        };
 };
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_e000: macaddr@e000 {
+               reg = <0xe000 0x6>;
+       };
+};