summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/power/apple,pmgr-pwrstate.yaml (follow)
Commit message (Collapse)AuthorAgeFilesLines
* dt-bindings: power: apple,pmgr-pwrstate: Add apple,min-state propHector Martin2021-12-121-0/+8
| | | | | | | | | A few devices (DCP/DCPEXT) need to have the minimum power state for auto-PM configured. Add a property that allows the DT to specify this value. Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Hector Martin <marcan@marcan.st>
* dt-bindings: power: Add apple,pmgr-pwrstate bindingHector Martin2021-12-071-0/+71
This syscon child node represents a single SoC device controlled by the PMGR block. This layout allows us to declare all device power state controls (power/clock gating and reset) in the device tree, including dependencies, instead of hardcoding it into the driver. The register layout is uniform. Each pmgr-pwrstate node provides genpd and reset features, to be consumed by downstream device nodes. Future SoCs are expected to use backwards compatible registers, and the "apple,pmgr-pwrstate" represents any such interfaces (possibly with additional features gated by the more specific compatible), allowing them to be bound without driver updates. If a backwards incompatible change is introduced in future SoCs, it will require a new compatible, such as "apple,pmgr-pwrstate-v2". Reviewed-by: Mark Kettenis <kettenis@openbsd.org> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Hector Martin <marcan@marcan.st>