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.

[参考译文] LP5562SW-Linux:[常见问题解答] LP5562:如何在 Linux 上通过 sysfs 设置循环计数

Guru**** 2943390 points

Other Parts Discussed in Thread: LP5562

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

https://e2e.ti.com/support/power-management-group/power-management/f/power-management-forum/835272/lp5562sw-linux-faq-lp5562-how-to-set-loop-count-from-sysfs-on-linux

器件型号:LP5562SW-Linux
主题中讨论的其他器件:LP5562

您好!

我对 LP5562 Linux 驱动程序有疑问。

我阅读以下文档。

内核/Documentation/leds/leds-lp5562.txt

例如、以下命令用于使 LED 闪烁。

Echo 2 >/sys/bus/i2c/devices/xxxx/select_engine # 2用于绿色通道
用于 RGB 的 ECHO "RGB">/sys/bus/i2c/devices/xxxx/engine_mux #引擎多路复用器
Echo 1 >/sys/class/firmware/lp5562/loading
echo "4000600040FF6000">/sys/class/firmware/lp5562/data
echo 0 >/sys/class/firmware/lp5562/loading
Echo 1 >/sys/bus/i2c/devices/xxxx/run_engine

但它 会继续以永久 循环闪烁。

我想从 sysfs 中仅设置1个时间循环。

我应该如何在上面的 sysfs 上设置它?

此致、
Hiromitsu

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

    Hiromitsu-San、  

    我想您可以在代码下面添加'D'
    echo "4000600040FF6000D000">/sys/class/firmware/lp5562/data

    这是内部引擎的结束命令。

    您可以在数据表 http://www.ti.com/lit/ds/symlink/lp5562.pdf 的图43中找到命令简介
    此外,如果要调整循环计数,您可以在数据表的表46中找到参考代码。

    如果您有任何疑问、请随时告知我。

    BR、
    吴君

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

    尊敬的 Wu

    感谢您的评论。

    我关闭它。