Re: [PATCH v2 1/2] dt-bindings: Add docs for EL15203000

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thank you for advice!

16.07.19 21:41, Jacek Anaszewski пише:
> Hi Oleh,
>
> On 7/9/19 12:00 AM, Oleh Kravchenko wrote:
>>
>> I just figure out that this Pipe LED actually consist from 5 LEDs, not 3 :)
>> And supports next level 'brightness' from SPI driver:
>> - '0' Off
>> - '1' On
>> - '2' Cascade (waterfall down)
>>  -'3' InverseCascade (waterfall up)
>> - '4' Bounce
>> - '5' InverseBounce
>>
>> Please advice, can I proceed with sys attribute file to set '2'..'5' levels?
> It looks like pattern trigger is the most appropriate solution for the
> effects 2-5. Your driver will need to implement pattern_set op for the
> LEDs supporting the effects, and then the effect will be enabled after
> writing required sequence to the hw_pattern file. You will need to come
> up with a sequence of values that the driver will recognize as a request
> of enabling given hardware effect. Please compare
> drivers/leds/leds-sc27xx-bltc.c and its ABI documentation [0] for
> reference. See also hw_pattern file description in [1].
>
> [0] Documentation/ABI/testing/sysfs-class-led-driver-sc27xx
> [1] Documentation/ABI/testing/sysfs-class-led-trigger-pattern
>



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux