mpc85xx: add usb trigger to tl-wdr4900-v1 leds

TP-Link tl-wdr4900-v1 has two usb leds. Modern kernels can handle usb
led trigger. Let's enable it.

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16226
Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
Pawel Dembicki 2024-08-22 13:45:11 +02:00 committed by Robert Marko
parent c43480c2dc
commit 71c6d99d57
2 changed files with 22 additions and 0 deletions

View File

@ -118,6 +118,23 @@
usb@22000 {
phy_type = "utmi";
dr_mode = "host";
port@1 {
#address-cells = <1>;
#size-cells = <0>;
reg = <1>;
#trigger-source-cells = <0>;
hub_port1: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
hub_port2: port@2 {
reg = <2>;
#trigger-source-cells = <0>;
};
};
};
mdio@24000 {
@ -334,6 +351,8 @@
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_USB;
function-enumerator = <1>;
linux,default-trigger = "usbport";
trigger-sources = <&hub_port1>;
};
led-3 {
@ -341,6 +360,8 @@
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_USB;
function-enumerator = <2>;
linux,default-trigger = "usbport";
trigger-sources = <&hub_port2>;
};
};

View File

@ -53,6 +53,7 @@ define Device/tplink_tl-wdr4900-v1
DEVICE_VARIANT := v1
DEVICE_COMPAT_VERSION := 1.1
DEVICE_COMPAT_MESSAGE := Config cannot be migrated from swconfig to DSA
DEVICE_PACKAGES := kmod-usb-ledtrig-usbport
TPLINK_HEADER_VERSION := 1
TPLINK_HWID := 0x49000001
TPLINK_HWREV := 1