On Mon, 11 Jul 2011 17:03:28 +0300 Felipe Balbi <balbi@xxxxxx> wrote: > Hi, > > On Mon, Jul 11, 2011 at 03:51:23PM +0200, Michael Büsch wrote: > > On Mon, 11 Jul 2011 16:45:53 +0300 > > Felipe Balbi <balbi@xxxxxx> wrote: > > > > > On Mon, Jul 11, 2011 at 03:41:26PM +0200, Michael Büsch wrote: > > > > On Mon, 11 Jul 2011 16:12:32 +0300 > > > > Felipe Balbi <balbi@xxxxxx> wrote: > > > > > > Are you planning to implement a backlight driver for tahvo? I'm actually > > > > > > using the functionality that you removed in this patchset in the OpenWRT > > > > > > distribution. > > > > > > > > > > if you have some extra documentation available, I could implement it > > > > > whenever I have some extra couple hours to play with this again... I > > > > > have no docs at all, but a led-tahvo.c would be really simple to get > > > > > done :-) > > > > > > > > All I have is the old code. No docs. It seems rather simple, though. > > > > Only a PWM register. That's pretty straightforward. > > > > > > cool, any pointers would be good ;-) > > > > Pointers to what? How PWM works? > > http://en.wikipedia.org/wiki/Pulse_width_modulation > > > > You probably don't need to know the details, though. > > Just write a 0 to the register to turn the LED off. And write > > a 0xF (or 0x7F depending on tahvo revision) to the register to > > turn it fully on. Any value in between to dim the LED. > > no, not to PWM... pointers to the code using the old interface ;-) Oh, got it now. :D This patch connects the tahvo backlight API to the MIPID/omapfb backlight API: https://dev.openwrt.org/browser/trunk/target/linux/omap24xx/patches-2.6.38/820-backlight-fixes.patch The actual backlight control is done in userspace: http://bues.ch/gitweb?p=pwrtray.git;a=summary http://bues.ch/gitweb?p=pwrtray.git;a=blob;f=backend/backlight_omapfb.c;hb=HEAD -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html