#
14c1e964 |
| 28-Feb-2025 |
Tan Siewert <tan.siewert@hetzner.com> |
readme: fix gpio config example
Commit eea8a4a5 renamed the group config key from `gpio_config` to `group_gpio_config`. Reading a single GPIO pin is done within the GPIO definition object.
When usi
readme: fix gpio config example
Commit eea8a4a5 renamed the group config key from `gpio_config` to `group_gpio_config`. Reading a single GPIO pin is done within the GPIO definition object.
When using the example, it'll result in a SIGABRT because it fallbacks to the non-group parsing, expecting either a pin or num:
``` Start Phosphor buttons service... terminate called after throwing an instance of 'nlohmann::json_abi_v3_11_3::detail::out_of_range' what(): [json.exception.out_of_range.403] key 'num' not found ```
Tested: Start phosphor-buttons with the new example config does not result in a SIGABRT.
Fixes: eea8a4a5 ("Fix parsing gpio config format issue") Change-Id: I3b7ac1363b998ae3f996c78dda45628e707af95a Signed-off-by: Tan Siewert <tan.siewert@hetzner.com>
show more ...
|
#
31ce375e |
| 08-Nov-2024 |
Rush Chen <rush.chen.wiwynn@gmail.com> |
Support multi power buttons with multi behaviors
For supporting more-than-one power buttons behaviors, add new matches and instances by following json config.
This change is for multiple slots inte
Support multi power buttons with multi behaviors
For supporting more-than-one power buttons behaviors, add new matches and instances by following json config.
This change is for multiple slots integrated on one chassis, and each slot has button to control power status.
For example: /xyz/openbmc_project/Chassis/Buttons/Power01 for button on slot1 /xyz/openbmc_project/Chassis/Buttons/Power02 for button on slot2
Moreover, support multi-level power control by json config, chassis now can do action by corresponding pressing duration.
Tested: Press buttons and check corresponding behaviors.
Change-Id: I7789f0367d5e846dd9e68f966ba0755fc916217a Signed-off-by: Rush Chen <rush.chen.wiwynn@gmail.com>
show more ...
|
#
4c47d4c9 |
| 28-Oct-2024 |
Patrick Williams <patrick@stwcx.xyz> |
README: fix JSON definition
A JSON blob wasn't formatting properly because it was invalid JSON. Repair the JSON and reformat.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I048a221
README: fix JSON definition
A JSON blob wasn't formatting properly because it was invalid JSON. Repair the JSON and reformat.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I048a221ed6e802e39aaf2a7d4d0d93eb97674ca5
show more ...
|
#
010035ee |
| 17-Jun-2024 |
Manojkiran Eda <manojkiran.eda@gmail.com> |
Fix spelling mistakes using codespell
This commit corrects various spelling mistakes throughout the repository. The corrections were made automatically using `codespell`[1] tool.
[1]: https://githu
Fix spelling mistakes using codespell
This commit corrects various spelling mistakes throughout the repository. The corrections were made automatically using `codespell`[1] tool.
[1]: https://github.com/codespell-project/codespell
Change-Id: I7ddcf61ed2d596171384fdb5f0fc1e2feb4240bf Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com>
show more ...
|
#
cb418b0d |
| 16-Jan-2024 |
Jonico Eustaquio <jonico.eustaquio@fii-na.com> |
Adding num key parsing
Currently there is only support for an alphanumeric references that is decoded into a pin number. The "num" keyword supports using the pin number directly (integer). The JSON
Adding num key parsing
Currently there is only support for an alphanumeric references that is decoded into a pin number. The "num" keyword supports using the pin number directly (integer). The JSON key field determines the parsing.
It matches the support for the "num" keyword for the gpio_defs.json seen in skeleton/libobmc_intf. If added along with:
https://gerrit.openbmc.org/c/openbmc/skeleton/+/68883
then "num" could be used for systems that have numerically labeled GPIO pins and have multiple GPIO banks.
Change-Id: Ibf3e432a36c60b650c7f245ee12e5af3a8359664 Signed-off-by: Jonico Eustaquio <jonico.eustaquio@fii-na.com>
show more ...
|
#
9456ffc9 |
| 22-Jun-2023 |
HuyLe <hule@amperecomputing.com> |
Add warm-reboot option support for reset button
Pressing reset button currently issues a reboot transion. However, some platforms might expect to have force warm reboot instead. This commit adds new
Add warm-reboot option support for reset button
Pressing reset button currently issues a reboot transion. However, some platforms might expect to have force warm reboot instead. This commit adds new reset-button-do-warm-reboot option to configure the expected action for reset button on those platforms.
Tested: - By default, on release of reset button, the Host is powered cycle. - Enable reset-button-do-warm-reboot meson option. On release of reset button, the Host is reset while Host power does not change.
Change-Id: I5d5f754f8b848fa0faef97354ef0dab7c47645f4 Signed-off-by: HuyLe <hule@amperecomputing.com>
show more ...
|
#
b748fdb5 |
| 04-Apr-2023 |
Matt Spinler <spinler@us.ibm.com> |
Describe button behavior in the README
Explain what the various button presses do.
Change-Id: I0811e4cd08da0ae9849688d095107950a4d9f1b8 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
|
#
ccd7db05 |
| 09-Feb-2023 |
Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com> |
Support host selector using cpld definitions
Description: - Support host selector using cpld definitions
Design: - Because the current structure only supports config defined by GPIO (Yosemite V2)
Support host selector using cpld definitions
Description: - Support host selector using cpld definitions
Design: - Because the current structure only supports config defined by GPIO (Yosemite V2), but there are also have the system (Yosemite V3.5) gets the host-selector's selection from CPLD.
- So this commit is to extend the current configuration to use CPLD definitions. Also, support adding event io from the register file which was exported from the CLD driver.
- For example with config json below: { "cpld_definitions": [ { "name": "HOST_SELECTOR", "i2c_address": 15, "i2c_bus": 12, "register_name": "uart-selection-debug-card", "max_position": 4 } ] }
Dependency: - CLD driver is required (link: https://lore.kernel.org/lkml/20230117094425.19004-1-Delphine_CC_Chiu@Wiwynn.com/)
Test Case: - When ocp debug card uart button is pressed the position property on dbus is correct.
Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com> Change-Id: I6746afa6d905bd3c681e2921c643b3cd4cb9944c
show more ...
|
#
c7645850 |
| 08-Dec-2022 |
Patrick Williams <patrick@stwcx.xyz> |
markdownlint: fix all warnings
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I7e544b426f83fb62a2b5637feb0b7df573dc02d2
|
#
793f9b85 |
| 08-Dec-2022 |
Patrick Williams <patrick@stwcx.xyz> |
prettier: re-format
Prettier is enabled in openbmc-build-scripts on Markdown, JSON, and YAML files to have consistent formatting for these file types. Re-run the formatter on the whole repository.
prettier: re-format
Prettier is enabled in openbmc-build-scripts on Markdown, JSON, and YAML files to have consistent formatting for these file types. Re-run the formatter on the whole repository.
Change-Id: Icdded708a43b0186f80e7391c323f16e345ac5b4 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
d219fa3c |
| 19-Jul-2022 |
Naveen Moses <naveen.mosess@hcl.com> |
Add serial uart mux interface class
1. This change adds the multi-host serial uart mux interface class.
In a multi-host system when the host position is changed, then the serial uart mux is configu
Add serial uart mux interface class
1. This change adds the multi-host serial uart mux interface class.
In a multi-host system when the host position is changed, then the serial uart mux is configured to enable the respective host's serial console which is accessed via OCP debug card.
2. Introduced two new methods in gpio.cpp setGpioState - set state for gpio fd based on polarity getGpiostate - get state for gpio fd based on polarity
3. Updated the readme file about details on the new gpio configs
design : https://github.com/openbmc/docs/blob/master/designs/multihost-phosphor-buttons.md
Testing : This change is verified in yosemiteV2 platform.
Signed-off-by: Naveen Moses <naveen.mosess@hcl.com> Change-Id: I861d70570650d7dfcab842a35bdcf63a9fdd3bd0
show more ...
|
#
dd5495cf |
| 03-Dec-2021 |
Naveen Moses <naveen.mosess@hcl.com> |
Enable group gpio configuration
This change adds support to configure single as well as group gpio config using a single api(configGroupGpio()). This change is introduced to support the button/input
Enable group gpio configuration
This change adds support to configure single as well as group gpio config using a single api(configGroupGpio()). This change is introduced to support the button/input interfaces which has multiple gpios associated with them.
As an improvement reading of gpio def json file is done once in main function rather than reading it everytime before creating the button interface object.
Signed-off-by: Naveen Moses <naveen.mosess@hcl.com> Change-Id: Ib73dda618c78fd2f14b5d3432fd04c9f4cd2dd9b
show more ...
|