mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
ARM: dts: ux500: Fix LED probing
commit7749510c45upstream. The Ux500 HREF LEDs have not been probing properly for a while as this was introduce: ret = of_property_read_u32(np, "color", &led_color); if (ret) return ret; Since the device tree did not define the new invented color attribute, probe was failing. Define color attributes for the LEDs so they work again. Link: https://lore.kernel.org/r/20210613123356.880933-1-linus.walleij@linaro.org Fixes:92a81562e6("leds: lp55xx: Add multicolor framework support to lp55xx") Cc: stable@vger.kernel.org Cc: Dan Murphy <dmurphy@ti.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Olof Johansson <olof@lixom.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
b34aa5aaaa
commit
ea45145e6c
@@ -4,6 +4,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <dt-bindings/interrupt-controller/irq.h>
|
#include <dt-bindings/interrupt-controller/irq.h>
|
||||||
|
#include <dt-bindings/leds/common.h>
|
||||||
#include "ste-href-family-pinctrl.dtsi"
|
#include "ste-href-family-pinctrl.dtsi"
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
@@ -64,17 +65,20 @@
|
|||||||
reg = <0>;
|
reg = <0>;
|
||||||
led-cur = /bits/ 8 <0x2f>;
|
led-cur = /bits/ 8 <0x2f>;
|
||||||
max-cur = /bits/ 8 <0x5f>;
|
max-cur = /bits/ 8 <0x5f>;
|
||||||
|
color = <LED_COLOR_ID_BLUE>;
|
||||||
linux,default-trigger = "heartbeat";
|
linux,default-trigger = "heartbeat";
|
||||||
};
|
};
|
||||||
chan@1 {
|
chan@1 {
|
||||||
reg = <1>;
|
reg = <1>;
|
||||||
led-cur = /bits/ 8 <0x2f>;
|
led-cur = /bits/ 8 <0x2f>;
|
||||||
max-cur = /bits/ 8 <0x5f>;
|
max-cur = /bits/ 8 <0x5f>;
|
||||||
|
color = <LED_COLOR_ID_BLUE>;
|
||||||
};
|
};
|
||||||
chan@2 {
|
chan@2 {
|
||||||
reg = <2>;
|
reg = <2>;
|
||||||
led-cur = /bits/ 8 <0x2f>;
|
led-cur = /bits/ 8 <0x2f>;
|
||||||
max-cur = /bits/ 8 <0x5f>;
|
max-cur = /bits/ 8 <0x5f>;
|
||||||
|
color = <LED_COLOR_ID_BLUE>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
lp5521@34 {
|
lp5521@34 {
|
||||||
@@ -88,16 +92,19 @@
|
|||||||
reg = <0>;
|
reg = <0>;
|
||||||
led-cur = /bits/ 8 <0x2f>;
|
led-cur = /bits/ 8 <0x2f>;
|
||||||
max-cur = /bits/ 8 <0x5f>;
|
max-cur = /bits/ 8 <0x5f>;
|
||||||
|
color = <LED_COLOR_ID_BLUE>;
|
||||||
};
|
};
|
||||||
chan@1 {
|
chan@1 {
|
||||||
reg = <1>;
|
reg = <1>;
|
||||||
led-cur = /bits/ 8 <0x2f>;
|
led-cur = /bits/ 8 <0x2f>;
|
||||||
max-cur = /bits/ 8 <0x5f>;
|
max-cur = /bits/ 8 <0x5f>;
|
||||||
|
color = <LED_COLOR_ID_BLUE>;
|
||||||
};
|
};
|
||||||
chan@2 {
|
chan@2 {
|
||||||
reg = <2>;
|
reg = <2>;
|
||||||
led-cur = /bits/ 8 <0x2f>;
|
led-cur = /bits/ 8 <0x2f>;
|
||||||
max-cur = /bits/ 8 <0x5f>;
|
max-cur = /bits/ 8 <0x5f>;
|
||||||
|
color = <LED_COLOR_ID_BLUE>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
bh1780@29 {
|
bh1780@29 {
|
||||||
|
|||||||
Reference in New Issue
Block a user