From 8798f84cd624cb622b4d33ee1bb1de26ca480f93 Mon Sep 17 00:00:00 2001 From: Tianling Shen Date: Fri, 16 Feb 2024 13:26:51 +0800 Subject: [PATCH] mediatek: filogic: bpi-r3-mini: convert to new LED color/function format Conversion to new LED color/function format and drop label format. This was needed previously when the new format wasn't supported by leds.sh functions script. Now that is supported this property can be removed in favor of the new format. Signed-off-by: Tianling Shen --- .../mediatek/dts/mt7986a-bananapi-bpi-r3-mini.dts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3-mini.dts b/target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3-mini.dts index b83ebecf15..fdf6b8818c 100644 --- a/target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3-mini.dts +++ b/target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3-mini.dts @@ -50,17 +50,22 @@ compatible = "gpio-leds"; status_led: led-0 { - label = "green:status"; + function = LED_FUNCTION_STATUS; + color = ; gpios = <&pio 19 GPIO_ACTIVE_HIGH>; }; led-1 { - label = "blue:wlan2g"; + function = LED_FUNCTION_WLAN; + color = ; + function-enumerator = <1>; gpios = <&pio 1 GPIO_ACTIVE_HIGH>; }; led-2 { - label = "blue:wlan5g"; + function = LED_FUNCTION_WLAN; + color = ; + function-enumerator = <2>; gpios = <&pio 2 GPIO_ACTIVE_HIGH>; }; }; -- 2.30.2