aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorVasant Hegde <hegdevasant@linux.vnet.ibm.com>2015-03-08 16:12:47 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-03-20 02:29:07 +1100
commit4abc10f25e39547f3def70cd5b72407e1cc4ee0d (patch)
tree9a2ef92a7b6e1425186e4b034a86ef0eaaa26162 /doc
parentc3137a50fb71a253e16b56bb92f62591f288552d (diff)
downloadskiboot-4abc10f25e39547f3def70cd5b72407e1cc4ee0d.zip
skiboot-4abc10f25e39547f3def70cd5b72407e1cc4ee0d.tar.gz
skiboot-4abc10f25e39547f3def70cd5b72407e1cc4ee0d.tar.bz2
FSP/LEDS: Add device tree nodes
This patch creates a parent LED device node called 'led' under the root 'opal' device node. This also creates child device nodes under 'led' corresponding to all individual LEDs on the system whether it is an enclosure type or a descendant type with their location code as name. The location code information will be used by the host to enlist and access all the individual LEDs present on the system. The child LED device nodes also have the properties 'led-types' and 'led-loc' representing what kind of LEDs present on the same loation code and whether it is an enclosure type LED or a descendant type LED. Sample device tree output: ibm,opal { .. .. led { compatible = "ibm,opal-v3-led"; phandle = <0x1000006b>; linux,phandle = <0x1000006b>; U78C9.001.RST0027-P1-C1 { led-types = "identify", "fault"; led-loc = "descendent"; phandle = <0x1000006f>; linux,phandle = <0x1000006f>; }; <snip> }; }; Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Anshuman Khandual <khandual@linux.vnet.ibm.com> [stewart@linux.vnet.ibm.com: Move create_led_device_nodes to FSP platform.exit] Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/device-tree/ibm,opal/led.txt33
1 files changed, 33 insertions, 0 deletions
diff --git a/doc/device-tree/ibm,opal/led.txt b/doc/device-tree/ibm,opal/led.txt
new file mode 100644
index 0000000..faff1e8
--- /dev/null
+++ b/doc/device-tree/ibm,opal/led.txt
@@ -0,0 +1,33 @@
+Service Indicators (LEDS)
+-------------------------
+
+The 'led' node under 'ibm,opal' lists service indicators available in the
+system and their capabilities.
+
+led {
+ compatible = "ibm,opal-v3-led";
+ phandle = <0x1000006b>;
+ linux,phandle = <0x1000006b>;
+
+ U78C9.001.RST0027-P1-C1 {
+ led-types = "identify", "fault";
+ led-loc = "descendent";
+ phandle = <0x1000006f>;
+ linux,phandle = <0x1000006f>;
+ };
+ ...
+ ...
+};
+
+'compatible' property describes LEDs compatibility.
+
+Each node under 'led' node describes location code of FRU/Enclosure.
+
+The properties under each node:
+
+ led-types : Supported indicators (attention/identify/fault).
+
+ led-loc : enclosure/descendent(FRU) location code.
+
+These LEDs can be accessed through OPAL_LEDS_{GET/SET}_INDICATOR interfaces.
+Refer to doc/opal-api/opal-led-get-set-114-115.txt for interface details.