[PATCH v2 0/2] LED interface for PowerNV platform
Vasant Hegde
hegdevasant at linux.vnet.ibm.com
Fri Mar 20 22:02:37 AEDT 2015
The following series implements LED driver for PowerNV platform.
PowerNV platform has below type of indicators:
- System attention indicator (Check log indicator)
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.
On PowerNV (Non Virtualized) platform OPAL firmware provides LED
information to host via device tree (location code and LED type).
During init we check for 'ibm,opal/led' node in device tree to
enable LED driver. And we use OPAL API's to get/set LEDs.
patch 1/2: PowerNV architecture specific code. This adds necessary
OPAL APIs.
patch 2/2 is actual LED driver implemenation for PowerNV platform.
changes in v2:
- Rebased patches on top of mpe's next branch
https://git.kernel.org/cgit/linux/kernel/git/mpe/linux.git/log/?h=next
- Added System Attention Indicator support
- Removed redundant code in leds-powernv.c file
---
Anshuman Khandual (2):
powerpc/powernv: Add OPAL interfaces for accessing and modifying system LED states
leds/powernv: Add driver for PowerNV platform
arch/powerpc/include/asm/opal-api.h | 29 +
arch/powerpc/include/asm/opal.h | 5
arch/powerpc/platforms/powernv/opal-wrappers.S | 2
arch/powerpc/platforms/powernv/opal.c | 12
drivers/leds/Kconfig | 9
drivers/leds/Makefile | 1
drivers/leds/leds-powernv.c | 620 ++++++++++++++++++++++++
7 files changed, 676 insertions(+), 2 deletions(-)
create mode 100644 drivers/leds/leds-powernv.c
--
Vasant
Signature
More information about the Linuxppc-dev
mailing list