#
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 ...
|
#
d36b6b1d |
| 16-Aug-2024 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: re-format for clang-18
clang-format-18 isn't compatible with the clang-format-17 output, so we need to reformat the code with the latest version. The way clang-18 handles lambda forma
clang-format: re-format for clang-18
clang-format-18 isn't compatible with the clang-format-17 output, so we need to reformat the code with the latest version. The way clang-18 handles lambda formatting also changed, so we have made changes to the organization default style format to better handle lambda formatting.
See I5e08687e696dd240402a2780158664b7113def0e for updated style. See Iea0776aaa7edd483fa395e23de25ebf5a6288f71 for clang-18 enablement.
Change-Id: Ic25904c3a6dc2d09cc28cabff14e4ba4c8dc8397 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
0d6d74c8 |
| 17-Aug-2023 |
Patrick Williams <patrick@stwcx.xyz> |
serial-uart-mux: use non-deprecated sdbusplus-client names
The generated sdbus++ bindings have SDBUSPP_REMOVE_DEPRECATED_NAMESPACE as a guard around the type that was previously used. Use the non-d
serial-uart-mux: use non-deprecated sdbusplus-client names
The generated sdbus++ bindings have SDBUSPP_REMOVE_DEPRECATED_NAMESPACE as a guard around the type that was previously used. Use the non-deprecated name to future-proof this code.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I47ed9660284c67c618224d034120063dfb86c6d0
show more ...
|
#
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 ...
|
#
0d038f58 |
| 10-May-2023 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest .clang-format from the docs repository and reformat the repository.
Change-Id: Iad285e60cad29e025a02d0c0cabcb76fe593b5cf 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 ...
|