summaryrefslogtreecommitdiffstats
path: root/parse_led.py
Commit message (Collapse)AuthorAgeFilesLines
* Throw error if priority of any LED is not same across all groupsVishwanatha Subbanna2017-06-191-4/+20
| | | | | | | | | | | | An LED can be part of any number of groups. It is a requirement that the priority of that particular LED is same in all the groups where that LED is a member. If the input yaml file does not conform to this requirement, compilation should fail. Change-Id: I187730e835521d14564495cbe52eb139fc1bd264 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* LEDS: Provide support to override the default Blink priorityVishwanatha Subbanna2017-06-191-2/+3
| | | | | | | | In some cases, it is needed that the Solid-ON action over rules Blink and this patch adds that support. Change-Id: Ib0a88b11142ccef3e39ef0a7c6eb3a037c878bc2 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* parse_led.py: python3 fixesPatrick Williams2017-06-051-13/+8
| | | | | | | | | * iteritems / iterkeys does not exist in python3, use items / keys directly. * Order of dicts cannot be relied on. Change-Id: Ieaf5f58115d4015070d812814d98ca1e58d92ae2 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* LEDS: Handle empty groupVishwanatha Subbanna2017-03-301-0/+5
| | | | | | | | | | | | | | | | | | LED group consists of name and the associated LEDs that need to be actioned on when the group is asserted or de-asserted. However, its not a hard requirement that all the groups must have the associated LEDs if the system does not have the usecase. For example, it is required from the firmware standpoint that the groups "bmc_booted" and "power_on" be present but not all systems may have a mapping LED. So in those cases, the group itself can be in asserted state but without doing anything underneath. Providing this support will make sure that addition of LEDs into those groups if needed in the future are handled seamlessly. Change-Id: I345886a3edbabf11f1e9f5c9de4b9cf28a7c33f6 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* LEDS: Convert group and led names to lower_case_underscoreVishwanatha Subbanna2017-03-281-2/+4
| | | | | | | | | | | | This converts the LED group names and LED names from all formats to lower_case_underscore. Example : fan0IdentifyTest will become fan0_identify_test Fixes openbmc/openbmc#1312 Change-Id: Iffa458d593239eb1cb6be0bcda749260cb01c80d Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Adhere to freedesktop naming convention for service and object pathVishwanatha Subbanna2017-02-161-1/+1
| | | | | | | Fixes openbmc/openbmc#1039 Change-Id: I995168828a187671072f761668c873c2b1936874 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* led_gen: Add an outputdir cmdline optionBrad Bishop2017-02-091-4/+11
| | | | | | | | | The output is currently placed in the same directory as the script. Default instead to cwd, and allow the user to specify so out of tree builds can work. Change-Id: Ia7b94f509e0239f7697634d7a52f22e38d7efc6a Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* led_gen: Run pep8Brad Bishop2017-02-091-5/+14
| | | | | Change-Id: Ifce2040d750254227ebee7af4e46fca029820c83 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Update parse_led.py to accept command line argumentsVishwanatha Subbanna2017-01-251-1/+17
| | | | | | | | | | | Existing parse_led.py had a hardcoded reference to the current directory and the file name 'led.yaml'. This patch introduces changes through which an arbitrary directory and filename can be passed. What would still remain the older way is the generation of led-gen.hpp into the current source directorty Change-Id: I352dadd6aa99ef80192dfca3071357917d4593b8 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Update led manager to consume DutyOn and Period valuesVishwanatha Subbanna2017-01-251-4/+12
| | | | | | | | | Previous code only considered the Name and Action for the LED but then DutyOn and Period are also the properties that are associated with LED and this patchset handles that. Change-Id: Ifb57719ed3bcf01a4704618089d9ce676e4b951c Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Enable gtest for testing LED set operationsVishwanatha Subbanna2017-01-171-4/+4
| | | | | | | | This patchset enables gtest to allow different combinations of LED set operations to be verified at build time. Change-Id: I9c2ddf82c2e23be911233b23037ee44e3ce301db Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Use generated bindings for Led Group managerVishwanatha Subbanna2016-12-151-3/+3
| | | | | | | | This extends generated sdbusplus interface and provides implementation for handling LED group operations. Change-Id: I9e6f83f2f801de24d33937bc651228b1c0ccdc37 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Add methods to driving the LEDsVishwanatha Subbanna2016-12-131-5/+7
| | | | | | | | | | This enables creating custom groups and participating LEDs so that it can later be generated from MRW. For each of the group, a dbus object is created which will announce LED actions. Corresponding groups are asserted / de-asserted based on user input. Change-Id: I7e64bea13767b8d083dd946f4cf3aeb37e62ff17 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Add LED grouping supportVishwanatha Subbanna2016-11-211-0/+27
This enables creating custom groups and participating LEDs so that it can later be generated from MRW. For each of the group, a dbus object is created which will announce LED actions. Fixes openbmc/openbmc#550 Change-Id: I7a56d08755288dcfce45ee4c6d6b6c5e5aa454f7 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
OpenPOWER on IntegriCloud