ramips: add support for TP-Link EX220 v1
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_arcadyan_we420223-99.dts
index 99de77070785bf42f1f62636757b92262de3fcab..1d55453c8d53071d8ed2cccd7938c71ce61f27da 100644 (file)
                        };
 
                        factory: partition@40000 {
+                               compatible = "nvmem-cells";
                                label = "Factory";
                                reg = <0x40000 0x10000>;
+                               #address-cells = <1>;
+                               #size-cells = <1>;
                                read-only;
+
+                               eeprom_factory_0: eeprom@0 {
+                                       reg = <0x0 0x4da8>;
+                               };
                        };
 
                        partition@50000 {
        status = "okay";
 };
 
-&pcie0 {
+&pcie1 {
        mt76@0,0 {
                reg = <0x0000 0 0 0 0>;
-               mediatek,mtd-eeprom = <&factory 0x0000>;
+               nvmem-cells = <&eeprom_factory_0>;
+               nvmem-cell-names = "eeprom";
        };
 };