From b25e34639cc6410c9e0cdb08808415f548bc00bb Mon Sep 17 00:00:00 2001 From: Vasant Hegde Date: Mon, 6 Apr 2015 14:01:34 +0530 Subject: hdata: Detect LED mode and populate device tree FSP based machine supports two different LED modes: - Light Path : Both identify and fault LEDs are supported - Guiding Light: Only identify LEDs are supported And this information is passed to OPAL via HDAT. Lets parse this and populate the device tree. Later LED driver uses this information to populate indivisual LED node. Device Tree property: /ibm,opal/led/led-mode : lightpath/guidinglight Signed-off-by: Vasant Hegde Signed-off-by: Stewart Smith --- doc/device-tree/ibm,opal/led.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'doc/device-tree') diff --git a/doc/device-tree/ibm,opal/led.txt b/doc/device-tree/ibm,opal/led.txt index faff1e85..2ce6946f 100644 --- a/doc/device-tree/ibm,opal/led.txt +++ b/doc/device-tree/ibm,opal/led.txt @@ -8,6 +8,7 @@ led { compatible = "ibm,opal-v3-led"; phandle = <0x1000006b>; linux,phandle = <0x1000006b>; + led-mode = "lightpath"; U78C9.001.RST0027-P1-C1 { led-types = "identify", "fault"; @@ -21,6 +22,8 @@ led { 'compatible' property describes LEDs compatibility. +'led-mode' property describes service indicator mode (lightpath/guidinglight). + Each node under 'led' node describes location code of FRU/Enclosure. The properties under each node: -- cgit v1.2.1