diff mbox series

[OpenWrt-Devel,v2] ipq40xx: add label MAC address for Netgear EX6100v2/EX6150v2

Message ID 20191021113628.2728-1-freifunk@adrianschmutzler.de
State Accepted
Delegated to: John Crispin
Headers show
Series [OpenWrt-Devel,v2] ipq40xx: add label MAC address for Netgear EX6100v2/EX6150v2 | expand

Commit Message

Adrian Schmutzler Oct. 21, 2019, 11:36 a.m. UTC
This is based on the EX6150v2, which should be identical to
the EX6100v2:

The device bears two MAC addresses ("MAC 1" and "MAC 2") that
correspond to phy0 and phy1.

The ethernet MAC address (gmac0) is the same as phy0.
As this one is accessible via local-mac-address in gmac0, the
latter is used for label-mac-device.

(Although this is a one-port, gmac1 also has a local-mac-address
assigned. This has the same vendor part as the other addresses,
but completely different data for the device part.)

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>

---

v2: Also set for ex6100v2 by using DTSI
---
 .../files-4.19/arch/arm/boot/dts/qcom-ipq4018-ex61x0v2.dtsi      | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/target/linux/ipq40xx/files-4.19/arch/arm/boot/dts/qcom-ipq4018-ex61x0v2.dtsi b/target/linux/ipq40xx/files-4.19/arch/arm/boot/dts/qcom-ipq4018-ex61x0v2.dtsi
index edc1af60fe..cc70080c92 100644
--- a/target/linux/ipq40xx/files-4.19/arch/arm/boot/dts/qcom-ipq4018-ex61x0v2.dtsi
+++ b/target/linux/ipq40xx/files-4.19/arch/arm/boot/dts/qcom-ipq4018-ex61x0v2.dtsi
@@ -78,6 +78,7 @@ 
 		led-failsafe = &power_amber;
 		led-running = &power_green;
 		led-upgrade = &power_amber;
+		label-mac-device = &gmac0;
 	};
 
 	keys {