diff options
author | Tianling Shen <cnsztl@immortalwrt.org> | 2024-02-16 13:26:51 +0800 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2024-02-16 13:56:01 +0000 |
commit | 8798f84cd624cb622b4d33ee1bb1de26ca480f93 (patch) | |
tree | b1fde6aa8ab49019952bc2bb34644ec297d60d85 /target | |
parent | f96289ddff605d0f3f724b36af0662d6eea38f53 (diff) | |
download | openwrt-8798f84cd624cb622b4d33ee1bb1de26ca480f93.tar.gz openwrt-8798f84cd624cb622b4d33ee1bb1de26ca480f93.tar.bz2 openwrt-8798f84cd624cb622b4d33ee1bb1de26ca480f93.zip |
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 <cnsztl@immortalwrt.org>
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3-mini.dts | 11 |
1 files 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 = <LED_COLOR_ID_GREEN>; gpios = <&pio 19 GPIO_ACTIVE_HIGH>; }; led-1 { - label = "blue:wlan2g"; + function = LED_FUNCTION_WLAN; + color = <LED_COLOR_ID_BLUE>; + function-enumerator = <1>; gpios = <&pio 1 GPIO_ACTIVE_HIGH>; }; led-2 { - label = "blue:wlan5g"; + function = LED_FUNCTION_WLAN; + color = <LED_COLOR_ID_BLUE>; + function-enumerator = <2>; gpios = <&pio 2 GPIO_ACTIVE_HIGH>; }; }; |