diff options
Diffstat (limited to 'target/linux/ramips/dts/mt7621_tplink_archer-c6u-v1.dts')
-rw-r--r-- | target/linux/ramips/dts/mt7621_tplink_archer-c6u-v1.dts | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/target/linux/ramips/dts/mt7621_tplink_archer-c6u-v1.dts b/target/linux/ramips/dts/mt7621_tplink_archer-c6u-v1.dts index 7d38b7b096..93ceeb08f4 100644 --- a/target/linux/ramips/dts/mt7621_tplink_archer-c6u-v1.dts +++ b/target/linux/ramips/dts/mt7621_tplink_archer-c6u-v1.dts @@ -145,7 +145,8 @@ compatible = "mediatek,mt76"; reg = <0x0000 0 0 0 0>; mediatek,mtd-eeprom = <&radio 0x0>; - mtd-mac-address = <&config 0x8>; + nvmem-cells = <&macaddr_config_8>; + nvmem-cell-names = "mac-address"; ieee80211-freq-limit = <2400000 2500000>; }; }; @@ -155,8 +156,9 @@ compatible = "mediatek,mt76"; reg = <0x0000 0 0 0 0>; mediatek,mtd-eeprom = <&radio 0x8000>; - mtd-mac-address = <&config 0x8>; - mtd-mac-address-increment = <(-1)>; + nvmem-cells = <&macaddr_config_8>; + nvmem-cell-names = "mac-address"; + mac-address-increment = <(-1)>; ieee80211-freq-limit = <5000000 6000000>; }; }; @@ -167,7 +169,8 @@ }; &gmac0 { - mtd-mac-address = <&config 0x8>; + nvmem-cells = <&macaddr_config_8>; + nvmem-cell-names = "mac-address"; }; &switch0 { @@ -175,8 +178,9 @@ port@0 { status = "okay"; label = "wan"; - mtd-mac-address = <&config 0x8>; - mtd-mac-address-increment = <1>; + nvmem-cells = <&macaddr_config_8>; + nvmem-cell-names = "mac-address"; + mac-address-increment = <1>; }; port@1 { @@ -211,3 +215,13 @@ &xhci { vbus-supply = <®_usb_vbus>; }; + +&config { + compatible = "nvmem-cells"; + #address-cells = <1>; + #size-cells = <1>; + + macaddr_config_8: macaddr@8 { + reg = <0x8 0x6>; + }; +}; |