diff options
| author | Pawel Dembicki | 2024-08-22 11:42:21 +0000 |
|---|---|---|
| committer | Robert Marko | 2024-08-23 08:53:29 +0000 |
| commit | c43480c2dc3e5260b585b633f4f8de1abc7354ce (patch) | |
| tree | c62705860514c86bafa92e7c3bead6c742af9b2f | |
| parent | 5d107bbbbbb2f8247bb1d86e3fd9d29f951c4c25 (diff) | |
| download | openwrt-c43480c2dc3e5260b585b633f4f8de1abc7354ce.tar.gz | |
mpc85xx: refresh tl-wdr4900-v1 led configuration
This commit change led description in dts file from old method to new
approach accepted by upstream.
USB power gpio is handled by gpio-export now.
Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16226
Signed-off-by: Robert Marko <robimarko@gmail.com>
| -rw-r--r-- | target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts | 37 |
1 files changed, 25 insertions, 12 deletions
diff --git a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts index 91baba0cd7..cadf593fa6 100644 --- a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts +++ b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts @@ -9,6 +9,7 @@ * option) any later version. */ +#include <dt-bindings/leds/common.h> #include <dt-bindings/input/input.h> #include <dt-bindings/gpio/gpio.h> @@ -316,31 +317,43 @@ leds { compatible = "gpio-leds"; - wps { + led-0 { gpios = <&ath9k 1 GPIO_ACTIVE_LOW>; - label = "tp-link:green:wps"; + color = <LED_COLOR_ID_GREEN>; + function = LED_FUNCTION_WPS; }; - system_green: system { + system_green: led-1 { gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; - label = "tp-link:blue:system"; + color = <LED_COLOR_ID_GREEN>; + function = LED_FUNCTION_STATUS; }; - usb1 { + led-2 { gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; - label = "tp-link:green:usb1"; + color = <LED_COLOR_ID_GREEN>; + function = LED_FUNCTION_USB; + function-enumerator = <1>; }; - usb2 { + led-3 { gpios = <&gpio0 4 GPIO_ACTIVE_LOW>; - label = "tp-link:green:usb2"; + color = <LED_COLOR_ID_GREEN>; + function = LED_FUNCTION_USB; + function-enumerator = <2>; }; + }; + + gpio_export { + compatible = "gpio-export"; + #size-cells = <0>; - usbpower { - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - label = "tp-link:usb:power"; + usb-pwr { + gpio-export,name = "usb_pwr"; + gpio-export,output = <1>; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + }; }; - }; buttons { compatible = "gpio-keys"; |