ARM: dts: imx6dl-yapp4: Add ethernet aliases
authorMichal Vokáč <michal.vokac@ysoft.com>
Thu, 30 Jul 2020 10:13:46 +0000 (12:13 +0200)
committerShawn Guo <shawnguo@kernel.org>
Sat, 22 Aug 2020 12:06:10 +0000 (20:06 +0800)
Add aliases for ethernet switch ports to allow bootloader to fix
MAC addresses to the ones stored in onboard configuration EEPROM.

Ursa has only one ethernet port populated (eth2) so alias for
the first port has to be removed on this board.

Signed-off-by: Michal Vokáč <michal.vokac@ysoft.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6dl-yapp4-common.dtsi
arch/arm/boot/dts/imx6dl-yapp4-ursa.dts

index c4a235d..207f510 100644 (file)
@@ -8,6 +8,11 @@
 #include <dt-bindings/pwm/pwm.h>
 
 / {
+       aliases: aliases {
+               ethernet1 = &eth1;
+               ethernet2 = &eth2;
+       };
+
        backlight: backlight {
                compatible = "pwm-backlight";
                pwms = <&pwm1 0 500000 PWM_POLARITY_INVERTED>;
                                        };
                                };
 
-                               port@2 {
+                               eth2: port@2 {
                                        reg = <2>;
                                        label = "eth2";
                                        phy-handle = <&phy_port2>;
                                };
 
-                               port@3 {
+                               eth1: port@3 {
                                        reg = <3>;
                                        label = "eth1";
                                        phy-handle = <&phy_port3>;
index a1173bf..f6ae24e 100644 (file)
        };
 };
 
+&aliases {
+       /delete-property/ ethernet1;
+};
+
 &backlight {
        status = "okay";
 };