Re: RGB LED control (was Re: "advanced" LED controllers)

2015-03-10 Thread Pavel Machek
On Mon 2015-03-09 11:50:56, Måns Rullgård wrote: > Geert Uytterhoeven writes: > > > Hi Pavel, > > > > On Sun, Mar 8, 2015 at 9:57 PM, Pavel Machek wrote: > >> Ok, so I played with RGB LED a bit, and we have quite a gap in > >> documentation: what 50% brightness means is non-trivial and very > >>

Re: RGB LED control (was Re: "advanced" LED controllers)

2015-03-09 Thread Måns Rullgård
Geert Uytterhoeven writes: > Hi Pavel, > > On Sun, Mar 8, 2015 at 9:57 PM, Pavel Machek wrote: >> Ok, so I played with RGB LED a bit, and we have quite a gap in >> documentation: what 50% brightness means is non-trivial and very >> important in case we want to do smooth blinking and color transi

Re: RGB LED control (was Re: "advanced" LED controllers)

2015-03-09 Thread Pavel Machek
On Mon 2015-03-09 09:08:37, Geert Uytterhoeven wrote: > Hi Pavel, > > On Sun, Mar 8, 2015 at 9:57 PM, Pavel Machek wrote: > > Ok, so I played with RGB LED a bit, and we have quite a gap in > > documentation: what 50% brightness means is non-trivial and very > > important in case we want to do smo

Re: RGB LED control (was Re: "advanced" LED controllers)

2015-03-09 Thread Geert Uytterhoeven
Hi Pavel, On Sun, Mar 8, 2015 at 9:57 PM, Pavel Machek wrote: > Ok, so I played with RGB LED a bit, and we have quite a gap in > documentation: what 50% brightness means is non-trivial and very > important in case we want to do smooth blinking and color transitions. > > Signed-off-by: Pavel Mache

RGB LED control (was Re: "advanced" LED controllers)

2015-03-08 Thread Pavel Machek
Ok, so I played with RGB LED a bit, and we have quite a gap in documentation: what 50% brightness means is non-trivial and very important in case we want to do smooth blinking and color transitions. Signed-off-by: Pavel Machek diff --git a/Documentation/ABI/testing/sysfs-class-led b/Documentat

Re: "advanced" LED controllers

2015-03-03 Thread Alexandre Courbot
On Mon, Mar 2, 2015 at 6:21 PM, Pavel Machek wrote: > On Wed 2015-02-25 18:06:07, Alexandre Courbot wrote: >> On Wed, Feb 25, 2015 at 5:25 PM, Geert Uytterhoeven >> wrote: >> > CC linux-gpio, as this looks like the LED equivalent of bulk gpio? >> >> Indeed. The LED core could implement something

Re: "advanced" LED controllers

2015-03-02 Thread Pavel Machek
On Wed 2015-02-25 18:06:07, Alexandre Courbot wrote: > On Wed, Feb 25, 2015 at 5:25 PM, Geert Uytterhoeven > wrote: > > CC linux-gpio, as this looks like the LED equivalent of bulk gpio? > > Indeed. The LED core could implement something similar to > gpiod_set_array() to allow several LEDs to be

Re: "advanced" LED controllers

2015-02-28 Thread Pavel Machek
Hi! On Thu 2015-02-26 10:55:52, NeilBrown wrote: > On Wed, 25 Feb 2015 22:49:41 +0100 Pavel Machek wrote: > > > On Mon 2015-02-23 16:58:36, Felipe Balbi wrote: > > > On Mon, Feb 23, 2015 at 11:34:57PM +0100, Pavel Machek wrote: > > > > On Thu 2015-02-19 15:14:24, Felipe Balbi wrote: > > > > > Hi

Re: "advanced" LED controllers

2015-02-25 Thread NeilBrown
On Wed, 25 Feb 2015 22:49:41 +0100 Pavel Machek wrote: > On Mon 2015-02-23 16:58:36, Felipe Balbi wrote: > > On Mon, Feb 23, 2015 at 11:34:57PM +0100, Pavel Machek wrote: > > > On Thu 2015-02-19 15:14:24, Felipe Balbi wrote: > > > > Hi, > > > > > > > > Do we have support for LED controllers whic

Re: "advanced" LED controllers

2015-02-25 Thread Pavel Machek
On Mon 2015-02-23 16:58:36, Felipe Balbi wrote: > On Mon, Feb 23, 2015 at 11:34:57PM +0100, Pavel Machek wrote: > > On Thu 2015-02-19 15:14:24, Felipe Balbi wrote: > > > Hi, > > > > > > Do we have support for LED controllers which can handle patterns of > > > different kinds ? I mean, currently, i

Re: "advanced" LED controllers

2015-02-25 Thread Alexandre Courbot
On Wed, Feb 25, 2015 at 5:25 PM, Geert Uytterhoeven wrote: > CC linux-gpio, as this looks like the LED equivalent of bulk gpio? Indeed. The LED core could implement something similar to gpiod_set_array() to allow several LEDs to be set in one call. If the controller supports it, it would then set

Re: "advanced" LED controllers

2015-02-25 Thread Geert Uytterhoeven
CC linux-gpio, as this looks like the LED equivalent of bulk gpio? On Thu, Feb 19, 2015 at 10:14 PM, Felipe Balbi wrote: > Do we have support for LED controllers which can handle patterns of > different kinds ? I mean, currently, if we have an LED controller such > as TPIC2810 [1] which can contr

Re: "advanced" LED controllers

2015-02-23 Thread Felipe Balbi
On Mon, Feb 23, 2015 at 11:34:57PM +0100, Pavel Machek wrote: > On Thu 2015-02-19 15:14:24, Felipe Balbi wrote: > > Hi, > > > > Do we have support for LED controllers which can handle patterns of > > different kinds ? I mean, currently, if we have an LED controller such > > as TPIC2810 [1] which c

Re: "advanced" LED controllers

2015-02-23 Thread Pavel Machek
On Thu 2015-02-19 15:14:24, Felipe Balbi wrote: > Hi, > > Do we have support for LED controllers which can handle patterns of > different kinds ? I mean, currently, if we have an LED controller such > as TPIC2810 [1] which can control 8 different leds and each LED > corresponds to one bit on regis

"advanced" LED controllers

2015-02-19 Thread Felipe Balbi
Hi, Do we have support for LED controllers which can handle patterns of different kinds ? I mean, currently, if we have an LED controller such as TPIC2810 [1] which can control 8 different leds and each LED corresponds to one bit on register 0x44, we could control leds by just "playing" a wave fil