ramips: add support for D-Link COVR-X1860 A1
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_zyxel_wap6805.dts
index a46723664099267257b08f3b1925f5a48552d253..5df2f3c6ab69f918045514fe658c27bdb81fc6ea 100644 (file)
                };
 
                factory: partition@200000 {
+                       compatible = "nvmem-cells";
                        label = "Factory";
                        reg = <0x200000 0x100000>;
+                       #address-cells = <1>;
+                       #size-cells = <1>;
                        read-only;
+
+                       eeprom_factory_0: eeprom@0 {
+                               reg = <0x0 0x400>;
+                       };
+
+                       macaddr_factory_e000: macaddr@e000 {
+                               reg = <0xe000 0x6>;
+                       };
                };
 
                partition@300000 {
 &pcie0 {
        mt76@0,0 {
                reg = <0x0000 0 0 0 0>;
-               mediatek,mtd-eeprom = <&factory 0x0>;
+               nvmem-cells = <&eeprom_factory_0>;
+               nvmem-cell-names = "eeprom";
        };
 };
 
                function = "gpio";
        };
 };
-
-&factory {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_factory_e000: macaddr@e000 {
-               reg = <0xe000 0x6>;
-       };
-};