diff options
Diffstat (limited to 'target/linux/ramips/dts/mt7621_sercomm_na502.dts')
-rw-r--r-- | target/linux/ramips/dts/mt7621_sercomm_na502.dts | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/target/linux/ramips/dts/mt7621_sercomm_na502.dts b/target/linux/ramips/dts/mt7621_sercomm_na502.dts index af55d1058f..ee77e30362 100644 --- a/target/linux/ramips/dts/mt7621_sercomm_na502.dts +++ b/target/linux/ramips/dts/mt7621_sercomm_na502.dts @@ -96,7 +96,8 @@ }; &gmac0 { - mtd-mac-address = <&factory 0xe000>; + nvmem-cells = <&macaddr_factory_e000>; + nvmem-cell-names = "mac-address"; }; &nand { @@ -170,8 +171,9 @@ compatible = "mediatek,mt76"; reg = <0x0000 0 0 0 0>; mediatek,mtd-eeprom = <&factory 0x8000>; - mtd-mac-address = <&factory 0xe000>; - mtd-mac-address-increment = <1>; + nvmem-cells = <&macaddr_factory_e000>; + nvmem-cell-names = "mac-address"; + mac-address-increment = <1>; ieee80211-freq-limit = <5000000 6000000>; }; }; @@ -181,8 +183,9 @@ compatible = "mediatek,mt76"; reg = <0x0 0 0 0 0>; mediatek,mtd-eeprom = <&factory 0x0000>; - mtd-mac-address = <&factory 0xe000>; - mtd-mac-address-increment = <2>; + nvmem-cells = <&macaddr_factory_e000>; + nvmem-cell-names = "mac-address"; + mac-address-increment = <2>; ieee80211-freq-limit = <2400000 2500000>; }; }; @@ -210,3 +213,13 @@ &uartlite3 { status = "okay"; }; + +&factory { + compatible = "nvmem-cells"; + #address-cells = <1>; + #size-cells = <1>; + + macaddr_factory_e000: macaddr@e000 { + reg = <0xe000 0x6>; + }; +}; |