Re: [PATCH] leds: gpio: support multi-level brightness

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

 



Hi!

> > On 10/4/19 10:34 AM, Akinobu Mita wrote:
> > > Currently, GPIO LED driver allows the GPIO properties to contain one GPIO
> > > phandle.  This enables to contain more than one GPIO phandle and the
> > > brightness of the LEDs is proportional to the number of active GPIOs.
> >
> > How would this work with the Multicolor framework?
> >
> > We have not adapted the GPIO LED driver to this yet so with this
> > framework this patch may need to change.
> >
> > https://lore.kernel.org/patchwork/project/lkml/list/?series=412400
> 
> If I understand the multi color framework correctly, I think we can add the
> multi color framework and the multi brightness level support separately
> into the GPIO LED driver.

I'm not convinced we want to support multi-LED framework.

If 3 GPIOs control one physical LED, yes, we want to support that.

If the goal is to create one virtual LED from 4 physical LEDs arranged
side by side... I'd say... deal with the complexity in userland. It is
not critical to do it in kernel.

Best regards,
									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux