Re: [PATCH v2 1/4] mfd: add LM3533 lighting-power core driver

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

 



On Thu, May 03, 2012 at 05:57:49PM +0100, Mark Brown wrote:
> On Thu, May 03, 2012 at 06:54:37PM +0200, Johan Hovold wrote:
> > On Thu, May 03, 2012 at 04:24:07PM +0100, Mark Brown wrote:
> 
> > > I'm not sure exactly which control that is?
> 
> > That would be the output_lvled[n] (n = 1..5) attributes. For example, to
> > have all five low-voltage sinks blink synchronously, you could assign 0
> > to all these five attributes, and set a timer trigger for the led device
> > which has id 0.
> 
> Sorry, I meant "what exactly does this do in hardware".

>From the datasheet (page 14):

	"CONTROL BANK MAPPING
	 Control of the LM3533's current sinks is not done directly, but
	 through the programming of Control Banks. The current sinks are
	 then assigned to the programmed Control Bank. This allows for
	 a wide variety of current control possibilities where LEDs can
	 be grouped and controlled via specific Control Banks (see
	 Figure 3)."

It is the control banks that has a brightness settings or can be
programmed to blink, that is, they correspond to the logical LEDs and
backlights.

Assigning a current sink to a control bank corresponds, then, to
setting, for example, output_lvled3 to (led) 1.

[ Figure 3 on page 16 of the data sheet may be instructive. In the
  figure,  BANK A and B corresponds to the two backlight devices, and
  BANK C through F corresponds to the four led devices. Note that there
  are more outputs (current sinks) than control banks. ]

Thanks,
Johan
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel


[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux