ramips: convert mtd-mac-address to nvmem implementation
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7620a_dlink_dir-510l.dts
index 5b8d883dd591c330d6ecd805644960a2c60043a3..2b8ad2759c4c81338f7afe68a68c917cd16d96b4 100644 (file)
 &pcie0 {
        mt76x0e@0,0 {
                reg = <0x0000 0 0 0 0>;
-               mtd-mac-address = <&config 0xe490>;
+               nvmem-cells = <&macaddr_config_e490>;
+               nvmem-cell-names = "mac-address";
                mac-address-increment = <(2)>;
                mediatek,mtd-eeprom = <&config 0xe05d>;
        };
                function = "gpio";
        };
 };
+
+&config {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_config_e490: macaddr@e490 {
+               reg = <0xe490 0x6>;
+       };
+};