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**** 2924100 points

Other Parts Discussed in Thread: LP5562

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

https://e2e.ti.com/support/power-management-group/power-management/f/power-management-forum/835267/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