aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts/mt7621_ubnt_unifi-6-lite.dts
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ramips/dts/mt7621_ubnt_unifi-6-lite.dts')
-rw-r--r--target/linux/ramips/dts/mt7621_ubnt_unifi-6-lite.dts20
1 files changed, 18 insertions, 2 deletions
diff --git a/target/linux/ramips/dts/mt7621_ubnt_unifi-6-lite.dts b/target/linux/ramips/dts/mt7621_ubnt_unifi-6-lite.dts
index d374fd3dde..1265a92123 100644
--- a/target/linux/ramips/dts/mt7621_ubnt_unifi-6-lite.dts
+++ b/target/linux/ramips/dts/mt7621_ubnt_unifi-6-lite.dts
@@ -74,11 +74,27 @@
};
&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>;
+ };
+};