[lkml]   [2021]   [May]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 2/2] dt: bindings: lp55xx: Add predefined LED pattern

> > I don't know that this belongs in DT though. Won't a user want to create
> > their own patterns? That means there should be a sysfs interface (which
> > we either already have or has been attempted IIRC).
> Yes, there is a sysfs interface for running patterns via the firmware
> loading interface. The firmware loading interface doesn't seem well
> suited for constantly changing the pattern that the LED driver runs.
> I found it to be slow and unreliable when quickly changing the LED
> pattern. The existing predef pattern functionality works much better.
> Unfortunately the only way to define the patterns for it is via the
> platform data structure. Adding the predef patterns to the device
> tree seemed like a good way to make use of the existing functionality
> in the driver.

Take a look at the pattern trigger. That's the way to change patterns
at runtime, no need for firmware loading.

I may even have compiler from that interface to the bytecode lp55xx
uses. Some assembly will be required. Doing so with the RGB LED will
be even more fun.

We'll want to deprecate the firmware loading interface at some point.

Forget the device tree, that will not help you.

Best regards,
[unhandled content-type:application/pgp-signature]
 \ /
  Last update: 2021-05-16 20:32    [W:0.101 / U:1.512 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site