[Skiboot] [PATCH 14/22] FSP/LEDS: Add device tree nodes
Stewart Smith
stewart at linux.vnet.ibm.com
Mon Feb 16 16:04:51 AEDT 2015
Vasant Hegde <hegdevasant at linux.vnet.ibm.com> writes:
> 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";
> compatible = "ibm,opal-v3-led";
> led-loc = "descendent";
> phandle = <0x1000006f>;
> linux,phandle = <0x1000006f>;
> };
>
> <snip>
> };
> };
Please add something to doc/device-tree/ describing changes.
More information about the Skiboot
mailing list