Skip to content

Commit e9af026

Browse files
sicelopavelmachek
authored andcommitted
ARM: dts: omap3-n900: Fix lp5523 for multi color
Since the LED multicolor framework support was added in commit 92a8156 ("leds: lp55xx: Add multicolor framework support to lp55xx") LEDs on this platform stopped working. Fixes: 92a8156 ("leds: lp55xx: Add multicolor framework support to lp55xx") Fixes: ac219bf ("leds: lp55xx: Convert to use GPIO descriptors") Signed-off-by: Merlijn Wajer <merlijn@wizzup.org> Signed-off-by: Sicelo A. Mhlongo <absicsz@gmail.com> Signed-off-by: Pavel Machek <pavel@ucw.cz>
1 parent a05f5d0 commit e9af026

File tree

1 file changed

+40
-10
lines changed

1 file changed

+40
-10
lines changed

arch/arm/boot/dts/omap3-n900.dts

Lines changed: 40 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#include "omap34xx.dtsi"
1010
#include <dt-bindings/input/input.h>
11+
#include <dt-bindings/leds/common.h>
1112

1213
/*
1314
* Default secure signed bootloader (Nokia X-Loader) does not enable L3 firewall
@@ -630,63 +631,92 @@
630631
};
631632

632633
lp5523: lp5523@32 {
634+
#address-cells = <1>;
635+
#size-cells = <0>;
633636
compatible = "national,lp5523";
634637
reg = <0x32>;
635638
clock-mode = /bits/ 8 <0>; /* LP55XX_CLOCK_AUTO */
636-
enable-gpio = <&gpio2 9 GPIO_ACTIVE_HIGH>; /* 41 */
639+
enable-gpios = <&gpio2 9 GPIO_ACTIVE_HIGH>; /* 41 */
637640

638-
chan0 {
641+
led@0 {
642+
reg = <0>;
639643
chan-name = "lp5523:kb1";
640644
led-cur = /bits/ 8 <50>;
641645
max-cur = /bits/ 8 <100>;
646+
color = <LED_COLOR_ID_WHITE>;
647+
function = LED_FUNCTION_KBD_BACKLIGHT;
642648
};
643649

644-
chan1 {
650+
led@1 {
651+
reg = <1>;
645652
chan-name = "lp5523:kb2";
646653
led-cur = /bits/ 8 <50>;
647654
max-cur = /bits/ 8 <100>;
655+
color = <LED_COLOR_ID_WHITE>;
656+
function = LED_FUNCTION_KBD_BACKLIGHT;
648657
};
649658

650-
chan2 {
659+
led@2 {
660+
reg = <2>;
651661
chan-name = "lp5523:kb3";
652662
led-cur = /bits/ 8 <50>;
653663
max-cur = /bits/ 8 <100>;
664+
color = <LED_COLOR_ID_WHITE>;
665+
function = LED_FUNCTION_KBD_BACKLIGHT;
654666
};
655667

656-
chan3 {
668+
led@3 {
669+
reg = <3>;
657670
chan-name = "lp5523:kb4";
658671
led-cur = /bits/ 8 <50>;
659672
max-cur = /bits/ 8 <100>;
673+
color = <LED_COLOR_ID_WHITE>;
674+
function = LED_FUNCTION_KBD_BACKLIGHT;
660675
};
661676

662-
chan4 {
677+
led@4 {
678+
reg = <4>;
663679
chan-name = "lp5523:b";
664680
led-cur = /bits/ 8 <50>;
665681
max-cur = /bits/ 8 <100>;
682+
color = <LED_COLOR_ID_BLUE>;
683+
function = LED_FUNCTION_STATUS;
666684
};
667685

668-
chan5 {
686+
led@5 {
687+
reg = <5>;
669688
chan-name = "lp5523:g";
670689
led-cur = /bits/ 8 <50>;
671690
max-cur = /bits/ 8 <100>;
691+
color = <LED_COLOR_ID_GREEN>;
692+
function = LED_FUNCTION_STATUS;
672693
};
673694

674-
chan6 {
695+
led@6 {
696+
reg = <6>;
675697
chan-name = "lp5523:r";
676698
led-cur = /bits/ 8 <50>;
677699
max-cur = /bits/ 8 <100>;
700+
color = <LED_COLOR_ID_RED>;
701+
function = LED_FUNCTION_STATUS;
678702
};
679703

680-
chan7 {
704+
led@7 {
705+
reg = <7>;
681706
chan-name = "lp5523:kb5";
682707
led-cur = /bits/ 8 <50>;
683708
max-cur = /bits/ 8 <100>;
709+
color = <LED_COLOR_ID_WHITE>;
710+
function = LED_FUNCTION_KBD_BACKLIGHT;
684711
};
685712

686-
chan8 {
713+
led@8 {
714+
reg = <8>;
687715
chan-name = "lp5523:kb6";
688716
led-cur = /bits/ 8 <50>;
689717
max-cur = /bits/ 8 <100>;
718+
color = <LED_COLOR_ID_WHITE>;
719+
function = LED_FUNCTION_KBD_BACKLIGHT;
690720
};
691721
};
692722

0 commit comments

Comments
 (0)