From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796321963; b=0AEabNn00fIbfyPw/94i80ZiOUTJRi+OGw2q3oEVD3/k10GtsCKEJhwnH6N4akyDzwKX dWK6IANmzx94IBphwiunX4xicP/zpesW77Y64sJCESn/70nHhYR5ykUvZ0wYi9M113Q/f dRH2PasTIpY1R7wpB99qzDrX0/Pe2Sqd9CBAfnvTxAMYsCOCFedC736v7LGL5RFi7f6ds Ahfn2lC0ubvu6O4nuICYbZOq656Z4xIy9W8ew3/axzDXF8e7UrMES/LsR9lFOIgM9nHEy CDn5+oYYh3sDfcJQ8Ut0VX0U/+460+T8UN2wszEvH2hP0tSgoB9vjDgMHOoZ9fobG+Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796321963; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=QGC6HSooa2b436CVMZbaD4lejzurNTdbdk2xKaMES8A=; b=1CPWrSE0+ycdQwXDpgIjV5aVsnJGeLjUaDTPwbhcPeSYP8fwGrw46tP7O7K4lgk5nTAV NDt2170zHQuKAf3Ae3LWvueJfruHuxiV1pcY8pgFxkOdEGWbO71EI0KgedUgvvxmODfgS sgyw5qWMUb+z3RqPDmK9/QNpGZWh2li4ewNQNKz3gIrIYPtT4X9vLTtMt5ZweRVFVa2hw t5IupqWBkYCj7XmY8XUN9WOo/Beb/Ot7JIGcRPw97EW7dFRaw8E/bOK0BZiiBuVtiDGtU VRmI8JlN6IBHzfCs2Cmkug1PjDME4XDhdgaW3DIuwbTpiLFDSh5ZuHpCxAsWbu9a3/A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=UYe5eyPP; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CE8B0606A322 for ; Thu, 3 Dec 2026 18:19:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=UYe5eyPP Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3BC1C1F000C1; Thu, 3 Dec 2026 18:19:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796321963; bh=QGC6HSooa2b436CVMZbaD4lejzurNTdbdk2xKaMES8A=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=UYe5eyPP0oMR8YnlWXIBIJF1BvBbqETBGDn7/fUCiyc1G9O3eHSLd3jvi/ELUBtyi 9XbBT8V9QO3R9Hs0oWlGIMcHO2s7allx+esOFelFnXavl6dYvSNBWDjgNt0E/OaKru YBDJnMvSitTzAQ+XV0zWP31UxLWBmamhlMG04430AnGox2qmZi8AitZTHKIUxx/MyO WsaQjs0XfQ9k4WK8Rvn+QPcB78ClYMboLhHOlfNm7YkXxymEiRV0ZwxkGEaw6BJ9w6 LZHIsqUQS4nW2hUZkFZrQHRk4nLmbGqmqiECf/XrvI6i3yS6V4mg/hCpBlbqufd3kb u1VrdwLeY3Dmw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v3 1/7] dt-bindings: power: st: add STM32MP PM domain Reply-To: sashiko-reviews@lists.linux.dev To: "Patrick Delaunay" Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261203181556.v3.1.If3d55e03486413ca40ac73f9bf07046e76a00f0a@changeid> References: <20261203171721.1525015-1-patrick.delaunay@foss.st.com> <20261203181556.v3.1.If3d55e03486413ca40ac73f9bf07046e76a00f0a@changeid> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 18:19:22 +0000 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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 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 domai= n are > + not powered by VDD_CPU and are wake-up capable in Stop1 low power mode= s. > + > + 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 =3D "st,stm32mp-pm-domain"; > + #power-domain-cells =3D <0>; > + power-domains =3D <&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 --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203171721.1525= 015-1-patrick.delaunay@foss.st.com?part=3D1