forked from openbmc/linux
-
Notifications
You must be signed in to change notification settings - Fork 2
alert_L module for handling oob alerts #143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
c1cb127
misc: amd-apml: Create common header for sbtsi device
akky16 a6950df
misc: amd-apml: Add support for AMD APML Alert_L platform driver
akky16 4f95638
arm64: dts: aspeed: Alert_L changes for Morocco & Congo
sathyapk ba78da2
arm64: dts: aspeed: Alert_L changes for Kenya & Nigeria
sathyapk f92762f
dt-bindings: misc: apml-alertl: Add APML Alert_L bindings
akky16 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
63 changes: 63 additions & 0 deletions
63
Documentation/devicetree/bindings/misc/amd,apml-alertl.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
| %YAML 1.2 | ||
| --- | ||
| $id: http://devicetree.org/schemas/hwmon/amd,apml-alertl.yaml# | ||
| $schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
|
||
| title: > | ||
| Sideband Remote Management Interface (SB-RMI) compliant | ||
| AMD APML Alert_L GPIO. | ||
|
|
||
| maintainers: | ||
| - Akshay Gupta <Akshay.Gupta@amd.com> | ||
|
|
||
| description: | | ||
| Processors from AMD provide APML ALERT_L for BMC users to | ||
| monitor events. | ||
| APML Alert_L is asserted in multiple events, | ||
| - Machine Check Exception occurs within the system | ||
| - The processor alerts the SBI on system fatal error event | ||
| - Set by hardware as a result of a 0x71/0x72/0x73 command completion | ||
| - Set by firmware to indicate the completion of a mailbox operation | ||
| - High/Low Temperature Alert | ||
|
|
||
| APML Alert_L module define uevents to notify userspace of the | ||
| alert event. | ||
|
|
||
| properties: | ||
| compatible: | ||
| const: apml-alertl | ||
|
|
||
| gpio: | ||
| maxItems: 1 | ||
| description: | | ||
| GPIO specifier for APML Alert_L line. Specify GPIO controller, GPIO pin | ||
| and polarity. | ||
|
|
||
| sbrmi: | ||
| $ref: /schemas/types.yaml#/definitions/phandle | ||
| description: ref amd,sbrmi.yaml | ||
|
|
||
| sbtsi: | ||
| $ref: /schemas/types.yaml#/definitions/phandle | ||
| description: ref amd,sbtsi.yaml | ||
|
|
||
| required: | ||
| - compatible | ||
| - gpio | ||
| - sbrmi | ||
mahkurap marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| - sbtsi | ||
mahkurap marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| additionalProperties: false | ||
|
|
||
| examples: | ||
| - | | ||
| /* Alert_L associated with Socket 0 */ | ||
| alertl_sock0 { | ||
| compatible = "apml-alertl"; | ||
| status = "okay"; | ||
| gpios = <<pi0_gpio 20 GPIO_ACTIVE_LOW>; | ||
| sbrmi = <&sbrmi_p0_iod0>; | ||
| sbtsi = <&sbtsi_p0_iod0>; | ||
| }; | ||
| ... | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -907,6 +907,17 @@ | |
| #endif | ||
| }; | ||
|
|
||
| / { | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Commit message : start with ARM64:dts:aspeed:
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||
| /* Alert_L associated with socket 0 */ | ||
| alertl_sock0 { | ||
| compatible = "apml-alertl"; | ||
| status = "okay"; | ||
| gpios = <<pi0_gpio 20 GPIO_ACTIVE_LOW>; | ||
| sbrmi = <&sbrmi_p0_iod0>; | ||
| sbtsi = <&sbtsi_p0_iod0>; | ||
| }; | ||
| }; | ||
|
|
||
| #ifdef I3C_HUB | ||
|
|
||
| #define JESD300_SPD_I3C_MODE(bus, index, addr) \ | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commit message Please align with upstream style : dt-bindings: misc: apml-alert
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done