ARM: dts: imx6qdl-gw5904: add dt props for populating eth MAC addrs
authorTim Harvey <tharvey@gateworks.com>
Tue, 26 Sep 2023 19:41:10 +0000 (12:41 -0700)
committerShawn Guo <shawnguo@kernel.org>
Tue, 10 Oct 2023 12:41:47 +0000 (20:41 +0800)
Add device-tree props to allow boot firmware to populate MAC addresses.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/nxp/imx/imx6qdl-gw5904.dtsi

index 3375b3fd8d4ccb0a77b20700f12eb71257cbc5c7..1e723807ab4c2424b6259fec11201847f231a33f 100644 (file)
 / {
        /* 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;
                                #address-cells = <1>;
                                #size-cells = <0>;
 
-                               port@0 {
+                               lan4: port@0 {
                                        reg = <0>;
                                        label = "lan4";
                                        phy-handle = <&sw_phy0>;
                                        phy-mode = "internal";
+                                       local-mac-address = [00 00 00 00 00 00];
                                };
 
-                               port@1 {
+                               lan3: port@1 {
                                        reg = <1>;
                                        label = "lan3";
                                        phy-handle = <&sw_phy1>;
                                        phy-mode = "internal";
+                                       local-mac-address = [00 00 00 00 00 00];
                                };
 
-                               port@2 {
+                               lan2: port@2 {
                                        reg = <2>;
                                        label = "lan2";
                                        phy-handle = <&sw_phy2>;
                                        phy-mode = "internal";
+                                       local-mac-address = [00 00 00 00 00 00];
                                };
 
-                               port@3 {
+                               lan1: port@3 {
                                        reg = <3>;
                                        label = "lan1";
                                        phy-handle = <&sw_phy3>;
                                        phy-mode = "internal";
+                                       local-mac-address = [00 00 00 00 00 00];
                                };
 
                                port@5 {