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.

[参考译文] LP5012:LED 驱动器支持

Guru**** 1468350 points
Other Parts Discussed in Thread: LP5012, LP5009
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/power-management-group/power-management/f/power-management-forum/1289806/lp5012-led-driver-support

器件型号:LP5012
主题中讨论的其他器件: LP5009

大家好、

我们使用的是 通过 I2C 接口连接的 LP5012RUKR LED 驱动器。 您能否为此分享 Linux 内核驱动程序?

谢谢。此致、

阿努什

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好 Anush,ñ ol

    请参阅以下 E2E 链接:

    https://e2e.ti.com/support/power-management-group/power-management/f/power-management-forum/886005/lp5009-sample-driver-for-linux-source-code?keyMatch=LP5012+LINUX+DRIVER

    BR、Jared

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Jared:

    感谢您的答复

    我在您提供的链接中找不到源代码。 我在下面的链接中使用了 LP5012的源代码

    https://git.kernel.org/pub/scm/linux/kernel/git/pavel/linux-leds.git/tree/drivers/leds/leds-lp50xx.c?h=for-next

    因此、我将面临以下错误消息

    root@OpenWrt:/lib/modules/5.4.213 # insmod leds-lp50xx.ko
    [ 174.518715] lp50xx 0-0014:未找到0-0014电源电压,使用虚拟调节器
    [ 174.518773] lp50xx 0-0014:reg 属性无效
    [174.524918] lp50xx:0-0014探测器失败,错误-2
    另请查找适用于该驱动器的 DTS 参考
       I2C_1{
    +       pinctrl-0 =<&i2c_1_pins>;
    +       pinctrl-names ="默认";
    +       STATUS ="正常";
    +
    +       lp5012@14{
    +           compatible ="ti,lp5012";
    +           reg =<0x14>;
    +           #address-Cells =<1>;
    +           #size-cells =<0>;
    +            
    +           LED
    +
    +               LED@0{
    +                   标签="sub:blue";
    +                   reg =<0>;
    +               };
    +               LED@1{
    +                   标签="sub:red";
    +                   reg =<1>;
    +               };
    +           }
    + }
    谢谢。
    A·M·阿努什
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    Anush 您好!

    我们的专家不在办公室,将在他回来时回复您。

    Br

    帕特里克

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    Anush 您好!

    实际上、LP5009和 LP5012是具有不同输出引脚的同一器件。

    对于 Linux 驱动程序的故障、我们可以支持器件的某些功能。 但对于那些有关 Linux 本身的人、很抱歉我们不能支持这些部件。

    BR、Jared