alistair23-linux/drivers/leds
Magnus Damm f59b6f9f32 leds: Renesas TPU LED driver
Add V2 of the LED driver for a single timer channel for the TPU hardware
block commonly found in Renesas SoCs.

The driver has been written with optimal Power Management in mind, so to
save power the LED is driven as a regular GPIO pin in case of maximum
brightness and power off which allows the TPU hardware to be idle and
which in turn allows the clocks to be stopped and the power domain to be
turned off transparently.

Any other brightness level requires use of the TPU hardware in PWM mode.
TPU hardware device clocks and power are managed through Runtime PM.
System suspend and resume is known to be working - during suspend the LED
is set to off by the generic LED code.

The TPU hardware timer is equipeed with a 16-bit counter together with an
up-to-divide-by-64 prescaler which makes the hardware suitable for
brightness control.  Hardware blink is unsupported.

The LED PWM waveform has been verified with a Fluke 123 Scope meter on a
sh7372 Mackerel board.  Tested with experimental sh7372 A3SP power domain
patches.  Platform device bind/unbind tested ok.

V2 has been tested on the DS2 LED of the sh73a0-based AG5EVM.

[axel.lin@gmail.com: include linux/module.h]
Signed-off-by: Magnus Damm <damm@opensource.se>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: Richard Purdie <rpurdie@rpsys.net>
Cc: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-10-31 17:30:54 -07:00
..
dell-led.c
Kconfig leds: Renesas TPU LED driver 2011-10-31 17:30:54 -07:00
led-class.c leds: support automatic start of blinking with ledtrig-timer 2011-05-25 08:39:49 -07:00
led-core.c
led-triggers.c
leds-88pm860x.c mfd: Use mfd cell platform_data for 88pm860x cells platform bits 2011-05-26 19:45:12 +02:00
leds-adp5520.c
leds-ams-delta.c leds: add missing include of linux/module.h 2011-08-25 16:25:34 -07:00
leds-asic3.c leds: Add ASIC3 LED support 2011-05-26 19:45:46 +02:00
leds-atmel-pwm.c
leds-bd2802.c drivers/leds/leds-bd2802.c: bd2802_unregister_led_classdev() should unregister all registered leds 2011-08-25 16:25:35 -07:00
leds-clevo-mail.c
leds-cobalt-qube.c
leds-cobalt-raq.c
leds-da903x.c
leds-dac124s085.c
leds-fsg.c
leds-gpio-register.c leds: provide helper to register "leds-gpio" devices 2011-05-25 08:39:51 -07:00
leds-gpio.c leds: remove config option LEDS_GPIO_PLATFORM from Kconfig 2011-06-03 12:14:16 -06:00
leds-hp6xx.c leds: add missing include of linux/module.h 2011-08-25 16:25:34 -07:00
leds-lm3530.c arch/arm/mach-ux500/board-u5500.c: calibrate ALS input voltage 2011-07-25 20:57:15 -07:00
leds-locomo.c
leds-lp3944.c
leds-lp5521.c drivers/leds/leds-lp5521.c: provide section tagging 2011-07-25 20:57:15 -07:00
leds-lp5523.c drivers/leds/leds-lp5523.c: fix section mismatches 2011-06-27 18:00:13 -07:00
leds-lt3593.c
leds-mc13783.c mfd: Use mfd cell platform_data for mc13xxx cells platform bits 2011-05-26 19:45:07 +02:00
leds-net48xx.c
leds-net5501.c
leds-netxbig.c
leds-ns2.c
leds-pca955x.c
leds-pca9532.c drivers/leds/leds-pca9532.c: change driver name to be unique 2011-07-08 21:14:44 -07:00
leds-pwm.c
leds-rb532.c
leds-regulator.c leds/leds-regulator.c: fix handling of already enabled regulators 2011-04-14 16:06:54 -07:00
leds-renesas-tpu.c leds: Renesas TPU LED driver 2011-10-31 17:30:54 -07:00
leds-s3c24xx.c
leds-ss4200.c
leds-sunfire.c drivers/leds/leds-sunfire.c: fix sunfire_led_generic_probe() error handling 2011-07-25 20:57:15 -07:00
leds-wm831x-status.c
leds-wm8350.c Fix common misspellings 2011-03-31 11:26:23 -03:00
leds-wrap.c
leds.h leds: support automatic start of blinking with ledtrig-timer 2011-05-25 08:39:49 -07:00
ledtrig-backlight.c
ledtrig-default-on.c
ledtrig-gpio.c
ledtrig-heartbeat.c
ledtrig-ide-disk.c
ledtrig-timer.c drivers/leds/ledtrig-timer.c: fix broken sysfs delay handling 2011-09-14 18:09:38 -07:00
Makefile leds: Renesas TPU LED driver 2011-10-31 17:30:54 -07:00