diff options
author | Ansuel Smith <ansuelsmth@gmail.com> | 2021-04-02 23:40:10 +0200 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2021-07-19 14:51:22 +0200 |
commit | 939c0030dba2742e17e18b68999e23317796ace8 (patch) | |
tree | 1952aecf13236a620aa1eb056e028741b444f205 /target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube_arcadyan_arv8539pw22.dts | |
parent | 0458a8993ca1c1594bc19d247909324f157abeef (diff) | |
download | upstream-939c0030dba2742e17e18b68999e23317796ace8.tar.gz upstream-939c0030dba2742e17e18b68999e23317796ace8.tar.bz2 upstream-939c0030dba2742e17e18b68999e23317796ace8.zip |
lantiq: 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/lantiq/files/arch/mips/boot/dts/lantiq/danube_arcadyan_arv8539pw22.dts')
-rw-r--r-- | target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube_arcadyan_arv8539pw22.dts | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube_arcadyan_arv8539pw22.dts b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube_arcadyan_arv8539pw22.dts index 3b9f6c2461..83a303b9e8 100644 --- a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube_arcadyan_arv8539pw22.dts +++ b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube_arcadyan_arv8539pw22.dts @@ -107,7 +107,8 @@ &gsw { phy-mode = "mii"; - mtd-mac-address = <&art 0x16>; + nvmem-cells = <&macaddr_art_16>; + nvmem-cell-names = "mac-address"; }; &localbus { @@ -159,7 +160,8 @@ compatible = "pci168c,0029"; reg = <0x7000 0 0 0 0>; qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:00:0e.0.bin */ - mtd-mac-address = <&art 0x16>; + nvmem-cells = <&macaddr_art_16>; + nvmem-cell-names = "mac-address"; mac-address-increment = <1>; }; }; @@ -177,3 +179,13 @@ status = "okay"; gpios = <&gpio 31 GPIO_ACTIVE_HIGH>; }; + +&art { + compatible = "nvmem-cells"; + #address-cells = <1>; + #size-cells = <1>; + + macaddr_art_16: macaddr@16 { + reg = <0x16 0x6>; + }; +}; |