dt-bindings: chosen: Add "power-state-change-reason" nvmem property #174
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.
Hi all,
I'm proposing a new generic property for the /chosen node to identify
an NVMEM cell containing the last system shutdown/reboot reason. Many
embedded systems record this (e.g., "over-temperature", "brown-out"),
but there's no standard way to pass this location to the OS.
I'm sending this as an RFC patch because I'm uncertain about a few points:
Is the /chosen node the right conceptual place for
this? It feels correct for a global, firmware-provided property,
much like 'stdout-path', but I'd
like to be sure.
Is this the right file to patch (
chosen.yaml)? Or should thisbe defined in a more central NVMEM binding?
Are the '$ref's correct? I'm referencing the existing meta-schema
nvmem.yaml from schema (feels wrong). Is this the standard way to re-use
properties from another schema?
Any feedback on the approach or the implementation would be greatly appreciated.
Thanks,
Oleksij