[PATCH 2/2] ARM: dts: imx6qdl-gw5904: add dt props for populating eth MAC addrs
Tim Harvey
tharvey at gateworks.com
Wed Nov 30 16:31:09 PST 2022
Add device-tree props to allow boot firmware to populate MAC addresses.
Signed-off-by: Tim Harvey <tharvey at gateworks.com>
---
arch/arm/boot/dts/imx6qdl-gw5904.dtsi | 17 +++++++++++++----
1 file changed, 13 insertions(+), 4 deletions(-)
diff --git a/arch/arm/boot/dts/imx6qdl-gw5904.dtsi b/arch/arm/boot/dts/imx6qdl-gw5904.dtsi
index 08463e65dca3..6596e8bd7e60 100644
--- a/arch/arm/boot/dts/imx6qdl-gw5904.dtsi
+++ b/arch/arm/boot/dts/imx6qdl-gw5904.dtsi
@@ -52,6 +52,11 @@
/ {
/* these are used by bootloader for disabling nodes */
aliases {
+ ethernet0 = &fec;
+ ethernet1 = &lan1;
+ ethernet2 = &lan2;
+ ethernet3 = &lan3;
+ ethernet4 = &lan4;
led0 = &led0;
led1 = &led1;
led2 = &led2;
@@ -237,32 +242,36 @@ ports {
#address-cells = <1>;
#size-cells = <0>;
- port at 0 {
+ lan4: port at 0 {
reg = <0>;
label = "lan4";
phy-handle = <&sw_phy0>;
phy-mode = "internal";
+ local-mac-address = [00 00 00 00 00 00];
};
- port at 1 {
+ lan3: port at 1 {
reg = <1>;
label = "lan3";
phy-handle = <&sw_phy1>;
phy-mode = "internal";
+ local-mac-address = [00 00 00 00 00 00];
};
- port at 2 {
+ lan2: port at 2 {
reg = <2>;
label = "lan2";
phy-handle = <&sw_phy2>;
phy-mode = "internal";
+ local-mac-address = [00 00 00 00 00 00];
};
- port at 3 {
+ lan1: port at 3 {
reg = <3>;
label = "lan1";
phy-handle = <&sw_phy3>;
phy-mode = "internal";
+ local-mac-address = [00 00 00 00 00 00];
};
port at 5 {
--
2.25.1
More information about the linux-arm-kernel
mailing list