From 2df46a2c779c3d7583ec24b711857404bb923f54 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Fri, 18 Feb 2022 08:55:37 +0100 Subject: [PATCH] ipq807x: fix LEDs on wf196 Signed-off-by: John Crispin --- .../boot/dts/qcom/qcom-ipq807x-wf196.dts | 40 ++++++++++++++----- 1 file changed, 29 insertions(+), 11 deletions(-) diff --git a/feeds/ipq807x/ipq807x/files/arch/arm64/boot/dts/qcom/qcom-ipq807x-wf196.dts b/feeds/ipq807x/ipq807x/files/arch/arm64/boot/dts/qcom/qcom-ipq807x-wf196.dts index 96029697c..c92e312e6 100644 --- a/feeds/ipq807x/ipq807x/files/arch/arm64/boot/dts/qcom/qcom-ipq807x-wf196.dts +++ b/feeds/ipq807x/ipq807x/files/arch/arm64/boot/dts/qcom/qcom-ipq807x-wf196.dts @@ -39,6 +39,11 @@ ethernet3 = "/soc/dp4"; ethernet4 = "/soc/dp5"; ethernet5 = "/soc/dp6"; + + led-boot = &led_power; + led-failsafe = &led_power; + led-running = &led_power; + led-upgrade = &led_power; }; chosen { @@ -325,15 +330,22 @@ }; led_pins: led_pins { - led_2g { - pins = "gpio42"; + led_red { + pins = "gpio25"; function = "gpio"; drive-strength = <8>; bias-pull-down; }; - led_5g { - pins = "gpio43"; + led_green { + pins = "gpio26"; + function = "gpio"; + drive-strength = <8>; + bias-pull-down; + }; + + led_blue { + pins = "gpio27"; function = "gpio"; drive-strength = <8>; bias-pull-down; @@ -379,7 +391,7 @@ pinctrl-0 = <&pwm_pins>; pinctrl-names = "default"; used-pwm-indices = <1>, <1>, <1>, <0>; - status = "ok"; + // status = "ok"; }; gpio_keys { compatible = "gpio-keys"; @@ -810,15 +822,21 @@ pinctrl-0 = <&led_pins>; pinctrl-names = "default"; - led_2g { - label = "led_2g"; - gpio = <&tlmm 42 GPIO_ACTIVE_HIGH>; + led_red { + label = "red:status"; + gpio = <&tlmm 25 GPIO_ACTIVE_HIGH>; default-state = "off"; }; - led_5g { - label = "led_5g"; - gpio = <&tlmm 43 GPIO_ACTIVE_HIGH>; + led_power: led_green { + label = "green:status"; + gpio = <&tlmm 26 GPIO_ACTIVE_HIGH>; + default-state = "on"; + }; + + led_blue { + label = "blue:status"; + gpio = <&tlmm 27 GPIO_ACTIVE_HIGH>; default-state = "off"; }; };