ramips: convert mtd-mac-address to nvmem implementation
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_ubnt_unifi-6-lite.dts
index d374fd3ddead759c6737a01731f8e0c8c22ddb0f..1265a921232fd60b7f5a746b9c898f564169c63e 100644 (file)
 };
 
 &wlan_2g {
-       mtd-mac-address = <&eeprom 0x0>;
+       nvmem-cells = <&macaddr_eeprom_0>;
+       nvmem-cell-names = "mac-address";
 };
 
 &wlan_5g {
        mediatek,mtd-eeprom = <&factory 0x20000>;
-       mtd-mac-address = <&eeprom 0x6>;
+       nvmem-cells = <&macaddr_eeprom_6>;
+       nvmem-cell-names = "mac-address";
        ieee80211-freq-limit = <5000000 6000000>;
 };
+
+&eeprom {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_eeprom_0: macaddr@0 {
+               reg = <0x0 0x6>;
+       };
+
+       macaddr_eeprom_6: macaddr@6 {
+               reg = <0x6 0x6>;
+       };
+};