diff options
author | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2021-08-19 01:16:39 +0200 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2021-08-20 18:10:48 +0200 |
commit | 7f1b0f68f16c3f063322887ee10b0ae8f47603af (patch) | |
tree | fd20478a5ff2a4e329388f8de37cc96067027ddf /target/linux/ramips/dts/mt7621_dlink_dir-853-r1.dts | |
parent | cc0112d9d73302b7548a8b3b089d4f7a5308a2fd (diff) | |
download | upstream-7f1b0f68f16c3f063322887ee10b0ae8f47603af.tar.gz upstream-7f1b0f68f16c3f063322887ee10b0ae8f47603af.tar.bz2 upstream-7f1b0f68f16c3f063322887ee10b0ae8f47603af.zip |
ramips: convert mtd-mac-address to nvmem for D-Link DIR-8xx
Convert this series by moving the definitions to the individual
devices.
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/ramips/dts/mt7621_dlink_dir-853-r1.dts')
-rw-r--r-- | target/linux/ramips/dts/mt7621_dlink_dir-853-r1.dts | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/target/linux/ramips/dts/mt7621_dlink_dir-853-r1.dts b/target/linux/ramips/dts/mt7621_dlink_dir-853-r1.dts index 09e46b011e..c0ad172939 100644 --- a/target/linux/ramips/dts/mt7621_dlink_dir-853-r1.dts +++ b/target/linux/ramips/dts/mt7621_dlink_dir-853-r1.dts @@ -13,6 +13,7 @@ aliases { label-mac-device = &wan; + led-boot = &led_power_orange; led-failsafe = &led_power_blue; led-running = &led_power_blue; @@ -93,16 +94,20 @@ wifi@0,0 { compatible = "mediatek,mt76"; reg = <0x0000 0 0 0 0>; + mediatek,mtd-eeprom = <&factory 0x0>; + /* 5 GHz (phy1) does not take the address from calibration data, but setting it manually here works */ - mtd-mac-address = <&factory 0x4>; + nvmem-cells = <&macaddr_factory_4>; + nvmem-cell-names = "mac-address"; }; }; &gmac0 { - mtd-mac-address = <&factory 0x4>; - mtd-mac-address-increment = <(-1)>; + nvmem-cells = <&macaddr_factory_4>; + nvmem-cell-names = "mac-address"; + mac-address-increment = <(-1)>; }; &switch0 { @@ -130,8 +135,9 @@ wan: port@4 { status = "okay"; label = "wan"; - mtd-mac-address = <&factory 0x4>; - mtd-mac-address-increment = <(-2)>; + nvmem-cells = <&macaddr_factory_4>; + nvmem-cell-names = "mac-address"; + mac-address-increment = <(-2)>; }; }; }; @@ -142,3 +148,13 @@ function = "gpio"; }; }; + +&factory { + compatible = "nvmem-cells"; + #address-cells = <1>; + #size-cells = <1>; + + macaddr_factory_4: macaddr@4 { + reg = <0x4 0x6>; + }; +}; |