From 4abc10f25e39547f3def70cd5b72407e1cc4ee0d Mon Sep 17 00:00:00 2001 From: Vasant Hegde Date: Sun, 8 Mar 2015 16:12:47 +0530 Subject: 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>; }; }; }; Signed-off-by: Vasant Hegde Signed-off-by: Anshuman Khandual [stewart@linux.vnet.ibm.com: Move create_led_device_nodes to FSP platform.exit] Signed-off-by: Stewart Smith --- include/fsp.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/fsp.h') diff --git a/include/fsp.h b/include/fsp.h index b796bfb7..c9604699 100644 --- a/include/fsp.h +++ b/include/fsp.h @@ -783,6 +783,7 @@ extern void fsp_init_diag(void); /* LED */ extern void fsp_led_init(void); +extern void create_led_device_nodes(void); /* EPOW */ extern void fsp_epow_init(void); -- cgit v1.2.1