linux/Documentation/powerpc
Trent Piepho a7d878af94 leds: Add openfirmware platform device support
Add bindings to support LEDs defined as of_platform devices in addition to
the existing bindings for platform devices.

New options in Kconfig allow the platform binding code and/or the
of_platform code to be turned on.  The of_platform code is of course only
available on archs that have OF support.

The existing probe and remove methods are refactored to use new functions
create_gpio_led(), to create and register one led, and delete_gpio_led(),
to unregister and free one led.  The new probe and remove methods for the
of_platform driver can then share most of the common probe and remove code
with the platform driver.

The suspend and resume methods aren't shared, but they are very short.  The
actual led driving code is the same for LEDs created by either binding.

The OF bindings are based on patch by Anton Vorontsov
<avorontsov@ru.mvista.com>.  They have been extended to allow multiple LEDs
per device.

Signed-off-by: Trent Piepho <tpiepho@freescale.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Sean MacLennan <smaclennan@pikatech.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-04-06 16:06:25 +01:00
..
dts-bindings leds: Add openfirmware platform device support 2009-04-06 16:06:25 +01:00
00-INDEX powerpc: Remove outdated Documentation/powerpc/smp.txt 2008-10-07 14:26:19 +11:00
booting-without-of.txt powerpc: Repair device bindings documentation 2008-11-10 15:17:52 -06:00
bootwrapper.txt powerpc/bootwrapper: Add documentation of boot wrapper targets 2008-07-04 00:59:03 -06:00
cpu_features.txt documentation: update header file paths 2009-01-06 15:59:28 -08:00
eeh-pci-error-recovery.txt powerpc: Move include files to arch/powerpc/include/asm 2008-08-04 12:02:00 +10:00
hvcs.txt Fix typos in Documentation/: 'F'-'G' 2006-10-03 22:49:15 +02:00
kvm_440.txt KVM: ppc: PowerPC 440 KVM implementation 2008-04-27 18:21:39 +03:00
mpc52xx.txt Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
phyp-assisted-dump.txt [POWERPC] pseries: phyp dump: Documentation 2008-03-26 08:44:06 +11:00
qe_firmware.txt Documentation cleanup: trivial misspelling, punctuation, and grammar corrections. 2008-07-26 12:00:06 -07:00
sound.txt Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
zImage_layout.txt Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00