This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LP5018: LP5018 LED driver probe issue.

Part Number: LP5018
Other Parts Discussed in Thread: LP5024

Tool/software:

Hi,

I am working on the lp5018 led driver I need to build firmware that supports the led driver. I've configured the device tree config as below,


led-controller@50 {
compatible = "ti,lp5018";
reg = <0x50>;
#address-cells = <1>;
#size-cells = <0>;
enable-gpios = <&gpio2 14 1>;

multi-led@1 {
#address-cells = <1>;
#size-cells = <0>;
reg = <0x1>;
color = <LED_COLOR_ID_RGB>;
function = LED_FUNCTION_CHARGING;

led@0 {
reg = <0x0>;
color = <LED_COLOR_ID_RED>;
};

led@1 {
reg = <0x1>;
color = <LED_COLOR_ID_GREEN>;
};

led@2 {
reg = <0x2>;
color = <LED_COLOR_ID_BLUE>;
};
};

multi-led@3 {
#address-cells = <1>;
#size-cells = <0>;
reg = <0x3>, <0x4>, <0x5>;
color = <LED_COLOR_ID_RGB>;
function = LED_FUNCTION_STANDBY;

led@3 {
reg = <0x3>;
color = <LED_COLOR_ID_RED>;
};

led@4 {
reg = <0x4>;
color = <LED_COLOR_ID_GREEN>;
};

led@5 {
reg = <0x5>;
color = <LED_COLOR_ID_BLUE>;
};
};
};


I am able to see the i2c address that the device is connected but I am facing the kernel driver probe failing issue. Please suggest to me what could be the issue.

And please guide how I can operate the led driver through Linux.


Thanks
Shubham