From 743aaaf2ad066411ca7e1957dda5560623f8ed13 Mon Sep 17 00:00:00 2001 From: Stephen Howell Date: Fri, 10 Jan 2025 16:42:33 +0000 Subject: [PATCH 01/19] linux-firmware: Add support for Intel ICE Uses the OS Default DDP package for Intel Ethernet 800 series. Signed-off-by: Stephen Howell Link: https://github.com/openwrt/openwrt/pull/17564 Signed-off-by: Hauke Mehrtens --- package/firmware/linux-firmware/intel.mk | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/package/firmware/linux-firmware/intel.mk b/package/firmware/linux-firmware/intel.mk index eb5ac29159..32e1670149 100644 --- a/package/firmware/linux-firmware/intel.mk +++ b/package/firmware/linux-firmware/intel.mk @@ -9,6 +9,15 @@ define Package/ibt-firmware/install endef $(eval $(call BuildPackage,ibt-firmware)) +Package/ice-firmware = $(call Package/firmware-default,Intel ICE firmware) +define Package/ice-firmware/install + $(INSTALL_DIR) $(1)/lib/firmware/intel/ice/ddp + $(CP) \ + $(PKG_BUILD_DIR)/intel/ice/ddp/*.pkg \ + $(1)/lib/firmware/intel/ice/ddp/ice.pkg +endef +$(eval $(call BuildPackage,ice-firmware)) + Package/iwl3945-firmware = $(call Package/firmware-default,Intel IWL3945 firmware) define Package/iwl3945-firmware/install $(INSTALL_DIR) $(1)/lib/firmware From 63f45b8ab49d6eb46c9073f63f9b6821d5ca68c2 Mon Sep 17 00:00:00 2001 From: Stephen Howell Date: Fri, 10 Jan 2025 16:44:04 +0000 Subject: [PATCH 02/19] kernel: modules: add Intel ICE support Add support for the Intel E800 series of cards, with switchdev support enabled for lower CPU usage. Signed-off-by: Stephen Howell Link: https://github.com/openwrt/openwrt/pull/17564 Signed-off-by: Hauke Mehrtens --- package/kernel/linux/modules/netdevices.mk | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/package/kernel/linux/modules/netdevices.mk b/package/kernel/linux/modules/netdevices.mk index 624b0d0be0..5503bcf64d 100644 --- a/package/kernel/linux/modules/netdevices.mk +++ b/package/kernel/linux/modules/netdevices.mk @@ -1200,6 +1200,24 @@ endef $(eval $(call KernelPackage,i40e)) +define KernelPackage/ice + SUBMENU:=$(NETWORK_DEVICES_MENU) + TITLE:=Intel(R) Ethernet Controller E810 Series support + DEPENDS:=@PCI_SUPPORT +kmod-ptp + KCONFIG:=CONFIG_ICE \ + CONFIG_ICE_HWTS=n \ + CONFIG_ICE_SWITCHDEV=y + FILES:=$(LINUX_DIR)/drivers/net/ethernet/intel/ice/ice.ko + AUTOLOAD:=$(call AutoProbe,ice) +endef + +define KernelPackage/ice/description + Kernel modules for Intel(R) Ethernet Controller E810 Series +endef + +$(eval $(call KernelPackage,ice)) + + define KernelPackage/iavf SUBMENU:=$(NETWORK_DEVICES_MENU) TITLE:=Intel(R) Ethernet Adaptive Virtual Function support From 929b3d0e52f166dc2c9bcfa1235fa7fb3bd0bac6 Mon Sep 17 00:00:00 2001 From: Henrik Ginstmark Date: Sun, 9 Feb 2025 20:22:43 +0100 Subject: [PATCH 03/19] ramips: add missing LEDs and modem control for ASUS 4G-AX56 Add missing LEDs and modem control for ASUS 4G-AX56 - wifi2.4G white - wifi5G white - wan two-coloured, white and red - modem four-coloured white, blue, yellow and red change label = "xxxx:modem"; to color = ; function = LED_FUNCTION_MOBILE; - rssi-1 white - rssi-2 white - rssi-3 white and modem reboot and reset Combined into one commit Signed-off-by: Henrik Ginstmark Link: https://github.com/openwrt/openwrt/pull/17927 Signed-off-by: Hauke Mehrtens --- .../linux/ramips/dts/mt7621_asus_4g-ax56.dts | 81 +++++++++++++++++++ 1 file changed, 81 insertions(+) diff --git a/target/linux/ramips/dts/mt7621_asus_4g-ax56.dts b/target/linux/ramips/dts/mt7621_asus_4g-ax56.dts index 159feeb9dc..1d20e1c680 100755 --- a/target/linux/ramips/dts/mt7621_asus_4g-ax56.dts +++ b/target/linux/ramips/dts/mt7621_asus_4g-ax56.dts @@ -31,6 +31,71 @@ function = LED_FUNCTION_POWER; gpios = <&gpio 14 GPIO_ACTIVE_HIGH>; }; + + wlan2g { + color = ; + function = LED_FUNCTION_WLAN_2GHZ; + gpios = <&gpio 13 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "phy0tpt"; + }; + + wlan5g { + color = ; + function = LED_FUNCTION_WLAN_5GHZ; + gpios = <&gpio 16 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "phy1tpt"; + }; + + wan_white { + color = ; + function = LED_FUNCTION_WAN; + gpios = <&gpio 15 GPIO_ACTIVE_HIGH>; + }; + + wan_red { + color = ; + function = LED_FUNCTION_WAN; + gpios = <&gpio 5 GPIO_ACTIVE_HIGH>; + }; + + modem_red { + color = ; + function = LED_FUNCTION_MOBILE; + gpios = <&gpio 0 GPIO_ACTIVE_LOW>; + }; + + modem_yellow { + color = ; + function = LED_FUNCTION_MOBILE; + gpios = <&gpio 3 GPIO_ACTIVE_HIGH>; + }; + + modem_blue { + color = ; + function = LED_FUNCTION_MOBILE; + gpios = <&gpio 7 GPIO_ACTIVE_HIGH>; + }; + + modem_white { + color = ; + function = LED_FUNCTION_MOBILE; + gpios = <&gpio 10 GPIO_ACTIVE_HIGH>; + }; + + rssi_1 { + label = "white:rssi-1"; + gpios = <&gpio 17 GPIO_ACTIVE_HIGH>; + }; + + rssi_2 { + label = "white:rssi-2"; + gpios = <&gpio 11 GPIO_ACTIVE_HIGH>; + }; + + rssi_3 { + label = "white:rssi-3"; + gpios = <&gpio 9 GPIO_ACTIVE_HIGH>; + }; }; keys { @@ -48,6 +113,22 @@ linux,code = ; }; }; + + gpio-export { + compatible = "gpio-export"; + + modem_reboot { + gpio-export,name = "reboot:modem"; + gpio-export,output = <1>; + gpios = <&gpio 12 GPIO_ACTIVE_HIGH>; + }; + + modem_reset { + gpio-export,name = "reset:modem"; + gpio-export,output = <1>; + gpios = <&gpio 18 GPIO_ACTIVE_LOW>; + }; + }; }; &nand { From 9f1f918aed6d530add666d116303214deaee8236 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simonas=20Tamo=C5=A1aitis?= Date: Wed, 12 Mar 2025 11:49:10 +0200 Subject: [PATCH 04/19] ath79: fix chipidea usb controller detection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Devices with chipidea usb controller does not detect usb hub after phy-names change to "usb", revert it back to "usb-phy" Fixes: 787cb9d87edb ("ath79: change phy-names to only usb") Signed-off-by: Simonas Tamošaitis Link: https://github.com/openwrt/openwrt/pull/18230 Signed-off-by: Hauke Mehrtens --- target/linux/ath79/dts/ar9330.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/ath79/dts/ar9330.dtsi b/target/linux/ath79/dts/ar9330.dtsi index e13e3fd5aa..e4d78b9251 100644 --- a/target/linux/ath79/dts/ar9330.dtsi +++ b/target/linux/ath79/dts/ar9330.dtsi @@ -121,7 +121,7 @@ interrupts = <3>; resets = <&rst 5>; - phy-names = "usb"; + phy-names = "usb-phy"; phys = <&usb_phy>; status = "disabled"; From 5a4f8b26f0185f392bfb0e5f31acdebcf4a10334 Mon Sep 17 00:00:00 2001 From: Lech Perczak Date: Tue, 4 Feb 2025 21:14:45 +0100 Subject: [PATCH 05/19] kernel: ar8327: fix active-low LED initialization Switch LEDs configured as active-low remain low instead of high upon initialization, because in ar8327_leds_init, no distinction is made with regards to LED pattern based on active_low property - only whether HW mode is active. Select the proper initial pattern based also on active_low to fix that. While at that, simplify the equation ruling pattern selection for setting brightness, avoiding unnecessary binary XOR operation, not really valid for 'bool' type. Signed-off-by: Lech Perczak Link: https://github.com/openwrt/openwrt/pull/12487 Signed-off-by: Hauke Mehrtens --- target/linux/generic/files/drivers/net/phy/ar8327.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/target/linux/generic/files/drivers/net/phy/ar8327.c b/target/linux/generic/files/drivers/net/phy/ar8327.c index 3313149559..83191cd591 100644 --- a/target/linux/generic/files/drivers/net/phy/ar8327.c +++ b/target/linux/generic/files/drivers/net/phy/ar8327.c @@ -326,8 +326,7 @@ ar8327_led_set_brightness(struct led_classdev *led_cdev, u8 pattern; bool active; - active = (brightness != LED_OFF); - active ^= aled->active_low; + active = (brightness != LED_OFF) != aled->active_low; pattern = (active) ? AR8327_LED_PATTERN_ON : AR8327_LED_PATTERN_OFF; @@ -501,7 +500,8 @@ ar8327_leds_init(struct ar8xxx_priv *priv) if (aled->enable_hw_mode) aled->pattern = AR8327_LED_PATTERN_RULE; else - aled->pattern = AR8327_LED_PATTERN_OFF; + aled->pattern = aled->active_low ? + AR8327_LED_PATTERN_ON : AR8327_LED_PATTERN_OFF; ar8327_set_led_pattern(priv, aled->led_num, aled->pattern); } From 3ba4a4e32cb21e49911e19c0988f48a9f69993d7 Mon Sep 17 00:00:00 2001 From: Lech Perczak Date: Tue, 14 Sep 2021 23:39:41 +0200 Subject: [PATCH 06/19] kernel: ar8327: support LED device tree bindings The ar8216 switch driver supports exposing configuration of AR8327 and AR8337 switch LEDs to the userspace, however it is only configurable through platform data, causing the devices ported from ar71xx target to lack the support. Since there is still a long way to go until we can migrate the target to qca8k, an interim solution is needed. Extend ar8327_hw_config_of function to parse a "leds" subnode, which will populate the missing platform data based on device tree contents, and restore the existing support for the LEDs. Standard bindings apply, mapping "reg" property to LED index, with addition of "qca,led-mode" property, which selects HW (0) or SW (1) mode, defaulting to HW mode. Signed-off-by: Lech Perczak Link: https://github.com/openwrt/openwrt/pull/12487 Signed-off-by: Hauke Mehrtens --- .../generic/files/drivers/net/phy/ar8327.c | 40 ++++++++++++++++++- .../generic/files/drivers/net/phy/ar8327.h | 1 + .../files/include/linux/ar8216_platform.h | 1 + 3 files changed, 41 insertions(+), 1 deletion(-) diff --git a/target/linux/generic/files/drivers/net/phy/ar8327.c b/target/linux/generic/files/drivers/net/phy/ar8327.c index 83191cd591..cf9c2dc3c1 100644 --- a/target/linux/generic/files/drivers/net/phy/ar8327.c +++ b/target/linux/generic/files/drivers/net/phy/ar8327.c @@ -392,8 +392,11 @@ static int ar8327_led_register(struct ar8327_led *aled) { int ret; + struct led_init_data init_data = { + .fwnode = aled->fwnode + }; - ret = led_classdev_register(NULL, &aled->cdev); + ret = led_classdev_register_ext(NULL, &aled->cdev, &init_data); if (ret < 0) return ret; @@ -447,6 +450,7 @@ ar8327_led_create(struct ar8xxx_priv *priv, aled->led_num = led_info->led_num; aled->active_low = led_info->active_low; aled->mode = led_info->mode; + aled->fwnode = led_info->fwnode; if (aled->mode == AR8327_LED_MODE_HW) aled->enable_hw_mode = true; @@ -616,6 +620,7 @@ ar8327_hw_config_of(struct ar8xxx_priv *priv, struct device_node *np) const __be32 *paddr; int len; int i; + struct device_node *leds, *child; paddr = of_get_property(np, "qca,ar8327-initvals", &len); if (!paddr || len < (2 * sizeof(*paddr))) @@ -643,6 +648,39 @@ ar8327_hw_config_of(struct ar8xxx_priv *priv, struct device_node *np) } } + leds = of_get_child_by_name(np, "leds"); + if (!leds) + return 0; + + data->leds = kvcalloc(of_get_child_count(leds), sizeof(void *), + GFP_KERNEL); + if (!data->leds) + return -ENOMEM; + + for_each_available_child_of_node(leds, child) { + u32 reg = 0, mode = 0; + struct ar8327_led_info info; + int ret; + + ret = of_property_read_u32(child, "reg", ®); + if (ret) { + pr_err("ar8327: LED %s is missing reg node\n", child->name); + continue; + } + + of_property_read_u32(child, "qca,led-mode", &mode); + + info = (struct ar8327_led_info) { + .name = of_get_property(child, "label", NULL) ? : child->name, + .fwnode = of_fwnode_handle(child), + .active_low = of_property_read_bool(child, "active-low"), + .led_num = (enum ar8327_led_num) reg, + .mode = (enum ar8327_led_mode) mode + }; + ar8327_led_create(priv, &info); + } + + of_node_put(leds); return 0; } #else diff --git a/target/linux/generic/files/drivers/net/phy/ar8327.h b/target/linux/generic/files/drivers/net/phy/ar8327.h index 088b288618..53a82d1f76 100644 --- a/target/linux/generic/files/drivers/net/phy/ar8327.h +++ b/target/linux/generic/files/drivers/net/phy/ar8327.h @@ -317,6 +317,7 @@ struct ar8327_led { struct work_struct led_work; bool enable_hw_mode; enum ar8327_led_pattern pattern; + struct fwnode_handle *fwnode; }; struct ar8327_data { diff --git a/target/linux/generic/files/include/linux/ar8216_platform.h b/target/linux/generic/files/include/linux/ar8216_platform.h index 24bc442a26..fff05ffb5c 100644 --- a/target/linux/generic/files/include/linux/ar8216_platform.h +++ b/target/linux/generic/files/include/linux/ar8216_platform.h @@ -106,6 +106,7 @@ struct ar8327_led_info { bool active_low; enum ar8327_led_num led_num; enum ar8327_led_mode mode; + struct fwnode_handle *fwnode; }; #define AR8327_LED_INFO(_led, _mode, _name) { \ From acd6f48e8715db3ac7648a94e94791527feaef18 Mon Sep 17 00:00:00 2001 From: Lech Perczak Date: Tue, 4 Feb 2025 21:14:52 +0100 Subject: [PATCH 07/19] ath79: TP-link TL-WDR4300: use fixed-link for AR8327 switch connection Attaching PHY driver to the switch, while adding LEDs binding causes the PHY driver to create additional LED instances, handled incorrectly by the PHY driver, which are non-functional. Use fixed-link to attach the switch driver, instead of PHY driver, to prevent that. This has a side effect of not logging switch port up/down events in the kernel log. Signed-off-by: Lech Perczak Link: https://github.com/openwrt/openwrt/pull/12487 Signed-off-by: Hauke Mehrtens --- target/linux/ath79/dts/ar9344_tplink_tl-wdr4300.dtsi | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/target/linux/ath79/dts/ar9344_tplink_tl-wdr4300.dtsi b/target/linux/ath79/dts/ar9344_tplink_tl-wdr4300.dtsi index 7aa1989290..734f72a9c5 100644 --- a/target/linux/ath79/dts/ar9344_tplink_tl-wdr4300.dtsi +++ b/target/linux/ath79/dts/ar9344_tplink_tl-wdr4300.dtsi @@ -97,9 +97,9 @@ &mdio0 { status = "okay"; - phy0: ethernet-phy@0 { - reg = <0>; - phy-mode = "rgmii"; + switch@1f { + compatible = "qca,ar8327"; + reg = <0x1f>; qca,ar8327-initvals = < 0x04 0x07600000 /* PORT0 PAD MODE CTRL */ @@ -123,5 +123,9 @@ nvmem-cell-names = "mac-address"; phy-mode = "rgmii"; - phy-handle = <&phy0>; + + fixed-link { + speed = <1000>; + full-duplex; + }; }; From b5367180b9f1fbde55d3ec2cca6d77f034b1bc11 Mon Sep 17 00:00:00 2001 From: Lech Perczak Date: Tue, 14 Sep 2021 23:47:02 +0200 Subject: [PATCH 08/19] ath79: support switch LEDs on TL-WDR4300 family Add switch LED definitions for TP-Link TL-WDR4300 family, based on data extracted from ar71xx board file. Update the LED labels to match current pattern, i.e. drop the "tp-link:" prefix. Signed-off-by: Lech Perczak Link: https://github.com/openwrt/openwrt/pull/12487 Signed-off-by: Hauke Mehrtens --- .../ath79/dts/ar9344_tplink_tl-wdr4300.dtsi | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/target/linux/ath79/dts/ar9344_tplink_tl-wdr4300.dtsi b/target/linux/ath79/dts/ar9344_tplink_tl-wdr4300.dtsi index 734f72a9c5..8411a9b061 100644 --- a/target/linux/ath79/dts/ar9344_tplink_tl-wdr4300.dtsi +++ b/target/linux/ath79/dts/ar9344_tplink_tl-wdr4300.dtsi @@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0-or-later OR MIT #include "ar9344_tplink_tl-wdrxxxx.dtsi" +#include / { aliases { @@ -110,6 +111,47 @@ 0x5c 0x0030c300 /* LED_CTRL3 */ 0x7c 0x0000007e /* PORT0_STATUS */ >; + + leds { + led@0 { + reg = <0>; + color = ; + function = LED_FUNCTION_WAN; + qca,led-mode = <0>; + }; + + led@3 { + reg = <3>; + color = ; + function = LED_FUNCTION_LAN; + function-enumerator = <1>; + qca,led-mode = <0>; + }; + + led@6 { + reg = <6>; + color = ; + function = LED_FUNCTION_LAN; + function-enumerator = <2>; + qca,led-mode = <0>; + }; + + led@9 { + reg = <9>; + color = ; + function = LED_FUNCTION_LAN; + function-enumerator = <3>; + qca,led-mode = <0>; + }; + + led@12 { + reg = <12>; + color = ; + function = LED_FUNCTION_LAN; + function-enumerator = <4>; + qca,led-mode = <0>; + }; + }; }; }; From c61a6efdf514e2c6198e476a742eff339a071230 Mon Sep 17 00:00:00 2001 From: Lech Perczak Date: Tue, 4 Feb 2025 21:15:16 +0100 Subject: [PATCH 09/19] ath79: TP-link Archer C7v2: use fixed-link for AR8327 switch connection Attaching PHY driver to the switch, while adding LEDs binding causes the PHY driver to create additional LED instances, handled incorrectly by the PHY driver, which are non-functional. Use fixed-link to attach the switch driver, instead of PHY driver, to prevent that. This has a side effect of not logging switch port up/down events in the kernel log. Signed-off-by: Lech Perczak Link: https://github.com/openwrt/openwrt/pull/12487 Signed-off-by: Hauke Mehrtens --- target/linux/ath79/dts/qca9558_tplink_archer-c.dtsi | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/target/linux/ath79/dts/qca9558_tplink_archer-c.dtsi b/target/linux/ath79/dts/qca9558_tplink_archer-c.dtsi index 221582e66d..c1bd3f759b 100644 --- a/target/linux/ath79/dts/qca9558_tplink_archer-c.dtsi +++ b/target/linux/ath79/dts/qca9558_tplink_archer-c.dtsi @@ -115,8 +115,9 @@ &mdio0 { status = "okay"; - phy0: ethernet-phy@0 { - reg = <0>; + switch@1f { + compatible = "qca,ar8327"; + reg = <0x1f>; qca,ar8327-initvals = < 0x04 0x00080080 /* PORT0 PAD MODE CTRL */ @@ -134,9 +135,13 @@ ð0 { status = "okay"; - phy-handle = <&phy0>; pll-data = <0x56000000 0x00000101 0x00001616>; + fixed-link { + speed = <1000>; + full-duplex; + }; + gmac-config { device = <&gmac>; rgmii-enabled = <1>; From a6bde79c91b813ea29c3a0b1c84bc4fe4c3a00a1 Mon Sep 17 00:00:00 2001 From: Lech Perczak Date: Tue, 14 Sep 2021 23:48:51 +0200 Subject: [PATCH 10/19] ath79: support switch LEDs on Archer C7 family Add switch LED definitions for TP-Link Archer C7 v1/2/3 family, based on data extracted from ar71xx board file. Update the LED labels to match current pattern, i.e. drop the "tp-link:" prefix. Signed-off-by: Lech Perczak Link: https://github.com/openwrt/openwrt/pull/12487 Signed-off-by: Hauke Mehrtens --- .../ath79/dts/qca9558_tplink_archer-c.dtsi | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/target/linux/ath79/dts/qca9558_tplink_archer-c.dtsi b/target/linux/ath79/dts/qca9558_tplink_archer-c.dtsi index c1bd3f759b..7c84f3e21d 100644 --- a/target/linux/ath79/dts/qca9558_tplink_archer-c.dtsi +++ b/target/linux/ath79/dts/qca9558_tplink_archer-c.dtsi @@ -4,6 +4,7 @@ #include #include +#include / { aliases { @@ -129,6 +130,47 @@ 0x7c 0x0000007e /* PORT0_STATUS */ 0x94 0x0000007e /* PORT6 STATUS */ >; + + leds { + led@0 { + reg = <0>; + color = ; + function = LED_FUNCTION_WAN; + qca,led-mode = <0>; + }; + + led@3 { + reg = <3>; + color = ; + function = LED_FUNCTION_LAN; + function-enumerator = <1>; + qca,led-mode = <0>; + }; + + led@6 { + reg = <6>; + color = ; + function = LED_FUNCTION_LAN; + function-enumerator = <2>; + qca,led-mode = <0>; + }; + + led@9 { + reg = <9>; + color = ; + function = LED_FUNCTION_LAN; + function-enumerator = <3>; + qca,led-mode = <0>; + }; + + led@12 { + reg = <12>; + color = ; + function = LED_FUNCTION_LAN; + function-enumerator = <4>; + qca,led-mode = <0>; + }; + }; }; }; From af64c180b3e460e7fb8e9fa337f890095c3380a4 Mon Sep 17 00:00:00 2001 From: Lech Perczak Date: Tue, 4 Feb 2025 21:15:21 +0100 Subject: [PATCH 11/19] ath79: TP-link TL-WR1043ND v2/v3: use fixed-link for AR8327 switch connection Attaching PHY driver to the switch, while adding LEDs binding causes the PHY driver to create additional LED instances, handled incorrectly by the PHY driver, which are non-functional. Use fixed-link to attach the switch driver, instead of PHY driver, to prevent that. This has a side effect of not logging switch port up/down events in the kernel log. Signed-off-by: Lech Perczak Link: https://github.com/openwrt/openwrt/pull/12487 Signed-off-by: Hauke Mehrtens --- .../linux/ath79/dts/qca9558_tplink_tl-wr1043nd.dtsi | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/target/linux/ath79/dts/qca9558_tplink_tl-wr1043nd.dtsi b/target/linux/ath79/dts/qca9558_tplink_tl-wr1043nd.dtsi index 49af23bf02..486b5c5218 100644 --- a/target/linux/ath79/dts/qca9558_tplink_tl-wr1043nd.dtsi +++ b/target/linux/ath79/dts/qca9558_tplink_tl-wr1043nd.dtsi @@ -143,8 +143,10 @@ &mdio0 { status = "okay"; - phy0: ethernet-phy@0 { - reg = <0>; + switch@1f { + compatible = "qca,ar8327"; + reg = <0x1f>; + qca,ar8327-initvals = < 0x04 0x00080080 /* PORT0 PAD MODE CTRL */ 0x0c 0x07600000 /* PORT6 PAD MODE CTRL */ @@ -166,7 +168,11 @@ nvmem-cells = <&macaddr_uboot_1fc00 1>; nvmem-cell-names = "mac-address"; - phy-handle = <&phy0>; + + fixed-link { + speed = <1000>; + full-duplex; + }; }; ð1 { From ffad196537b74996431baf86a33f10100148152f Mon Sep 17 00:00:00 2001 From: Lech Perczak Date: Tue, 28 Feb 2023 02:26:40 +0100 Subject: [PATCH 12/19] ath79: support switch LEDs on TL-WR1043ND v2/v3 Add switch LED definitions for TP-Link TL-WR1043ND family, based on data extracted from ar71xx board file. Update the LED labels to match current pattern, i.e. drop the "tp-link:" prefix. Signed-off-by: Lech Perczak Link: https://github.com/openwrt/openwrt/pull/12487 Signed-off-by: Hauke Mehrtens --- .../ath79/dts/qca9558_tplink_tl-wr1043nd.dtsi | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/target/linux/ath79/dts/qca9558_tplink_tl-wr1043nd.dtsi b/target/linux/ath79/dts/qca9558_tplink_tl-wr1043nd.dtsi index 486b5c5218..bf7895775d 100644 --- a/target/linux/ath79/dts/qca9558_tplink_tl-wr1043nd.dtsi +++ b/target/linux/ath79/dts/qca9558_tplink_tl-wr1043nd.dtsi @@ -158,6 +158,47 @@ 0x7c 0x0000007e /* PORT0_STATUS */ 0x94 0x0000007e /* PORT6 STATUS */ >; + + leds { + led@0 { + reg = <0>; + color = ; + function = LED_FUNCTION_LAN; + function-enumerator = <4>; + qca,led-mode = <0>; + }; + + led@3 { + reg = <3>; + color = ; + function = LED_FUNCTION_LAN; + function-enumerator = <3>; + qca,led-mode = <0>; + }; + + led@6 { + reg = <6>; + color = ; + function = LED_FUNCTION_LAN; + function-enumerator = <2>; + qca,led-mode = <0>; + }; + + led@9 { + reg = <9>; + color = ; + function = LED_FUNCTION_LAN; + function-enumerator = <1>; + qca,led-mode = <0>; + }; + + led@12 { + reg = <12>; + color = ; + function = LED_FUNCTION_WAN; + qca,led-mode = <0>; + }; + }; }; }; From 612bedaf5b0a0186e34e521ebfc122404aeff265 Mon Sep 17 00:00:00 2001 From: Coia Prant Date: Mon, 17 Mar 2025 18:19:24 +0800 Subject: [PATCH 13/19] ramips: Fix Hongdian H8922 v30 pinctrl default state According to the MT7620A hardware datasheet, GPIO/14 was originally used for RIN of UARTF, but is now used as the WPS LED. Corrected pinctrl to ensure it works properly in the future. Signed-off-by: Coia Prant Link: https://github.com/openwrt/openwrt/pull/18278 Signed-off-by: Hauke Mehrtens --- target/linux/ramips/dts/mt7620a_hongdian_h8922-v30.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/ramips/dts/mt7620a_hongdian_h8922-v30.dts b/target/linux/ramips/dts/mt7620a_hongdian_h8922-v30.dts index d983f5f854..64c19a6012 100644 --- a/target/linux/ramips/dts/mt7620a_hongdian_h8922-v30.dts +++ b/target/linux/ramips/dts/mt7620a_hongdian_h8922-v30.dts @@ -145,7 +145,7 @@ &state_default { gpio { - groups = "wled", "rgmii1", "rgmii2"; + groups = "uartf", "wled", "rgmii1", "rgmii2"; function = "gpio"; }; }; From 16b58c278fe8bfb062fc35e35644014ed89719cd Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Mon, 16 Dec 2024 14:15:08 -0800 Subject: [PATCH 14/19] ath79: om2p-v1: fix compatible string This device uses AR9285, and not AR9280. Signed-off-by: Rosen Penev Link: https://github.com/openwrt/openwrt/pull/18271 Signed-off-by: Hauke Mehrtens --- target/linux/ath79/dts/ar7240_openmesh_om2p-v1.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/ath79/dts/ar7240_openmesh_om2p-v1.dts b/target/linux/ath79/dts/ar7240_openmesh_om2p-v1.dts index 673e9b740b..28b764069e 100644 --- a/target/linux/ath79/dts/ar7240_openmesh_om2p-v1.dts +++ b/target/linux/ath79/dts/ar7240_openmesh_om2p-v1.dts @@ -169,7 +169,7 @@ status = "okay"; wifi@0,0 { - compatible = "pci168c,002a"; + compatible = "pci168c,002b"; reg = <0x0000 0 0 0 0>; nvmem-cells = <&calibration_art_1000>; nvmem-cell-names = "calibration"; From 5ff9ce11f0ede855eab1955d5f134c785480f189 Mon Sep 17 00:00:00 2001 From: Nayab Sayed Date: Thu, 27 Feb 2025 14:40:11 +0530 Subject: [PATCH 15/19] at91bootstrap: update at91bootstrap v4 targets to v4.0.10 Update AT91Bootstrap v4 capable targets to v4.0.10. Signed-off-by: Nayab Sayed Link: https://github.com/openwrt/openwrt/pull/18131 Signed-off-by: Robert Marko --- package/boot/at91bootstrap/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package/boot/at91bootstrap/Makefile b/package/boot/at91bootstrap/Makefile index 1b145c8a8b..456f9fa5ff 100644 --- a/package/boot/at91bootstrap/Makefile +++ b/package/boot/at91bootstrap/Makefile @@ -9,9 +9,9 @@ include $(TOPDIR)/rules.mk PKG_NAME:=at91bootstrap -PKG_VERSION:=v4.0.3 -PKG_MIRROR_HASH:=9c1d42337294b549e6c229ae4c9996efd21e00ae5f968bd780d352e054e24cb7 -PKG_SOURCE_VERSION:=1d9e673698d9db4a4f2301559f481274de2e75ae +PKG_VERSION:=v4.0.10 +PKG_SOURCE_VERSION:=c123c68d1f5b13a55a8e164b03be866491ce3049 +PKG_MIRROR_HASH:=0c2d6a8a81a179c29227ad2f880b403f86095d3671f176ff1d2a21ba4e09c858 BINARIES_DIR:=build/binaries PKG_CPE_ID:=cpe:/a:linux4sam:at91bootstrap From f86476b18bb99f9f9491c30430bfa9fa110cb394 Mon Sep 17 00:00:00 2001 From: Tomas Lara Date: Mon, 17 Mar 2025 14:59:23 +0000 Subject: [PATCH 16/19] rockchip: fix missing ".patch" file extension Fixes missing .patch file extension in: - https://github.com/openwrt/openwrt/commit/de9ad11dac094b6074c9b23341acbc28806404ae - https://github.com/openwrt/openwrt/commit/2e7d060fd1ba6160067df1a2ba303c7c2efe2a7e Signed-off-by: Tomas Lara Link: https://github.com/openwrt/openwrt/pull/18281 Signed-off-by: Robert Marko --- ...m-led => 401-1-nanopi-r6-show-boot-status-on-system-led.patch} | 0 ...-nanopi-r6-reset-button => 401-2-nanopi-r6-reset-button.patch} | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename target/linux/rockchip/patches-6.6/{401-1-nanopi-r6-show-boot-status-on-system-led => 401-1-nanopi-r6-show-boot-status-on-system-led.patch} (100%) rename target/linux/rockchip/patches-6.6/{401-2-nanopi-r6-reset-button => 401-2-nanopi-r6-reset-button.patch} (100%) diff --git a/target/linux/rockchip/patches-6.6/401-1-nanopi-r6-show-boot-status-on-system-led b/target/linux/rockchip/patches-6.6/401-1-nanopi-r6-show-boot-status-on-system-led.patch similarity index 100% rename from target/linux/rockchip/patches-6.6/401-1-nanopi-r6-show-boot-status-on-system-led rename to target/linux/rockchip/patches-6.6/401-1-nanopi-r6-show-boot-status-on-system-led.patch diff --git a/target/linux/rockchip/patches-6.6/401-2-nanopi-r6-reset-button b/target/linux/rockchip/patches-6.6/401-2-nanopi-r6-reset-button.patch similarity index 100% rename from target/linux/rockchip/patches-6.6/401-2-nanopi-r6-reset-button rename to target/linux/rockchip/patches-6.6/401-2-nanopi-r6-reset-button.patch From 26e7a11836874fe3a600719fab9e81eee7e5f355 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= Date: Tue, 18 Mar 2025 07:59:56 +0100 Subject: [PATCH 17/19] ipq-wifi: fix PKG_MIRROR_HASH after update to 2024-02-17 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PKG_MIRROR_HASH is incorrect and the package check is currently failing. Fixes: 4990ce613b7d ("ipq-wifi: update to 2024-02-17") Signed-off-by: Álvaro Fernández Rojas --- package/firmware/ipq-wifi/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/firmware/ipq-wifi/Makefile b/package/firmware/ipq-wifi/Makefile index 16a0a49772..88c99da070 100644 --- a/package/firmware/ipq-wifi/Makefile +++ b/package/firmware/ipq-wifi/Makefile @@ -8,7 +8,7 @@ PKG_SOURCE_PROTO:=git PKG_SOURCE_URL=$(PROJECT_GIT)/project/firmware/qca-wireless.git PKG_SOURCE_DATE:=2025-02-17 PKG_SOURCE_VERSION:=dd3577ec9f2d9d3ef5e35602d3fe731cb259ff39 -PKG_MIRROR_HASH:=72e749060f53cc1dbe34c56dccded7fc13224701e241c57cff3452cb050f9ce9 +PKG_MIRROR_HASH:=0da921982b33a831dd19e570974a22ad2b1f3324397b1203a8a38d7d044b073a PKG_FLAGS:=nonshared include $(INCLUDE_DIR)/package.mk From 7a303d861a58bdcdd37430fcbf54bdd76b7cf6e0 Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Tue, 18 Mar 2025 14:20:52 +0000 Subject: [PATCH 18/19] kernel: move accepted patch from pending-6.6 to backport-6.6 742-net-phy-air_en8811h-reset-netdev-rules-when-LED-is-s.patch has been accepted a while ago as https://git.kernel.org/torvalds/linux/c/87bfdbbb1992 Signed-off-by: Daniel Golle --- ...01-net-phy-air_en8811h-Add-the-Airoha-EN8811H-PHY-drive.patch} | 0 ...> 798-v6.10-02-net-phy-air_en8811h-fix-some-error-codes.patch} | 0 ...03-net-phy-air_en8811h-reset-netdev-rules-when-LED-is-s.patch} | 0 3 files changed, 0 insertions(+), 0 deletions(-) rename target/linux/generic/backport-6.6/{798-v6.10-net-phy-air_en8811h-Add-the-Airoha-EN8811H-PHY-drive.patch => 798-v6.10-01-net-phy-air_en8811h-Add-the-Airoha-EN8811H-PHY-drive.patch} (100%) rename target/linux/generic/backport-6.6/{799-v6.10-net-phy-air_en8811h-fix-some-error-codes.patch => 798-v6.10-02-net-phy-air_en8811h-fix-some-error-codes.patch} (100%) rename target/linux/generic/{pending-6.6/742-net-phy-air_en8811h-reset-netdev-rules-when-LED-is-s.patch => backport-6.6/798-v6.10-03-net-phy-air_en8811h-reset-netdev-rules-when-LED-is-s.patch} (100%) diff --git a/target/linux/generic/backport-6.6/798-v6.10-net-phy-air_en8811h-Add-the-Airoha-EN8811H-PHY-drive.patch b/target/linux/generic/backport-6.6/798-v6.10-01-net-phy-air_en8811h-Add-the-Airoha-EN8811H-PHY-drive.patch similarity index 100% rename from target/linux/generic/backport-6.6/798-v6.10-net-phy-air_en8811h-Add-the-Airoha-EN8811H-PHY-drive.patch rename to target/linux/generic/backport-6.6/798-v6.10-01-net-phy-air_en8811h-Add-the-Airoha-EN8811H-PHY-drive.patch diff --git a/target/linux/generic/backport-6.6/799-v6.10-net-phy-air_en8811h-fix-some-error-codes.patch b/target/linux/generic/backport-6.6/798-v6.10-02-net-phy-air_en8811h-fix-some-error-codes.patch similarity index 100% rename from target/linux/generic/backport-6.6/799-v6.10-net-phy-air_en8811h-fix-some-error-codes.patch rename to target/linux/generic/backport-6.6/798-v6.10-02-net-phy-air_en8811h-fix-some-error-codes.patch diff --git a/target/linux/generic/pending-6.6/742-net-phy-air_en8811h-reset-netdev-rules-when-LED-is-s.patch b/target/linux/generic/backport-6.6/798-v6.10-03-net-phy-air_en8811h-reset-netdev-rules-when-LED-is-s.patch similarity index 100% rename from target/linux/generic/pending-6.6/742-net-phy-air_en8811h-reset-netdev-rules-when-LED-is-s.patch rename to target/linux/generic/backport-6.6/798-v6.10-03-net-phy-air_en8811h-reset-netdev-rules-when-LED-is-s.patch From 4f5f56b702fed3221d31131383c37293b091d317 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 19 Mar 2025 13:18:59 +0100 Subject: [PATCH 19/19] libnl-tiny: update to Git HEAD (2025-03-19) c0df580adbd4 attr.c: fix nla_reserve size check Signed-off-by: Felix Fietkau --- package/libs/libnl-tiny/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package/libs/libnl-tiny/Makefile b/package/libs/libnl-tiny/Makefile index c211288f8e..d081001693 100644 --- a/package/libs/libnl-tiny/Makefile +++ b/package/libs/libnl-tiny/Makefile @@ -12,9 +12,9 @@ PKG_RELEASE:=1 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL=$(PROJECT_GIT)/project/libnl-tiny.git -PKG_SOURCE_DATE:=2023-12-05 -PKG_SOURCE_VERSION:=965c4bf49658342ced0bd6e7cb069571b4a1ddff -PKG_MIRROR_HASH:=4b56499e71f5f10b123e1c7ee13dbfcd970de560bff8d16ab39dc25c9ff743cb +PKG_SOURCE_DATE:=2025-03-19 +PKG_SOURCE_VERSION:=c0df580adbd4d555ecc1962dbe88e91d75b67a4e +PKG_MIRROR_HASH:=1064a27824d99a93cbf8dbc808caf2cb277f1825b378ec6076d2ecfb8866a81f CMAKE_INSTALL:=1 PKG_LICENSE:=LGPL-2.1