Skip to content

Commit 86ebe64

Browse files
achterinrobimarko
authored andcommitted
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 <[email protected]> Link: openwrt/openwrt#20877 Signed-off-by: Robert Marko <[email protected]> (cherry picked from commit 3045f20)
1 parent ce54f6e commit 86ebe64

File tree

1 file changed

+24
-8
lines changed

1 file changed

+24
-8
lines changed

target/linux/ipq40xx/files-6.12/arch/arm/boot/dts/qcom/qcom-ipq4019-orbi.dtsi

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -204,49 +204,65 @@
204204
reg = <0x27>;
205205

206206
led0@0 {
207-
label = "rgb:led0";
207+
function = LED_FUNCTION_BACKLIGHT;
208+
function-enumerator = <0>;
209+
color = <LED_COLOR_ID_WHITE>;
208210
reg = <0x0>;
209211
linux,default-trigger = "default-on";
210212
};
211213

212214
led1@1 {
213-
label = "rgb:led1";
215+
function = LED_FUNCTION_BACKLIGHT;
216+
function-enumerator = <1>;
217+
color = <LED_COLOR_ID_WHITE>;
214218
reg = <0x1>;
215219
linux,default-trigger = "default-on";
216220
};
217221

218222
led2@2 {
219-
label = "rgb:led2";
223+
function = LED_FUNCTION_BACKLIGHT;
224+
function-enumerator = <2>;
225+
color = <LED_COLOR_ID_WHITE>;
220226
reg = <0x2>;
221227
linux,default-trigger = "default-on";
222228
};
223229

224230
led3@3 {
225-
label = "rgb:led3";
231+
function = LED_FUNCTION_BACKLIGHT;
232+
function-enumerator = <3>;
233+
color = <LED_COLOR_ID_WHITE>;
226234
reg = <0x3>;
227235
linux,default-trigger = "default-on";
228236
};
229237

230238
led4@4 {
231-
label = "rgb:led4";
239+
function = LED_FUNCTION_BACKLIGHT;
240+
function-enumerator = <4>;
241+
color = <LED_COLOR_ID_WHITE>;
232242
reg = <0x4>;
233243
linux,default-trigger = "default-on";
234244
};
235245

236246
led5@5 {
237-
label = "rgb:led5";
247+
function = LED_FUNCTION_BACKLIGHT;
248+
function-enumerator = <5>;
249+
color = <LED_COLOR_ID_WHITE>;
238250
reg = <0x5>;
239251
linux,default-trigger = "default-on";
240252
};
241253

242254
led6@6 {
243-
label = "rgb:led6";
255+
function = LED_FUNCTION_BACKLIGHT;
256+
function-enumerator = <6>;
257+
color = <LED_COLOR_ID_WHITE>;
244258
reg = <0x6>;
245259
linux,default-trigger = "default-on";
246260
};
247261

248262
led7@7 {
249-
label = "rgb:led7";
263+
function = LED_FUNCTION_BACKLIGHT;
264+
function-enumerator = <7>;
265+
color = <LED_COLOR_ID_WHITE>;
250266
reg = <0x7>;
251267
linux,default-trigger = "default-on";
252268
};

0 commit comments

Comments
 (0)