ramips: fix DTS EEPROM property for some MT7628 devices
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_tplink_re2x0-v1.dtsi
index 80b47b7d774b4ed6b54202e0bb7ba9c0d7870dfa..e6d9b8576d98d7042dd0e7e361713e5273228c84 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&uboot 0x1fc00>;
+       nvmem-cells = <&macaddr_uboot_1fc00>;
+       nvmem-cell-names = "mac-address";
 };
 
 &wmac {
        ralink,mtd-eeprom = <&radio 0x0>;
-       mtd-mac-address = <&uboot 0x1fc00>;
+       nvmem-cells = <&macaddr_uboot_1fc00>;
+       nvmem-cell-names = "mac-address";
 };
 
 &pcie {
        mt76@0,0 {
                reg = <0x0000 0 0 0 0>;
                mediatek,mtd-eeprom = <&radio 0x8000>;
-               mtd-mac-address = <&uboot 0x1fc00>;
-               mtd-mac-address-increment = <2>;
+               nvmem-cells = <&macaddr_uboot_1fc00>;
+               nvmem-cell-names = "mac-address";
+               mac-address-increment = <2>;
                ieee80211-freq-limit = <5000000 6000000>;
        };
 };
+
+&uboot {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_uboot_1fc00: macaddr@1fc00 {
+               reg = <0x1fc00 0x6>;
+       };
+};