From 50fdc0374b75584f19c75f712ca0472a7113a065 Mon Sep 17 00:00:00 2001 From: Adrian Schmutzler Date: Thu, 15 Aug 2019 15:13:33 +0200 Subject: ath79: provide label MAC address This patch adds the label MAC address for several devices in ath79. 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: - alfa-network,ap121f - avm,fritz300e - ubnt-xm devices For the following devices, label MAC address is tied to lan or wan, so no node to link to exists in device tree: - adtran,bsap1800-v2 - adtran,bsap1840 - dlink,dir-842-c1/-c2/-c3 - engenius,ecb1750 - iodata,etg3-r - iodata,wn-ac1167dgr - iodata,wn-ac1600dgr - iodata,wn-ac1600dgr2 - iodata,wn-ag300dgr - nec,wg800hp - nec,wg1200cr - trendnet,tew-823dru Signed-off-by: Adrian Schmutzler --- target/linux/ath79/dts/qca9563_ubnt_unifiac-lite.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'target/linux/ath79/dts/qca9563_ubnt_unifiac-lite.dtsi') diff --git a/target/linux/ath79/dts/qca9563_ubnt_unifiac-lite.dtsi b/target/linux/ath79/dts/qca9563_ubnt_unifiac-lite.dtsi index 6fe43453ec..4f77661fbd 100644 --- a/target/linux/ath79/dts/qca9563_ubnt_unifiac-lite.dtsi +++ b/target/linux/ath79/dts/qca9563_ubnt_unifiac-lite.dtsi @@ -2,6 +2,12 @@ #include "qca9563_ubnt_unifiac.dtsi" +/ { + aliases { + label-mac-device = ð0; + }; +}; + &mdio0 { status = "okay"; -- cgit v1.2.3