Re: [RESEND PATCH 1/7] dt-bindings: power: st: add STM32MP PM domain binding

From: Krzysztof Kozlowski

Date: Mon Nov 23 2026 - 06:11:56 EST


On Mon, Nov 16, 2026 at 11:40:26AM +0100, Patrick Delaunay wrote:
> Add binding documentation for the power domains found on
> STMicroelectronics STM32MP SoCs.

A nit, subject: drop second/last, redundant "binding". The
"dt-bindings" prefix is already stating that these are bindings.
See also:
https://elixir.bootlin.com/linux/v7.1-rc7/source/Documentation/devicetree/bindings/submitting-patches.rst#L23

>
> Signed-off-by: Patrick Delaunay <patrick.delaunay@xxxxxxxxxxx>
> ---
>
> .../bindings/power/st,stm32mp-pm-domain.yaml | 46 +++++++++++++++++++
> 1 file changed, 46 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/power/st,stm32mp-pm-domain.yaml
>
> diff --git a/Documentation/devicetree/bindings/power/st,stm32mp-pm-domain.yaml b/Documentation/devicetree/bindings/power/st,stm32mp-pm-domain.yaml
> new file mode 100644
> index 000000000000..4ab477fb4499
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/power/st,stm32mp-pm-domain.yaml
> @@ -0,0 +1,46 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/power/st,stm32mp-pm-domain.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: STM32MP generic power domain
> +
> +maintainers:
> + - Patrick Delaunay <patrick.delaunay@xxxxxxxxxxx>
> +
> +allOf:
> + - $ref: /schemas/power/power-domain.yaml#
> +
> +description: |
> + The STM32MP SoCs contain a D1 domain which defines the devices assigned to
> + Cortex A cluster, the devices in this domain are functional only when this
> + cluster is not in low power modes (Stop modes) with clock OFF.
> +
> + This PM domain node represents this dependency, based on PM framework and
> + without wake-up path support.
> +
> +properties:
> + compatible:
> + const: st,stm32mp-pm-domain
> +
> + '#power-domain-cells':
> + const: 0
> +
> + power-domains:
> + maxItems: 1

I don't get the purpose of this binding. There are no resources here, so
this looks like fake intermediary (meaning: non-controllable). Why the devices cannot reference
final domain?

> +
> +additionalProperties: false

this goes after required block.

> +
> +required:
> + - compatible
> + - '#power-domain-cells'
> + - power-domains
> +
> +examples:
> + - |
> + power-domain-d1 {

Node names should be generic. See also an explanation and list of
examples (not exhaustive) in DT specification:
https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation
If you cannot find a name matching your device, please check in kernel
sources for similar cases or you can grow the spec (via pull request to
DT spec repo).


Best regards,
Krzysztof