diff options
author | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2019-06-24 17:57:15 +0200 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2019-09-19 23:43:27 +0200 |
commit | 7140394903b1bfbbb589dafa524e2dbd6cd79862 (patch) | |
tree | 06c042c40f460bdfa6b2d16f8f10a0fc1952512a /target/linux/ramips/dts/mt7621_zbtlink_zbt-wg3526.dtsi | |
parent | f8d96485298e15879b34eb49a00af020aa91d334 (diff) | |
download | upstream-7140394903b1bfbbb589dafa524e2dbd6cd79862.tar.gz upstream-7140394903b1bfbbb589dafa524e2dbd6cd79862.tar.bz2 upstream-7140394903b1bfbbb589dafa524e2dbd6cd79862.zip |
ramips: provide label MAC address
This patch adds the label MAC address for several devices in
ramips.
Some devices require setting the MAC address in 02_network:
For the following devices, the netif device can be linked in
device tree, but the MAC address cannot be read:
- cudy,wr1000
- dlink,dir-615-d
- dlink,dir-615-h1
- dlink,dir-860l-b1
- glinet,gl-mt300a
- glinet,gl-mt300n
- glinet,gl-mt750
- vocore,vocore2
- vocore,vocore2-lite
- zbtlink,zbt-we1326
- zbtlink,zbt-wg3526
For the following devices, label MAC address is tied to lan or
wan, so no node to link to exists in device tree:
- dlink,dir-510l
- dlink,dwr-116-a1
- dlink,dwr-118-a1
- dlink,dwr-118-a2
- dlink,dwr-921-c1
- dlink,dwr-922-e2
- all hiwifi devices
- lava,lr-25g001
- xiaomi,mir3p
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/ramips/dts/mt7621_zbtlink_zbt-wg3526.dtsi')
-rw-r--r-- | target/linux/ramips/dts/mt7621_zbtlink_zbt-wg3526.dtsi | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/target/linux/ramips/dts/mt7621_zbtlink_zbt-wg3526.dtsi b/target/linux/ramips/dts/mt7621_zbtlink_zbt-wg3526.dtsi index 87999b1e46..a2ab252b7e 100644 --- a/target/linux/ramips/dts/mt7621_zbtlink_zbt-wg3526.dtsi +++ b/target/linux/ramips/dts/mt7621_zbtlink_zbt-wg3526.dtsi @@ -11,6 +11,7 @@ led-failsafe = &led_status; led-running = &led_status; led-upgrade = &led_status; + label-mac-device = &wifi0; }; chosen { @@ -92,7 +93,7 @@ }; &pcie0 { - wifi@0,0 { + wifi0: wifi@0,0 { compatible = "pci14c3,7603"; reg = <0x0000 0 0 0 0>; mediatek,mtd-eeprom = <&factory 0x0000>; @@ -100,7 +101,7 @@ }; &pcie1 { - wifi@0,0 { + wifi1: wifi@0,0 { compatible = "pci14c3,7662"; reg = <0x0000 0 0 0 0>; mediatek,mtd-eeprom = <&factory 0x8000>; |