OSDN Git Service

dt-bindings: power: Add apple,pmgr-pwrstate binding
authorHector Martin <marcan@marcan.st>
Wed, 24 Nov 2021 07:34:16 +0000 (16:34 +0900)
committerHector Martin <marcan@marcan.st>
Tue, 7 Dec 2021 04:04:08 +0000 (13:04 +0900)
commite8117f85b95b932069b9db73ccb3ee973ade2fc9
treef327dce7b419389854576c1b279f00769c1cdd93
parentbd4d13ed210a6d3aadaaa9c93ee7e0671579cd10
dt-bindings: power: Add apple,pmgr-pwrstate binding

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>
Documentation/devicetree/bindings/power/apple,pmgr-pwrstate.yaml [new file with mode: 0644]