diff mbox series

[OpenWrt-Devel] ipq40xx: add label MAC address for Netgear EX6150v2

Message ID 20191007173827.63607-1-freifunk@adrianschmutzler.de
State Changes Requested
Delegated to: David Bauer
Headers show
Series [OpenWrt-Devel] ipq40xx: add label MAC address for Netgear EX6150v2 | expand

Commit Message

Adrian Schmutzler Oct. 7, 2019, 5:38 p.m. UTC
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>
---
 .../files-4.19/arch/arm/boot/dts/qcom-ipq4018-ex6150v2.dts    | 4 ++++
 1 file changed, 4 insertions(+)

Comments

David Bauer Oct. 17, 2019, 3:49 p.m. UTC | #1
Hello Adrian,

On 10/7/19 7:38 PM, Adrian Schmutzler wrote:
> 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.

You can define the property in the common DTSI for the EX6100v2 / EX6150v2,
as they are identical.

Best wishes
David

> 
> (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>
> ---
>  .../files-4.19/arch/arm/boot/dts/qcom-ipq4018-ex6150v2.dts    | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/target/linux/ipq40xx/files-4.19/arch/arm/boot/dts/qcom-ipq4018-ex6150v2.dts b/target/linux/ipq40xx/files-4.19/arch/arm/boot/dts/qcom-ipq4018-ex6150v2.dts
> index f1c44c1ae8..9724894e7f 100644
> --- a/target/linux/ipq40xx/files-4.19/arch/arm/boot/dts/qcom-ipq4018-ex6150v2.dts
> +++ b/target/linux/ipq40xx/files-4.19/arch/arm/boot/dts/qcom-ipq4018-ex6150v2.dts
> @@ -22,6 +22,10 @@
>  / {
>  	model = "Netgear EX6150v2";
>  	compatible = "netgear,ex6150v2";
> +
> +	aliases {
> +		label-mac-device = &gmac0;
> +	};
>  };
>  
>  &wifi0 {
>
diff mbox series

Patch

diff --git a/target/linux/ipq40xx/files-4.19/arch/arm/boot/dts/qcom-ipq4018-ex6150v2.dts b/target/linux/ipq40xx/files-4.19/arch/arm/boot/dts/qcom-ipq4018-ex6150v2.dts
index f1c44c1ae8..9724894e7f 100644
--- a/target/linux/ipq40xx/files-4.19/arch/arm/boot/dts/qcom-ipq4018-ex6150v2.dts
+++ b/target/linux/ipq40xx/files-4.19/arch/arm/boot/dts/qcom-ipq4018-ex6150v2.dts
@@ -22,6 +22,10 @@ 
 / {
 	model = "Netgear EX6150v2";
 	compatible = "netgear,ex6150v2";
+
+	aliases {
+		label-mac-device = &gmac0;
+	};
 };
 
 &wifi0 {