From 0373823f017916f2fab02ee4c501798bc4caa19a Mon Sep 17 00:00:00 2001 From: Hugo Yuan <429632952@163.com> Date: Tue, 17 Sep 2019 22:51:14 +0800 Subject: [PATCH] ipq40xx: Add Hugo AC1200 led aliases (#1635) --- target/linux/ipq40xx/base-files/etc/board.d/01_leds | 5 +++++ .../arch/arm/boot/dts/qcom-ipq4019-hugo-ac1200.dtsi | 12 ++++++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/target/linux/ipq40xx/base-files/etc/board.d/01_leds b/target/linux/ipq40xx/base-files/etc/board.d/01_leds index 85b131630..e63dcf263 100755 --- a/target/linux/ipq40xx/base-files/etc/board.d/01_leds +++ b/target/linux/ipq40xx/base-files/etc/board.d/01_leds @@ -46,6 +46,11 @@ netgear,ex6150v2) ucidef_set_led_wlan "wlan2g" "WLAN2G" "ex61x0v2:green:router" "phy0tpt" ucidef_set_led_wlan "wlan5g" "WLAN5G" "ex61x0v2:green:client" "phy1tpt" ;; +hugo,ac1200) + ucidef_set_led_default "green" "GREEN" "${boardname}:green:ctrl1" "1" + ucidef_set_led_default "red" "RED" "${boardname}:red:ctrl2" "1" + ucidef_set_led_default "blue" "BLUE" "${boardname}:blue:ctrl3" "1" + ;; zyxel,nbg6617) ucidef_set_led_wlan "wlan2g" "WLAN2G" "${boardname}:green:wlan2G" "phy0tpt" ucidef_set_led_wlan "wlan5g" "WLAN5G" "${boardname}:green:wlan5G" "phy1tpt" diff --git a/target/linux/ipq40xx/files-4.14/arch/arm/boot/dts/qcom-ipq4019-hugo-ac1200.dtsi b/target/linux/ipq40xx/files-4.14/arch/arm/boot/dts/qcom-ipq4019-hugo-ac1200.dtsi index 99ff2cc35..ff5b333f9 100644 --- a/target/linux/ipq40xx/files-4.14/arch/arm/boot/dts/qcom-ipq4019-hugo-ac1200.dtsi +++ b/target/linux/ipq40xx/files-4.14/arch/arm/boot/dts/qcom-ipq4019-hugo-ac1200.dtsi @@ -17,6 +17,13 @@ reg = <0x80000000 0x10000000>; /* 256MB */ }; + aliases { + led-boot = &power; + led-failsafe = &power; + led-running = &power; + led-upgrade = &power; + }; + soc { mdio@90000 { status = "okay"; @@ -128,19 +135,16 @@ led1 { label = "ac1200:green:ctrl1"; gpios = <&tlmm 44 GPIO_ACTIVE_LOW>; - default-state = "on"; }; led2 { label = "ac1200:red:ctrl2"; gpios = <&tlmm 45 GPIO_ACTIVE_LOW>; - default-state = "on"; }; - led3 { + power: led3 { label = "ac1200:blue:ctrl3"; gpios = <&tlmm 46 GPIO_ACTIVE_LOW>; - default-state = "on"; }; };