diff options
author | Ansuel Smith <ansuelsmth@gmail.com> | 2021-04-02 23:53:02 +0200 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2021-07-19 14:51:22 +0200 |
commit | 1e6f330ccfa91f8a6860cfc768299490e3c08603 (patch) | |
tree | 7e7a3374975e737177d7258b872b3c84a65d80e8 /target/linux/mediatek/dts/mt7622-ubnt-unifi-6-lr.dts | |
parent | 8ec21d6bb2101d801f1ee915d1cd0412c6585078 (diff) | |
download | upstream-1e6f330ccfa91f8a6860cfc768299490e3c08603.tar.gz upstream-1e6f330ccfa91f8a6860cfc768299490e3c08603.tar.bz2 upstream-1e6f330ccfa91f8a6860cfc768299490e3c08603.zip |
mediatek: convert mtd-mac-address to nvmem implementation
Define nvmem-cells and convert mtd-mac-address to nvmem implementation.
The conversion is done with an automated script.
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Diffstat (limited to 'target/linux/mediatek/dts/mt7622-ubnt-unifi-6-lr.dts')
-rw-r--r-- | target/linux/mediatek/dts/mt7622-ubnt-unifi-6-lr.dts | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/target/linux/mediatek/dts/mt7622-ubnt-unifi-6-lr.dts b/target/linux/mediatek/dts/mt7622-ubnt-unifi-6-lr.dts index 8603de392a..9b676b43c1 100644 --- a/target/linux/mediatek/dts/mt7622-ubnt-unifi-6-lr.dts +++ b/target/linux/mediatek/dts/mt7622-ubnt-unifi-6-lr.dts @@ -65,7 +65,8 @@ &wmac { mediatek,mtd-eeprom = <&factory 0x0>; - mtd-mac-address = <&eeprom 0x0>; + nvmem-cells = <&macaddr_eeprom_0>; + nvmem-cell-names = "mac-address"; status = "okay"; }; @@ -73,11 +74,27 @@ wifi@0,0 { reg = <0x0 0 0 0 0>; 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>; }; }; &gmac0 { - mtd-mac-address = <&eeprom 0x0>; + nvmem-cells = <&macaddr_eeprom_0>; + nvmem-cell-names = "mac-address"; +}; + +&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>; + }; }; |