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-buffalo-wsr-2533dhp2.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-buffalo-wsr-2533dhp2.dts')
-rw-r--r-- | target/linux/mediatek/dts/mt7622-buffalo-wsr-2533dhp2.dts | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/target/linux/mediatek/dts/mt7622-buffalo-wsr-2533dhp2.dts b/target/linux/mediatek/dts/mt7622-buffalo-wsr-2533dhp2.dts index 62e2e7f4cb..6d77be532b 100644 --- a/target/linux/mediatek/dts/mt7622-buffalo-wsr-2533dhp2.dts +++ b/target/linux/mediatek/dts/mt7622-buffalo-wsr-2533dhp2.dts @@ -218,8 +218,9 @@ phy-connection-type = "2500base-x"; - mtd-mac-address = <&factory 0x4>; - mtd-mac-address-increment = <(-1)>; + nvmem-cells = <&macaddr_factory_4>; + nvmem-cell-names = "mac-address"; + mac-address-increment = <(-1)>; fixed-link { speed = <2500>; @@ -337,3 +338,13 @@ &rtc { status = "disabled"; }; + +&factory { + compatible = "nvmem-cells"; + #address-cells = <1>; + #size-cells = <1>; + + macaddr_factory_4: macaddr@4 { + reg = <0x4 0x6>; + }; +}; |