summaryrefslogtreecommitdiffstats
path: root/gen_led_groups.pl
Commit message (Collapse)AuthorAgeFilesLines
* Remove LED naming workaroundMatt Spinler2018-02-271-6/+2
| | | | | | | | | | | | | | This workaround didn't use the LED instance name if the LED was associated with a FRU, and used the FRU name instead for the device tree LED name. That won't work in the case that the LED is associated with a FRU but the device tree name already matches the instance name and not the FRU name, so the code must assume that the instance name will match the device tree name. Change-Id: Ifb2b73dcfd6d9d252b418c04a0ebfd1b98ea8e24 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* Fix LED Group definition anomaliesVishwanatha Subbanna2017-07-271-26/+36
| | | | | | | | | | | LED contains a property called Priority. It is a requirement that a given LED has its priority 'same' across all the groups where this LED is a member. There was a bug in the LampTest group, wherein all the LEDs had a forced priority of Blink instead of what is the configured priority. Change-Id: Iaf9b94357d5677265d84e8506431f845dfd32dd5 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* LEDS: Handle action priority propertyVishwanatha Subbanna2017-06-191-0/+14
| | | | | | | | | If a particular LED is asserted with different actions as part of multiple groups, the resulting action needs to be overridden by the action priority set for that LED. Change-Id: I82c7da636c53f16fbc1bd85254b46e0625e3909d Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* LEDS: Create LampTest group containing all the LEDsVishwanatha Subbanna2017-05-171-2/+10
| | | | | | | | | LampTest currently expects all the LEDs to be blinking. Fixes openbmc/openbmc#1288 Change-Id: Idf6728853612f6536e78f0f3c6555379e5b4e1b8 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* LEDS: Create default groups by hand if not defined in MRWVishwanatha Subbanna2017-03-301-1/+20
| | | | | | | | | | | | | Certain LED groups must be present in all systems and they are * BmcBooted * PowerOn If MRW does not define these, then these are to be defined in the script and its fine to have no LEDs mapping to the group. Change-Id: Ic99a019794145c6c2da5b0139198df9435024b93 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Generate LED Group YAML file from MRWVishwanatha Subbanna2017-01-161-0/+272
This PERL parser walks the MRW and generates the YAML file describing the LED group definition. It walks the targetInstances having LED as MRW type and creates groups. It also walks all the Inventory targets and creates the groups for the ones that do not have an associated LED Fixes openbmc/openbmc#803 Change-Id: Ib73358c6e028059ec9a2d92ebcc0b4d5aed4cfb7 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
OpenPOWER on IntegriCloud