aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/leds/Kconfig
diff options
context:
space:
mode:
authorVasant Hegde <hegdevasant@linux.vnet.ibm.com>2015-08-19 12:49:54 -0400
committerMichael Ellerman <mpe@ellerman.id.au>2015-08-20 04:19:07 -0400
commit84ad6e5cd3e8b365c893f31787864cae5500610b (patch)
tree6f95f7329ffe5f1c9466b9699b198efd7d7f1f03 /drivers/leds/Kconfig
parentc159b5968ec9d3cbf16802189b29eb0ec17ae4d8 (diff)
leds/powernv: Add driver for PowerNV platform
This patch implements LED driver for PowerNV platform using the existing generic LED class framework. PowerNV platform has below type of LEDs: - System attention Indicates there is a problem with the system that needs attention. - Identify Helps the user locate/identify a particular FRU or resource in the system. - Fault Indicates there is a problem with the FRU or resource at the location with which the indicator is associated. We register classdev structures for all individual LEDs detected on the system through LED specific device tree nodes. Device tree nodes specify what all kind of LEDs present on the same location code. It registers LED classdev structure for each of them. All the system LEDs can be found in the same regular path /sys/class/leds/. We don't use LED colors. We use LED node and led-types property to form LED classdev. Our LEDs have names in this format. <location_code>:<attention|identify|fault> Any positive brightness value would turn on the LED and a zero value would turn off the LED. The driver will return LED_FULL (255) for any turned on LED and LED_OFF (0) for any turned off LED. The platform level implementation of LED get and set state has been achieved through OPAL calls. These calls are made available for the driver by exporting from architecture specific codes. Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Anshuman Khandual <khandual@linux.vnet.ibm.com> Acked-by: Stewart Smith <stewart@linux.vnet.ibm.com> Tested-by: Stewart Smith <stewart@linux.vnet.ibm.com> Acked-by: Jacek Anaszewski <j.anaszewski@samsung.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'drivers/leds/Kconfig')
-rw-r--r--drivers/leds/Kconfig11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig
index 9ad35f72ab4c..f218cc3acc10 100644
--- a/drivers/leds/Kconfig
+++ b/drivers/leds/Kconfig
@@ -560,6 +560,17 @@ config LEDS_BLINKM
560 This option enables support for the BlinkM RGB LED connected 560 This option enables support for the BlinkM RGB LED connected
561 through I2C. Say Y to enable support for the BlinkM LED. 561 through I2C. Say Y to enable support for the BlinkM LED.
562 562
563config LEDS_POWERNV
564 tristate "LED support for PowerNV Platform"
565 depends on LEDS_CLASS
566 depends on PPC_POWERNV
567 depends on OF
568 help
569 This option enables support for the system LEDs present on
570 PowerNV platforms. Say 'y' to enable this support in kernel.
571 To compile this driver as a module, choose 'm' here: the module
572 will be called leds-powernv.
573
563config LEDS_SYSCON 574config LEDS_SYSCON
564 bool "LED support for LEDs on system controllers" 575 bool "LED support for LEDs on system controllers"
565 depends on LEDS_CLASS=y 576 depends on LEDS_CLASS=y