From 19c45b95dbb53a7ba1a26c201277ca86293bf404 Mon Sep 17 00:00:00 2001 From: Christian Marangi Date: Wed, 7 Feb 2024 14:48:43 +0100 Subject: ramips: convert to new LED color/function format where possible Initial conversion to new LED color/function format and drop label format where possible. The same label is composed at runtime. Signed-off-by: Christian Marangi --- target/linux/ramips/dts/rt3050_dlink_dir-600-b1.dts | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'target/linux/ramips/dts/rt3050_dlink_dir-600-b1.dts') diff --git a/target/linux/ramips/dts/rt3050_dlink_dir-600-b1.dts b/target/linux/ramips/dts/rt3050_dlink_dir-600-b1.dts index 73e65128e5..e5441d2d65 100644 --- a/target/linux/ramips/dts/rt3050_dlink_dir-600-b1.dts +++ b/target/linux/ramips/dts/rt3050_dlink_dir-600-b1.dts @@ -2,6 +2,7 @@ #include #include +#include / { compatible = "dlink,dir-600-b1", "ralink,rt3050-soc"; @@ -86,27 +87,32 @@ compatible = "gpio-leds"; status { - label = "amber:status"; + function = LED_FUNCTION_STATUS; + color = ; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; }; led_status_green: status2 { - label = "green:status"; + function = LED_FUNCTION_STATUS; + color = ; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wan { - label = "amber:wan"; + function = LED_FUNCTION_WAN; + color = ; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; wan2 { - label = "green:wan"; + function = LED_FUNCTION_WAN; + color = ; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; wps { - label = "blue:wps"; + function = LED_FUNCTION_WPS; + color = ; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; -- cgit v1.2.3