All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Patrick Delaunay" <patrick.delaunay@foss.st.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v3 1/7] dt-bindings: power: st: add STM32MP PM domain
Date: Thu, 03 Dec 2026 18:19:22 +0000	[thread overview]
Message-ID: <sashiko-outbox-248367@kernel.org> (raw)
In-Reply-To: <20261203181556.v3.1.If3d55e03486413ca40ac73f9bf07046e76a00f0a@changeid>

Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Medium] dt-bindings: power: st: resource-less virtual
  power-controller node in DT
- [Low] dt-bindings: power: st: generic family compatible
  st,stm32mp-pm-domain
--

commit 972218ae1b021da75a049c0fa22e93c28248970a
Author: Patrick Delaunay <patrick.delaunay@foss.st.com>

dt-bindings: power: st: add STM32MP PM domain

This commit adds a Device Tree binding schema for the STM32MP D1 power
domain, modeling the RCC clock dependency of CPU1 peripherals on the PSCI
cluster power domain.

> 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 0000000000000..b4118e1e5a38f
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/power/st,stm32mp-pm-domain.yaml
> @@ -0,0 +1,48 @@

[ ... ]

> +description: |
> +  The STM32MP SoCs contain a D1 domain for PWR and RCC, which defines the
> +  devices assigned by RIFSC to CPU1, the Cortex A cluster powered by VDD_CPU.
> +  the devices in this domain are functional and clocked by RCC only when the
> +  cluster domain is active, not in Idle state. The devices in this domain are
> +  not powered by VDD_CPU and are wake-up capable in Stop1 low power modes.
> +
> +  This power domain node represents this dependency (see PWR table
> +  "Functionalities depending on system operating mode").
> +
> +properties:
> +  compatible:
> +    const: st,stm32mp-pm-domain

[Severity: Low]
Should this binding use a SoC-specific compatible string instead of the
generic family name st,stm32mp-pm-domain?

Documentation/devicetree/bindings/writing-bindings.rst prohibits
device-family names in compatible strings and requires SoC-specific ones
(like st,stm32mp25-rcc and st,stm32mp25-rifsc), so future SoC differences
can be distinguished in the DT ABI.

The description also attributes STM32MP2-specific hardware (RIFSC, D1,
VDD_CPU) to all STM32MP SoCs, whereas STM32MP13x and STM32MP15x use
Cortex-A7 and ETZPC.  If kept, using a SoC-specific compatible such as
st,stm32mp25-pm-domain and scoping the text to STM32MP2x avoids both issues.

> +
> +  '#power-domain-cells':
> +    const: 0
> +
> +  power-domains:
> +    maxItems: 1
> +
> +required:
> +  - compatible
> +  - '#power-domain-cells'
> +  - power-domains
> +
> +additionalProperties: false
> +
> +examples:
> +  - |
> +    power-controller {
> +      compatible = "st,stm32mp-pm-domain";
> +      #power-domain-cells = <0>;
> +      power-domains = <&cluster_pd>;
> +    };

[Severity: Medium]
As reported by Krzysztof Kozlowski on v1 [1], does this binding introduce a
resource-less virtual power-controller node in DT solely to work around
Linux genpd wakeup handling?

The node has no hardware resources (no reg, clocks, resets, or supplies)
and controls no power switch; it only wraps cluster_pd to avoid
GENPD_FLAG_ACTIVE_WAKEUP set by psci_pd_init().  This commits a virtual
node into the permanent DT ABI, contrary to writing-bindings.rst.

Could the existing RCC node provide this power domain if the dependency
belongs to RCC, or could out-of-band wakeup signaling via
device_out_band_wakeup() in genpd_finish_suspend() handle EXTI1 wakeup on
cluster_pd directly?

[1] https://lore.kernel.org/r/20261123-pretty-strict-caracara-bfcaac@quoll

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261203171721.1525015-1-patrick.delaunay@foss.st.com?part=1

  reply	other threads:[~2026-12-03 18:19 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03 17:15 [PATCH v3 0/7] arm64: dts: st: add STM32MP2 power domains Patrick Delaunay
2026-12-03 17:15 ` [PATCH v3 1/7] dt-bindings: power: st: add STM32MP PM domain Patrick Delaunay
2026-12-03 18:19   ` sashiko-bot [this message]
2026-12-03 17:16 ` [PATCH v3 2/7] pmdomain: st: add STM32MP power domain Patrick Delaunay
2026-12-03 17:16 ` [PATCH v3 3/7] MAINTAINERS: add entry for ST STM32 power domain driver Patrick Delaunay
2026-12-03 17:16 ` [PATCH v3 4/7] arm64: dts: st: add D1 domain for STM32MP25 family Patrick Delaunay
2026-12-03 19:08   ` sashiko-bot
2026-12-03 17:16 ` [PATCH v3 5/7] arm64: dts: st: fix power-domain labels DT coding style in STM32MP25 Patrick Delaunay
2026-12-03 17:16 ` [PATCH v3 6/7] arm64: dts: st: add D1 domain for STM32MP23 family Patrick Delaunay
2026-12-03 19:29   ` sashiko-bot
2026-12-03 17:16 ` [PATCH v3 7/7] arm64: dts: st: add power domains for STM32MP21 family Patrick Delaunay
2026-12-03 19:54   ` sashiko-bot

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=sashiko-outbox-248367@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=patrick.delaunay@foss.st.com \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.