Updating the driver patches for ipq40xx (correctly) removed the
ethernet0 alias from qcom-ipq4019.dtsi; however, on some devices this
alias is needed for the bootloader to set MAC addresses in the FDT.
As it is unknown which devices actually need the alias, simply add it to
all devices trees for now that enable the &gmac now to avoid regressions
from previous OpenWrt releases. The additional alias should not cause any
issues even when it is not needed.
A TODO comment is added to the same Device Trees to document that the
alias may not be needed (hopefully preventing it from being copied
unnecessarily to newly added devices in the future). The following
devices are known to need the alias for correct MAC address assignment,
so no TODO comment is added:
- FRITZ!Box 4040
- FRITZ!Box 7530
Fixes: cd9c7211241e ("ipq40xx: 6.1: use latest DSA and ethernet patches")
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Link: https://github.com/openwrt/openwrt/pull/17442
Signed-off-by: Robert Marko <robimarko@gmail.com>
};
aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
led-boot = &led_status_green;
led-failsafe = &led_status_green;
led-running = &led_status_green;
led-failsafe = &status;
led-running = &status;
led-upgrade = &status;
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
ethernet1 = &swport5;
};
};
aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
led-boot = &led_user;
led-failsafe = &led_user;
led-running = &led_user;
compatible = "ezviz,cs-w3-wd1200g-eup";
aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
led-boot = &led_status_green;
led-failsafe = &led_status_red;
led-running = &led_status_blue;
compatible = "dlink,dap-2610";
aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
led-boot = &led_red;
led-failsafe = &led_red;
led-running = &led_green;
compatible = "linksys,ea6350v3";
aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
led-boot = &power;
led-failsafe = &power;
led-running = &power;
};
aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
led-boot = &power;
led-failsafe = &power;
led-running = &power;
};
aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
led-boot = &power_amber;
led-failsafe = &power_amber;
led-running = &power_green;
compatible = "avm,fritzbox-4040";
aliases {
+ ethernet0 = &gmac;
led-boot = &power;
led-failsafe = &flash;
led-running = &power;
compatible = "glinet,gl-a1300", "qcom,ipq4019";
aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
led-boot = &led_run;
led-failsafe = &led_run;
led-running = &led_run;
compatible = "glinet,gl-ap1300";
aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
led-boot = &led_power;
led-failsafe = &led_power;
led-running = &led_power;
};
aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
led-boot = &led_user;
led-failsafe = &led_user;
led-running = &led_user;
/ {
aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
ethernet1 = &swport5;
};
model = "devolo Magic 2 WiFi next";
compatible = "devolo,magic-2-wifi-next";
+ aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
+ };
+
memory {
device_type = "memory";
reg = <0x80000000 0x10000000>;
/ {
aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
led-boot = &led_status;
led-failsafe = &led_status;
led-running = &led_status;
};
aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
led-boot = &power;
led-failsafe = &power;
led-running = &power;
};
aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
led-boot = &led_status_purple;
led-failsafe = &led_status_yellow;
led-running = &led_status_cyan;
};
aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
led-boot = &led_power;
led-failsafe = &led_power;
led-running = &led_power;
compatible = "teltonika,rutx50";
aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
led-boot = &led_rssi0;
led-failsafe = &led_rssi0;
led-running = &led_rssi0;
};
aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
led-boot = &led_user;
led-failsafe = &led_user;
led-running = &led_user;
led-failsafe = &led_power_amber;
led-running = &led_power_green;
led-upgrade = &led_power_amber;
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
ethernet1 = &swport5;
};
};
aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
led-boot = &led_user;
led-failsafe = &led_user;
led-running = &led_user;
compatible = "linksys,whw01";
aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
serial0 = &blsp1_uart1;
led-boot = &led_system_blue;
led-running = &led_system_blue;
compatible = "pakedge,wr-1";
aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
label-mac-device = &gmac;
led-boot = &led_power;
led-failsafe = &led_power;
model = "Luma Home WRTQ-329ACN";
compatible = "luma,wrtq-329acn";
+ aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
+ };
+
i2c-gpio {
compatible = "i2c-gpio";
sda-gpios = <&tlmm 1 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
};
aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
led-boot = &led_status_green;
led-failsafe = &led_status_green;
led-running = &led_status_green;
compatible = "mobipromo,cm520-79f";
aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
led-boot = &led_sys;
led-failsafe = &led_sys;
led-running = &led_sys;
/ {
model = "Qxwlan E2600AC c1";
compatible = "qxwlan,e2600ac-c1";
+
+ aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
+ };
};
&blsp1_spi1 {
/ {
model = "Qxwlan E2600AC c2";
compatible = "qxwlan,e2600ac-c2";
+
+ aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
+ };
};
&blsp1_spi1 {
};
aliases {
+ ethernet0 = &gmac;
led-boot = &power_green;
led-failsafe = &info_red;
led-running = &power_green;
compatible = "avm,fritzrepeater-1200";
aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
led-boot = &power_green;
led-failsafe = &power_red;
led-running = &power_green;
compatible = "avm,fritzrepeater-3000";
aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
led-boot = &power_led;
led-failsafe = &power_led;
led-running = &power_led;
};
aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
ethernet1 = &swport4;
};
compatible = "8dev,habanero-dvk";
aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
led-boot = &led_status;
led-failsafe = &led_status;
led-running = &led_status;
};
aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
led-boot = &led_status_blue;
led-failsafe = &led_status_red;
led-running = &led_status_blue;
};
aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
led-boot = &led_status_blue;
led-failsafe = &led_status_red;
led-running = &led_status_blue;
};
aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
led-boot = &led_backlight_white;
led-failsafe = &led_status_green;
led-running = &led_status_green;
};
aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
led-boot = &user;
led-failsafe = &user;
led-running = &user;
led-failsafe = &led_red0;
led-running = &led_blue0;
led-upgrade = &led_red0;
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
ethernet1 = &swport4;
};
compatible = "zte,mf18a";
aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
led-boot = &led_power;
led-failsafe = &led_power;
led-running = &led_power;
compatible = "zte,mf282plus";
aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
led-boot = &led_internal;
led-failsafe = &led_internal;
led-running = &led_internal;
compatible = "zte,mf286d";
aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
led-boot = &led_internal;
led-failsafe = &led_internal;
led-running = &led_internal;
compatible = "zte,mf289f";
aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
led-boot = &led_status;
led-failsafe = &led_status;
led-running = &led_status;
compatible = "sony,ncp-hg100-cellular";
aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
led-boot = &led_cloud_green;
led-failsafe = &led_cloud_red;
led-running = &led_cloud_green;
};
aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
led-boot = &led_power_orange;
led-failsafe = &led_status_blue;
led-running = &led_power_orange;
};
aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
led-boot = &led_sys;
led-failsafe = &led_sys;
led-running = &led_sys;
};
aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
led-boot = &led_power;
led-failsafe = &led_power;
led-running = &led_power;
compatible = "cellc,rtl30vw";
aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
led-boot = &led_power_blue;
led-failsafe = &led_power_red;
led-running = &led_power_blue;
/ {
aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
led-boot = &led_blue;
led-failsafe = &led_red;
led-running = &led_blue;
model = "SKSpruce WIA3300-20";
aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
label-mac-device = &gmac;
led-boot = &led_status_red;
led-failsafe = &led_status_lime;
compatible = "google,wifi", "google,gale-v2", "qcom,ipq4019";
aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
label-mac-device = &gmac0;
led-boot = &led0_blue;
led-failsafe = &led0_red;
};
aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
led-boot = &led_power_blue;
led-failsafe = &led_power_orange;
led-running = &led_power_white;
};
+ aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
+ };
+
soc {
tcsr@1949000 {
compatible = "qcom,tcsr";
};
aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
led-boot = &status;
led-failsafe = &status;
led-upgrade = &status;
compatible = "aruba,ap-303h";
aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
led-boot = &led_system_green;
led-failsafe = &led_system_red;
led-running = &led_system_green;
#include <dt-bindings/soc/qcom,tcsr.h>
/ {
+ aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
+ };
+
memory {
device_type = "memory";
reg = <0x80000000 0x10000000>;
compatible = "glinet,gl-b1300";
aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
led-boot = &power;
led-failsafe = &power;
led-running = &power;
/ {
aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
led-boot = &status_green;
led-failsafe = &status_red;
led-running = &status_green;
compatible = "extreme-networks,ws-ap3915i";
aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
led-boot = &led_system_green;
led-failsafe = &led_system_amber;
led-running = &led_system_green;
compatible = "extreme-networks,ws-ap391x";
aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
led-boot = &led_system_green;
led-failsafe = &led_system_red;
led-running = &led_system_green;
model = "Wallystech DR40X9";
compatible = "wallys,dr40x9";
+ aliases {
+ // TODO: Verify if the ethernet0 alias is needed
+ ethernet0 = &gmac;
+ };
+
chosen {
bootargs-append = " ubi.mtd=ubi root=/dev/ubiblock0_1";
};