mirror of
https://github.com/openwrt/openwrt.git
synced 2025-12-21 17:04:28 +04:00
ipq40xx: convert Orbi led labels to function/color
The eight leds controlled by the LED controller are RGB leds themselves but are flashing white by default. The color part is controlled by GPIOs 53 (green), 54 (red), 57 (blue) and 60 (white). Therefore define the led nodes of the controller as white instead of RBG as well as backlight as their function. Signed-off-by: Christoph Krapp <achterin@gmail.com> Link: https://github.com/openwrt/openwrt/pull/20877 Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
committed by
Robert Marko
parent
f0909f7a05
commit
3045f205b3
@@ -204,49 +204,65 @@
|
|||||||
reg = <0x27>;
|
reg = <0x27>;
|
||||||
|
|
||||||
led0@0 {
|
led0@0 {
|
||||||
label = "rgb:led0";
|
function = LED_FUNCTION_BACKLIGHT;
|
||||||
|
function-enumerator = <0>;
|
||||||
|
color = <LED_COLOR_ID_WHITE>;
|
||||||
reg = <0x0>;
|
reg = <0x0>;
|
||||||
linux,default-trigger = "default-on";
|
linux,default-trigger = "default-on";
|
||||||
};
|
};
|
||||||
|
|
||||||
led1@1 {
|
led1@1 {
|
||||||
label = "rgb:led1";
|
function = LED_FUNCTION_BACKLIGHT;
|
||||||
|
function-enumerator = <1>;
|
||||||
|
color = <LED_COLOR_ID_WHITE>;
|
||||||
reg = <0x1>;
|
reg = <0x1>;
|
||||||
linux,default-trigger = "default-on";
|
linux,default-trigger = "default-on";
|
||||||
};
|
};
|
||||||
|
|
||||||
led2@2 {
|
led2@2 {
|
||||||
label = "rgb:led2";
|
function = LED_FUNCTION_BACKLIGHT;
|
||||||
|
function-enumerator = <2>;
|
||||||
|
color = <LED_COLOR_ID_WHITE>;
|
||||||
reg = <0x2>;
|
reg = <0x2>;
|
||||||
linux,default-trigger = "default-on";
|
linux,default-trigger = "default-on";
|
||||||
};
|
};
|
||||||
|
|
||||||
led3@3 {
|
led3@3 {
|
||||||
label = "rgb:led3";
|
function = LED_FUNCTION_BACKLIGHT;
|
||||||
|
function-enumerator = <3>;
|
||||||
|
color = <LED_COLOR_ID_WHITE>;
|
||||||
reg = <0x3>;
|
reg = <0x3>;
|
||||||
linux,default-trigger = "default-on";
|
linux,default-trigger = "default-on";
|
||||||
};
|
};
|
||||||
|
|
||||||
led4@4 {
|
led4@4 {
|
||||||
label = "rgb:led4";
|
function = LED_FUNCTION_BACKLIGHT;
|
||||||
|
function-enumerator = <4>;
|
||||||
|
color = <LED_COLOR_ID_WHITE>;
|
||||||
reg = <0x4>;
|
reg = <0x4>;
|
||||||
linux,default-trigger = "default-on";
|
linux,default-trigger = "default-on";
|
||||||
};
|
};
|
||||||
|
|
||||||
led5@5 {
|
led5@5 {
|
||||||
label = "rgb:led5";
|
function = LED_FUNCTION_BACKLIGHT;
|
||||||
|
function-enumerator = <5>;
|
||||||
|
color = <LED_COLOR_ID_WHITE>;
|
||||||
reg = <0x5>;
|
reg = <0x5>;
|
||||||
linux,default-trigger = "default-on";
|
linux,default-trigger = "default-on";
|
||||||
};
|
};
|
||||||
|
|
||||||
led6@6 {
|
led6@6 {
|
||||||
label = "rgb:led6";
|
function = LED_FUNCTION_BACKLIGHT;
|
||||||
|
function-enumerator = <6>;
|
||||||
|
color = <LED_COLOR_ID_WHITE>;
|
||||||
reg = <0x6>;
|
reg = <0x6>;
|
||||||
linux,default-trigger = "default-on";
|
linux,default-trigger = "default-on";
|
||||||
};
|
};
|
||||||
|
|
||||||
led7@7 {
|
led7@7 {
|
||||||
label = "rgb:led7";
|
function = LED_FUNCTION_BACKLIGHT;
|
||||||
|
function-enumerator = <7>;
|
||||||
|
color = <LED_COLOR_ID_WHITE>;
|
||||||
reg = <0x7>;
|
reg = <0x7>;
|
||||||
linux,default-trigger = "default-on";
|
linux,default-trigger = "default-on";
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user