From: Matt Coster <Matt.Coster@imgtec.com>
To: Marek Vasut <marek.vasut+renesas@mailbox.org>
Cc: Adam Ford <aford173@gmail.com>,
Conor Dooley <conor+dt@kernel.org>,
David Airlie <airlied@gmail.com>,
Frank Binns <Frank.Binns@imgtec.com>,
Alessio Belle <Alessio.Belle@imgtec.com>,
Alexandru Dadu <Alexandru.Dadu@imgtec.com>,
Geert Uytterhoeven <geert+renesas@glider.be>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Magnus Damm <magnus.damm@gmail.com>,
Maxime Ripard <mripard@kernel.org>, Rob Herring <robh@kernel.org>,
Simona Vetter <simona@ffwll.ch>,
Thomas Zimmermann <tzimmermann@suse.de>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"dri-devel@lists.freedesktop.org"
<dri-devel@lists.freedesktop.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"linux-renesas-soc@vger.kernel.org"
<linux-renesas-soc@vger.kernel.org>
Subject: Re: [PATCH 2/2] dt-bindings: gpu: img,powervr-rogue: Rework the allOf section
Date: Mon, 20 Oct 2025 15:12:14 +0000 [thread overview]
Message-ID: <a6d42c7e-1146-4bda-baf6-be04f3185c5a@imgtec.com> (raw)
In-Reply-To: <20251018130147.12831-2-marek.vasut+renesas@mailbox.org>
[-- Attachment #1.1: Type: text/plain, Size: 4255 bytes --]
Hi Marek,
On 18/10/2025 14:00, Marek Vasut wrote:
> Rework the current allOf: section such that all handling of
> clocks/clock-names properties happens first, and all handling
> of power-domains/power-domain-names happens second.
The original layout of the allOf: section was power-domains first, then
clock-domains. The actual ordering really doesn't matter, but I wonder
if it would make for a slightly cleaner patch to do it that way round?
In that instance, you would only have to split apart the section for
thead,th1520-gpu, moving the "special single power domain" part and "3
clocks" part into their appropriate positions.
>
> This allows the allOf section to limit various GPU models to
> matching clocks count in the first half, and apply the same
> for power-domains count in the second half, without conflating
> the two limits together.
Sounds good to me :)
Cheers,
Matt
>
> This makes addition of GPU models with different clocks and
> power-domains count easier. No functional change intended.
>
> Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
> ---
> Cc: Adam Ford <aford173@gmail.com>
> Cc: Conor Dooley <conor+dt@kernel.org>
> Cc: David Airlie <airlied@gmail.com>
> Cc: Frank Binns <frank.binns@imgtec.com>
> Cc: Geert Uytterhoeven <geert+renesas@glider.be>
> Cc: Krzysztof Kozlowski <krzk+dt@kernel.org>
> Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
> Cc: Magnus Damm <magnus.damm@gmail.com>
> Cc: Matt Coster <matt.coster@imgtec.com>
> Cc: Maxime Ripard <mripard@kernel.org>
> Cc: Rob Herring <robh@kernel.org>
> Cc: Simona Vetter <simona@ffwll.ch>
> Cc: Thomas Zimmermann <tzimmermann@suse.de>
> Cc: devicetree@vger.kernel.org
> Cc: dri-devel@lists.freedesktop.org
> Cc: linux-renesas-soc@vger.kernel.org
> ---
> .../bindings/gpu/img,powervr-rogue.yaml | 40 +++++++++++--------
> 1 file changed, 24 insertions(+), 16 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/gpu/img,powervr-rogue.yaml b/Documentation/devicetree/bindings/gpu/img,powervr-rogue.yaml
> index bee4ab1a1f805..829febd8e0f40 100644
> --- a/Documentation/devicetree/bindings/gpu/img,powervr-rogue.yaml
> +++ b/Documentation/devicetree/bindings/gpu/img,powervr-rogue.yaml
> @@ -86,16 +86,13 @@ allOf:
> properties:
> compatible:
> contains:
> - const: img,img-axe-1-16m
> + enum:
> + - ti,am62-gpu
> + - ti,j721s2-gpu
> then:
> properties:
> - power-domains:
> - maxItems: 1
> - power-domain-names:
> + clocks:
> maxItems: 1
> - required:
> - - power-domains
> - - power-domain-names
>
> - if:
> properties:
> @@ -108,13 +105,21 @@ allOf:
> minItems: 3
> clock-names:
> minItems: 3
> +
> + - if:
> + properties:
> + compatible:
> + contains:
> + const: img,img-axe-1-16m
> + then:
> + properties:
> power-domains:
> - items:
> - - description: The single, unified power domain for the GPU on the
> - TH1520 SoC, integrating all internal IP power domains.
> - power-domain-names: false
> + maxItems: 1
> + power-domain-names:
> + maxItems: 1
> required:
> - power-domains
> + - power-domain-names
>
> - if:
> properties:
> @@ -135,13 +140,16 @@ allOf:
> properties:
> compatible:
> contains:
> - enum:
> - - ti,am62-gpu
> - - ti,j721s2-gpu
> + const: thead,th1520-gpu
> then:
> properties:
> - clocks:
> - maxItems: 1
> + power-domains:
> + items:
> + - description: The single, unified power domain for the GPU on the
> + TH1520 SoC, integrating all internal IP power domains.
> + power-domain-names: false
> + required:
> + - power-domains
>
> examples:
> - |
--
Matt Coster
E: matt.coster@imgtec.com
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]
next prev parent reply other threads:[~2025-10-20 15:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-18 13:00 [PATCH 1/2] dt-bindings: gpu: img,powervr-rogue: Drop useless power domains items Marek Vasut
2025-10-18 13:00 ` [PATCH 2/2] dt-bindings: gpu: img,powervr-rogue: Rework the allOf section Marek Vasut
2025-10-20 15:12 ` Matt Coster [this message]
2025-10-20 17:30 ` Conor Dooley
2025-10-20 15:15 ` [PATCH 1/2] dt-bindings: gpu: img,powervr-rogue: Drop useless power domains items Matt Coster
2025-10-20 17:31 ` Conor Dooley
2025-10-21 8:37 ` Matt Coster
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=a6d42c7e-1146-4bda-baf6-be04f3185c5a@imgtec.com \
--to=matt.coster@imgtec.com \
--cc=Alessio.Belle@imgtec.com \
--cc=Alexandru.Dadu@imgtec.com \
--cc=Frank.Binns@imgtec.com \
--cc=aford173@gmail.com \
--cc=airlied@gmail.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=geert+renesas@glider.be \
--cc=krzk+dt@kernel.org \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=magnus.damm@gmail.com \
--cc=marek.vasut+renesas@mailbox.org \
--cc=mripard@kernel.org \
--cc=robh@kernel.org \
--cc=simona@ffwll.ch \
--cc=tzimmermann@suse.de \
/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