mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: Patrick Delaunay <patrick.delaunay@foss.st.com>
Cc: Ulf Hansson <ulfh@kernel.org>, Rob Herring <robh@kernel.org>,
	 Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	 Maxime Coquelin <mcoquelin.stm32@gmail.com>,
	Alexandre Torgue <alexandre.torgue@foss.st.com>,
	 linux-pm@vger.kernel.org, devicetree@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	 linux-kernel@vger.kernel.org,
	linux-stm32@st-md-mailman.stormreply.com
Subject: Re: [RESEND PATCH 1/7] dt-bindings: power: st: add STM32MP PM domain binding
Date: Mon, 23 Nov 2026 12:11:46 +0100	[thread overview]
Message-ID: <20261123-pretty-strict-caracara-bfcaac@quoll> (raw)
In-Reply-To: <20261116114024.RESEND.1.If3d55e03486413ca40ac73f9bf07046e76a00f0a@changeid>

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@foss.st.com>
> ---
> 
>  .../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@foss.st.com>
> +
> +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


  reply	other threads:[~2026-11-23 11:11 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-16 10:40 [RESEND PATCH 0/7] arm64: dts: st: add STM32MP2 power domains Patrick Delaunay
2026-11-16 10:40 ` [RESEND PATCH 1/7] dt-bindings: power: st: add STM32MP PM domain binding Patrick Delaunay
2026-11-23 11:11   ` Krzysztof Kozlowski [this message]
2026-11-16 10:40 ` [RESEND PATCH 2/7] pmdomain: st: add STM32MP power domain Patrick Delaunay
2026-11-16 10:40 ` [RESEND PATCH 3/7] MAINTAINERS: add entry for ST STM32 power domain driver Patrick Delaunay
2026-11-16 10:40 ` [RESEND PATCH 4/7] arm64: dts: st: add D1 domain for STM32MP25 family Patrick Delaunay
2026-11-16 10:40 ` [RESEND PATCH 5/7] arm64: dts: st: fix power-domain labels DT coding style in STM32MP25 Patrick Delaunay
2026-11-16 10:40 ` [RESEND PATCH 6/7] arm64: dts: st: add D1 domain for STM32MP23 family Patrick Delaunay
2026-11-16 10:40 ` [RESEND PATCH 7/7] arm64: dts: st: add power domains for STM32MP21 family Patrick Delaunay

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261123-pretty-strict-caracara-bfcaac@quoll \
    --to=krzk@kernel.org \
    --cc=alexandre.torgue@foss.st.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=linux-stm32@st-md-mailman.stormreply.com \
    --cc=mcoquelin.stm32@gmail.com \
    --cc=patrick.delaunay@foss.st.com \
    --cc=robh@kernel.org \
    --cc=ulfh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®