From: Krzysztof Kozlowski <krzk@kernel.org>
To: Michal Wilczynski <m.wilczynski@samsung.com>,
Guo Ren <guoren@kernel.org>, Fu Wei <wefu@redhat.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Bartosz Golaszewski <brgl@bgdev.pl>,
Philipp Zabel <p.zabel@pengutronix.de>,
Frank Binns <frank.binns@imgtec.com>,
Matt Coster <matt.coster@imgtec.com>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>,
Thomas Zimmermann <tzimmermann@suse.de>,
David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
Paul Walmsley <paul.walmsley@sifive.com>,
Palmer Dabbelt <palmer@dabbelt.com>,
Albert Ou <aou@eecs.berkeley.edu>,
Alexandre Ghiti <alex@ghiti.fr>,
Ulf Hansson <ulf.hansson@linaro.org>,
Marek Szyprowski <m.szyprowski@samsung.com>,
Drew Fustini <fustini@kernel.org>
Cc: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org,
dri-devel@lists.freedesktop.org
Subject: Re: [PATCH v9 2/5] dt-bindings: gpu: img,powervr-rogue: Define power domains per variant
Date: Thu, 31 Jul 2025 17:22:34 +0200 [thread overview]
Message-ID: <67b18009-f607-4200-ba86-2cd7d8812b37@kernel.org> (raw)
In-Reply-To: <20250731-apr_14_for_sending-v9-2-c242dc1ffc14@samsung.com>
On 31/07/2025 15:50, Michal Wilczynski wrote:
> Rework the PowerVR Rogue GPU binding to use an explicit, per variant
> style for defining power domain properties.
>
> The generic `if` block for `img,img-rogue`, is removed. It is replaced
> with self-contained `if/then` blocks for each existing GPU variant. Each
> block now explicitly defines power domain properties and requirements
> for that specific variant, making the rules easier to read and
> maintain.
>
> This addresses feedback from the maintainer to explicitly list items
> for each variant [1].
>
> Link: https://lore.kernel.org/all/4d79c8dd-c5fb-442c-ac65-37e7176b0cdd@linaro.org/ [1]
>
> Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com>
> ---
> .../devicetree/bindings/gpu/img,powervr-rogue.yaml | 36 ++++++++++------------
> 1 file changed, 17 insertions(+), 19 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/gpu/img,powervr-rogue.yaml b/Documentation/devicetree/bindings/gpu/img,powervr-rogue.yaml
> index 4450e2e73b3ccf74d29f0e31e2e6687d7cbe5d65..24ce46ba0b7015fca799f045ee2ccdd258088068 100644
> --- a/Documentation/devicetree/bindings/gpu/img,powervr-rogue.yaml
> +++ b/Documentation/devicetree/bindings/gpu/img,powervr-rogue.yaml
> @@ -57,10 +57,8 @@ properties:
> maxItems: 2
>
> power-domain-names:
> - items:
> - - const: a
> - - const: b
I don't understand why this is being removed. It makes no sense in
context of this patch. Next patch also does not explain that.
This should stay.
> minItems: 1
> + maxItems: 2
>
> dma-coherent: true
>
> @@ -77,18 +75,6 @@ required:
> additionalProperties: false
>
> allOf:
> - # Constraints added alongside the new compatible strings that would otherwise
> - # create an ABI break.
> - - if:
> - properties:
> - compatible:
> - contains:
> - const: img,img-rogue
> - then:
> - required:
> - - power-domains
> - - power-domain-names
> -
> - if:
> properties:
> compatible:
> @@ -97,9 +83,14 @@ allOf:
> then:
> properties:
> power-domains:
> - maxItems: 1
> + items:
> + - description: Power domain A
> power-domain-names:
> - maxItems: 1
> + items:
> + - const: a
This was correct before.
> + required:
> + - power-domains
> + - power-domain-names
This is the only part you actually want to do... and it makes no sense
in context of this patch only. IOW, this should be moved to the next patch.
Best regards,
Krzysztof
next prev parent reply other threads:[~2025-07-31 15:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20250731135017eucas1p164ed17037f4fb2000f3b02ec4e6ae1ff@eucas1p1.samsung.com>
2025-07-31 13:50 ` [PATCH v9 0/5] Add TH1520 GPU support with power sequencing Michal Wilczynski
[not found] ` <CGME20250731135018eucas1p173c5f4a902409cfc3058bc400c4d2b10@eucas1p1.samsung.com>
2025-07-31 13:50 ` [PATCH v9 1/5] drm/imagination: Use pwrseq for TH1520 GPU power management Michal Wilczynski
[not found] ` <CGME20250731135019eucas1p1239902cf5a5a8fa40ea35722e6feb965@eucas1p1.samsung.com>
2025-07-31 13:50 ` [PATCH v9 2/5] dt-bindings: gpu: img,powervr-rogue: Define power domains per variant Michal Wilczynski
2025-07-31 15:22 ` Krzysztof Kozlowski [this message]
[not found] ` <CGME20250731135020eucas1p1e8f286222a03ec9b63a7409ff66c3238@eucas1p1.samsung.com>
2025-07-31 13:50 ` [PATCH v9 3/5] dt-bindings: gpu: img,powervr-rogue: Add TH1520 GPU compatible Michal Wilczynski
2025-07-31 15:28 ` Krzysztof Kozlowski
[not found] ` <CGME20250731135021eucas1p22c5267e560c135038e4175fc18d135aa@eucas1p2.samsung.com>
2025-07-31 13:50 ` [PATCH v9 4/5] riscv: dts: thead: th1520: Add IMG BXM-4-64 GPU node Michal Wilczynski
[not found] ` <CGME20250731135022eucas1p25e396efeb6096c7359a029a775d0f21f@eucas1p2.samsung.com>
2025-07-31 13:50 ` [PATCH v9 5/5] drm/imagination: Enable PowerVR driver for RISC-V Michal Wilczynski
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=67b18009-f607-4200-ba86-2cd7d8812b37@kernel.org \
--to=krzk@kernel.org \
--cc=airlied@gmail.com \
--cc=alex@ghiti.fr \
--cc=aou@eecs.berkeley.edu \
--cc=brgl@bgdev.pl \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=frank.binns@imgtec.com \
--cc=fustini@kernel.org \
--cc=guoren@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=m.szyprowski@samsung.com \
--cc=m.wilczynski@samsung.com \
--cc=maarten.lankhorst@linux.intel.com \
--cc=matt.coster@imgtec.com \
--cc=mripard@kernel.org \
--cc=p.zabel@pengutronix.de \
--cc=palmer@dabbelt.com \
--cc=paul.walmsley@sifive.com \
--cc=robh@kernel.org \
--cc=simona@ffwll.ch \
--cc=tzimmermann@suse.de \
--cc=ulf.hansson@linaro.org \
--cc=wefu@redhat.com \
/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®