mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-19 05:38:00 +00:00
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>
This commit is contained in:
parent
f96289ddff
commit
8798f84cd6
@ -50,17 +50,22 @@
|
|||||||
compatible = "gpio-leds";
|
compatible = "gpio-leds";
|
||||||
|
|
||||||
status_led: led-0 {
|
status_led: led-0 {
|
||||||
label = "green:status";
|
function = LED_FUNCTION_STATUS;
|
||||||
|
color = <LED_COLOR_ID_GREEN>;
|
||||||
gpios = <&pio 19 GPIO_ACTIVE_HIGH>;
|
gpios = <&pio 19 GPIO_ACTIVE_HIGH>;
|
||||||
};
|
};
|
||||||
|
|
||||||
led-1 {
|
led-1 {
|
||||||
label = "blue:wlan2g";
|
function = LED_FUNCTION_WLAN;
|
||||||
|
color = <LED_COLOR_ID_BLUE>;
|
||||||
|
function-enumerator = <1>;
|
||||||
gpios = <&pio 1 GPIO_ACTIVE_HIGH>;
|
gpios = <&pio 1 GPIO_ACTIVE_HIGH>;
|
||||||
};
|
};
|
||||||
|
|
||||||
led-2 {
|
led-2 {
|
||||||
label = "blue:wlan5g";
|
function = LED_FUNCTION_WLAN;
|
||||||
|
color = <LED_COLOR_ID_BLUE>;
|
||||||
|
function-enumerator = <2>;
|
||||||
gpios = <&pio 2 GPIO_ACTIVE_HIGH>;
|
gpios = <&pio 2 GPIO_ACTIVE_HIGH>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user