ipq40xx: dts: add ethernet0 alias for all devices

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: cd9c721124 ("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>
This commit is contained in:
Matthias Schiffer 2024-12-31 12:23:53 +01:00 committed by Robert Marko
parent 3ec7f3a512
commit d09dd75fbd
61 changed files with 141 additions and 0 deletions

View File

@ -52,6 +52,8 @@
};
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;

View File

@ -15,6 +15,8 @@
led-failsafe = &status;
led-running = &status;
led-upgrade = &status;
// TODO: Verify if the ethernet0 alias is needed
ethernet0 = &gmac;
ethernet1 = &swport5;
};

View File

@ -21,6 +21,8 @@
};
aliases {
// TODO: Verify if the ethernet0 alias is needed
ethernet0 = &gmac;
led-boot = &led_user;
led-failsafe = &led_user;
led-running = &led_user;

View File

@ -11,6 +11,8 @@
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;

View File

@ -11,6 +11,8 @@
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;

View File

@ -11,6 +11,8 @@
compatible = "linksys,ea6350v3";
aliases {
// TODO: Verify if the ethernet0 alias is needed
ethernet0 = &gmac;
led-boot = &power;
led-failsafe = &power;
led-running = &power;

View File

@ -41,6 +41,8 @@
};
aliases {
// TODO: Verify if the ethernet0 alias is needed
ethernet0 = &gmac;
led-boot = &power;
led-failsafe = &power;
led-running = &power;

View File

@ -46,6 +46,8 @@
};
aliases {
// TODO: Verify if the ethernet0 alias is needed
ethernet0 = &gmac;
led-boot = &power_amber;
led-failsafe = &power_amber;
led-running = &power_green;

View File

@ -11,6 +11,7 @@
compatible = "avm,fritzbox-4040";
aliases {
ethernet0 = &gmac;
led-boot = &power;
led-failsafe = &flash;
led-running = &power;

View File

@ -11,6 +11,8 @@
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;

View File

@ -11,6 +11,8 @@
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;

View File

@ -21,6 +21,8 @@
};
aliases {
// TODO: Verify if the ethernet0 alias is needed
ethernet0 = &gmac;
led-boot = &led_user;
led-failsafe = &led_user;
led-running = &led_user;

View File

@ -8,6 +8,8 @@
/ {
aliases {
// TODO: Verify if the ethernet0 alias is needed
ethernet0 = &gmac;
ethernet1 = &swport5;
};

View File

@ -9,6 +9,11 @@
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>;

View File

@ -11,6 +11,8 @@
/ {
aliases {
// TODO: Verify if the ethernet0 alias is needed
ethernet0 = &gmac;
led-boot = &led_status;
led-failsafe = &led_status;
led-running = &led_status;

View File

@ -21,6 +21,8 @@
};
aliases {
// TODO: Verify if the ethernet0 alias is needed
ethernet0 = &gmac;
led-boot = &power;
led-failsafe = &power;
led-running = &power;

View File

@ -52,6 +52,8 @@
};
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;

View File

@ -16,6 +16,8 @@
};
aliases {
// TODO: Verify if the ethernet0 alias is needed
ethernet0 = &gmac;
led-boot = &led_power;
led-failsafe = &led_power;
led-running = &led_power;

View File

@ -7,6 +7,8 @@
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;

View File

@ -21,6 +21,8 @@
};
aliases {
// TODO: Verify if the ethernet0 alias is needed
ethernet0 = &gmac;
led-boot = &led_user;
led-failsafe = &led_user;
led-running = &led_user;

View File

@ -16,6 +16,8 @@
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;
};

View File

@ -18,6 +18,8 @@
};
aliases {
// TODO: Verify if the ethernet0 alias is needed
ethernet0 = &gmac;
led-boot = &led_user;
led-failsafe = &led_user;
led-running = &led_user;

View File

@ -10,6 +10,8 @@
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;

View File

@ -11,6 +11,8 @@
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;

View File

@ -9,6 +9,11 @@
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)>;

View File

@ -52,6 +52,8 @@
};
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;

View File

@ -11,6 +11,8 @@
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;

View File

@ -11,6 +11,11 @@
/ {
model = "Qxwlan E2600AC c1";
compatible = "qxwlan,e2600ac-c1";
aliases {
// TODO: Verify if the ethernet0 alias is needed
ethernet0 = &gmac;
};
};
&blsp1_spi1 {

View File

@ -11,6 +11,11 @@
/ {
model = "Qxwlan E2600AC c2";
compatible = "qxwlan,e2600ac-c2";
aliases {
// TODO: Verify if the ethernet0 alias is needed
ethernet0 = &gmac;
};
};
&blsp1_spi1 {

View File

@ -15,6 +15,7 @@
};
aliases {
ethernet0 = &gmac;
led-boot = &power_green;
led-failsafe = &info_red;
led-running = &power_green;

View File

@ -11,6 +11,8 @@
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;

View File

@ -11,6 +11,8 @@
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;

View File

@ -20,6 +20,8 @@
};
aliases {
// TODO: Verify if the ethernet0 alias is needed
ethernet0 = &gmac;
ethernet1 = &swport4;
};

View File

@ -12,6 +12,8 @@
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;

View File

@ -21,6 +21,8 @@
};
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;

View File

@ -21,6 +21,8 @@
};
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;

View File

@ -15,6 +15,8 @@
};
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;

View File

@ -35,6 +35,8 @@
};
aliases {
// TODO: Verify if the ethernet0 alias is needed
ethernet0 = &gmac;
led-boot = &user;
led-failsafe = &user;
led-running = &user;

View File

@ -15,6 +15,8 @@
led-failsafe = &led_red0;
led-running = &led_blue0;
led-upgrade = &led_red0;
// TODO: Verify if the ethernet0 alias is needed
ethernet0 = &gmac;
ethernet1 = &swport4;
};

View File

@ -14,6 +14,8 @@
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;

View File

@ -13,6 +13,8 @@
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;

View File

@ -12,6 +12,8 @@
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;

View File

@ -13,6 +13,8 @@
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;

View File

@ -12,6 +12,8 @@
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;

View File

@ -44,6 +44,8 @@
};
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;

View File

@ -12,6 +12,8 @@
};
aliases {
// TODO: Verify if the ethernet0 alias is needed
ethernet0 = &gmac;
led-boot = &led_sys;
led-failsafe = &led_sys;
led-running = &led_sys;

View File

@ -16,6 +16,8 @@
};
aliases {
// TODO: Verify if the ethernet0 alias is needed
ethernet0 = &gmac;
led-boot = &led_power;
led-failsafe = &led_power;
led-running = &led_power;

View File

@ -14,6 +14,8 @@
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;

View File

@ -8,6 +8,8 @@
/ {
aliases {
// TODO: Verify if the ethernet0 alias is needed
ethernet0 = &gmac;
led-boot = &led_blue;
led-failsafe = &led_red;
led-running = &led_blue;

View File

@ -11,6 +11,8 @@
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;

View File

@ -14,6 +14,8 @@
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;

View File

@ -29,6 +29,8 @@
};
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;

View File

@ -26,6 +26,11 @@
};
aliases {
// TODO: Verify if the ethernet0 alias is needed
ethernet0 = &gmac;
};
soc {
tcsr@1949000 {
compatible = "qcom,tcsr";

View File

@ -73,6 +73,8 @@
};
aliases {
// TODO: Verify if the ethernet0 alias is needed
ethernet0 = &gmac;
led-boot = &status;
led-failsafe = &status;
led-upgrade = &status;

View File

@ -10,6 +10,8 @@
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;

View File

@ -6,6 +6,11 @@
#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>;

View File

@ -25,6 +25,8 @@
compatible = "glinet,gl-b1300";
aliases {
// TODO: Verify if the ethernet0 alias is needed
ethernet0 = &gmac;
led-boot = &power;
led-failsafe = &power;
led-running = &power;

View File

@ -20,6 +20,8 @@
/ {
aliases {
// TODO: Verify if the ethernet0 alias is needed
ethernet0 = &gmac;
led-boot = &status_green;
led-failsafe = &status_red;
led-running = &status_green;

View File

@ -10,6 +10,8 @@
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;

View File

@ -10,6 +10,8 @@
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;

View File

@ -9,6 +9,11 @@
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";
};