From a34822b0892451d10e9adc08175a5b92e4de7899 Mon Sep 17 00:00:00 2001 From: suyuan <175338101@qq.com> Date: Tue, 22 Dec 2020 23:41:05 +0800 Subject: [PATCH] fix 1000l LED --- .../ipq40xx/base-files/etc/board.d/01_leds | 2 +- .../arch/arm/boot/dts/qcom-ipq4019-l1000.dts | 17 ++++++++++++----- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/root/target/linux/ipq40xx/base-files/etc/board.d/01_leds b/root/target/linux/ipq40xx/base-files/etc/board.d/01_leds index 0e439b65..0144b3e7 100755 --- a/root/target/linux/ipq40xx/base-files/etc/board.d/01_leds +++ b/root/target/linux/ipq40xx/base-files/etc/board.d/01_leds @@ -62,7 +62,7 @@ pangu,l1000) ucidef_set_led_default "power" "POWER" "${boardname}:blue:power" "1" ucidef_set_led_wlan "wlan2g" "WLAN2G" "${boardname}:blue:wlan2g" "phy0tpt" ucidef_set_led_wlan "wlan5g" "WLAN5G" "${boardname}:blue:wlan5g" "phy1tpt" - ucidef_set_led_switch "wan" "WAN" "${boardname}:blue:wan" "switch0" "0x20" + ucidef_set_led_netdev "wan" "WAN" "${boardname}:blue:wan" "eth1" ;; netgear,ex6100v2 |\ netgear,ex6150v2) diff --git a/root/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-l1000.dts b/root/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-l1000.dts index d2b8daf7..65a9e887 100644 --- a/root/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-l1000.dts +++ b/root/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-l1000.dts @@ -123,24 +123,31 @@ compatible = "gpio-leds"; power: status { - label = "l1000:blue:status"; + label = "blue:status"; gpios = <&tlmm 3 GPIO_ACTIVE_LOW>; }; wlan2g { - label = "l1000:blue:wlan2g"; + label = "blue:wlan2g"; gpios = <&tlmm 1 GPIO_ACTIVE_LOW>; }; wlan5g { - label = "l1000:bule:wlan5g"; + label = "bule:wlan5g"; gpios = <&tlmm 2 GPIO_ACTIVE_LOW>; }; wan: wan { - label = "l1000:bule:usb"; + label = "bule:wan"; gpios = <&tlmm 4 GPIO_ACTIVE_LOW>; - }; + }; + led_usb: usb { + label = "green:usb"; + gpios = <&tlmm 5 GPIO_ACTIVE_LOW>; + trigger-sources = <&usb3_port1>, <&usb3_port2>, + <&usb2_port1>; + linux,default-trigger = "usbport"; + }; }; };