From 7140394903b1bfbbb589dafa524e2dbd6cd79862 Mon Sep 17 00:00:00 2001 From: Adrian Schmutzler Date: Mon, 24 Jun 2019 17:57:15 +0200 Subject: 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 --- target/linux/ramips/dts/mt7620a_glinet_gl-mt750.dts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'target/linux/ramips/dts/mt7620a_glinet_gl-mt750.dts') diff --git a/target/linux/ramips/dts/mt7620a_glinet_gl-mt750.dts b/target/linux/ramips/dts/mt7620a_glinet_gl-mt750.dts index 11133a126a..8fc0df2a33 100644 --- a/target/linux/ramips/dts/mt7620a_glinet_gl-mt750.dts +++ b/target/linux/ramips/dts/mt7620a_glinet_gl-mt750.dts @@ -9,6 +9,10 @@ compatible = "glinet,gl-mt750", "ralink,mt7620a-soc"; model = "GL-MT750"; + aliases { + label-mac-device = &wmac; + }; + chosen { bootargs = "console=ttyS0,115200"; }; -- cgit v1.2.3