From: Frank Binns <Frank.Binns@imgtec.com>
To: "matthias.bgg@gmail.com" <matthias.bgg@gmail.com>,
"tzimmermann@suse.de" <tzimmermann@suse.de>,
Matt Coster <Matt.Coster@imgtec.com>,
"sboyd@kernel.org" <sboyd@kernel.org>,
"robh@kernel.org" <robh@kernel.org>,
"krzk+dt@kernel.org" <krzk+dt@kernel.org>,
"aford173@gmail.com" <aford173@gmail.com>,
"maarten.lankhorst@linux.intel.com"
<maarten.lankhorst@linux.intel.com>,
"wenst@chromium.org" <wenst@chromium.org>,
"mripard@kernel.org" <mripard@kernel.org>,
"conor+dt@kernel.org" <conor+dt@kernel.org>,
"angelogioacchino.delregno@collabora.com"
<angelogioacchino.delregno@collabora.com>
Cc: "dri-devel@lists.freedesktop.org"
<dri-devel@lists.freedesktop.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"airlied@gmail.com" <airlied@gmail.com>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"linux-mediatek@lists.infradead.org"
<linux-mediatek@lists.infradead.org>,
"daniel@ffwll.ch" <daniel@ffwll.ch>,
"linux-clk@vger.kernel.org" <linux-clk@vger.kernel.org>
Subject: Re: [PATCH 3/6] dt-bindings: gpu: powervr-rogue: Add MediaTek MT8173 GPU
Date: Fri, 31 May 2024 13:37:29 +0000 [thread overview]
Message-ID: <cc5847a486a760921375f069a4f65cd29453a624.camel@imgtec.com> (raw)
In-Reply-To: <20240530083513.4135052-4-wenst@chromium.org>
Hi ChenYu,
On Thu, 2024-05-30 at 16:35 +0800, Chen-Yu Tsai wrote:
> The MediaTek MT8173 comes with a PowerVR Rogue GX6250, which is one
> of the Series6XT GPUs, another sub-family of the Rogue family.
I've added Adam Ford who sent out some DT related patches [1] for the Renesas
variant of GX6250 and the GX6650 (another Series6XT GPU).
>
> This was part of the very first few versions of the PowerVR submission,
> but was later dropped. The compatible string has been updated to follow
> the new naming scheme adopted for the AXE series.
>
> In a previous iteration of the PowerVR binding submission [1], the
> number of clocks required for the 6XT family was mentioned to be
> always 3. This is also reflected here.
>
> [1] https://lore.kernel.org/dri-devel/6eeccb26e09aad67fb30ffcd523c793a43c79c2a.camel@imgtec.com/
>
> Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
> ---
> .../bindings/gpu/img,powervr-rogue.yaml | 24 +++++++++++++++----
> 1 file changed, 20 insertions(+), 4 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/gpu/img,powervr-rogue.yaml b/Documentation/devicetree/bindings/gpu/img,powervr-rogue.yaml
> index 256e252f8087..48aa205b66b4 100644
> --- a/Documentation/devicetree/bindings/gpu/img,powervr-rogue.yaml
> +++ b/Documentation/devicetree/bindings/gpu/img,powervr-rogue.yaml
> @@ -12,10 +12,17 @@ maintainers:
>
> properties:
> compatible:
> - items:
> - - enum:
> - - ti,am62-gpu
> - - const: img,img-axe # IMG AXE GPU model/revision is fully discoverable
> + oneOf:
> + - items:
> + - enum:
> + - mediatek,mt8173-gpu
> + # PowerVR 6XT GPU model/revision is fully discoverable
> + - const: img,powervr-6xt
> + - items:
> + - enum:
> + - ti,am62-gpu
> + # IMG AXE GPU model/revision is fully discoverable
> + - const: img,img-axe
The Series6XT GPU models have differing numbers of power domains (either 2, 4 or
5). Whereas, the AXE GPUs have a single power domain, so I assume there should
be a related change here.
The GX6250 has two power domains (lets call them A and B). There's a constraint
that if domain B is powered then domain A must also be powered.
In patch 6 [2] it's setting the power domain to MT8173_POWER_DOMAIN_MFG, which I
believe corresponds to power domain B. I assume this works because the MTK power
controller driver is encoding the constraint above, meaning that when we disable
or enable MT8173_POWER_DOMAIN_MFG it's also disabling/enabling MT8173_POWER_DOMA
IN_MFG_2D (domain A).
Thanks
Frank
[1] https://lists.freedesktop.org/archives/dri-devel/2024-February/443548.html
[2] https://lists.freedesktop.org/archives/dri-devel/2024-May/455833.html
>
> reg:
> maxItems: 1
> @@ -56,6 +63,15 @@ allOf:
> properties:
> clocks:
> maxItems: 1
> + - if:
> + properties:
> + compatible:
> + contains:
> + const: img,powervr-6xt
> + then:
> + properties:
> + clocks:
> + minItems: 3
>
> examples:
> - |
next prev parent reply other threads:[~2024-05-31 13:37 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-30 8:34 [PATCH 0/6] powervr: MT8173 GPU support Chen-Yu Tsai
2024-05-30 8:35 ` [PATCH 1/6] dt-bindings: clock: mediatek: Add mt8173 mfgtop Chen-Yu Tsai
2024-05-30 15:43 ` Conor Dooley
2024-05-31 7:29 ` Chen-Yu Tsai
2024-05-31 14:58 ` Conor Dooley
2024-05-30 8:35 ` [PATCH 2/6] clk: mediatek: Add mt8173-mfgtop driver Chen-Yu Tsai
2024-05-30 9:59 ` AngeloGioacchino Del Regno
2024-05-30 10:16 ` Chen-Yu Tsai
2024-05-30 12:48 ` AngeloGioacchino Del Regno
2024-05-31 11:17 ` Frank Binns
2024-06-05 8:39 ` Chen-Yu Tsai
2024-06-05 11:26 ` AngeloGioacchino Del Regno
2024-05-30 16:15 ` kernel test robot
2024-05-30 16:26 ` kernel test robot
2024-05-30 18:03 ` kernel test robot
2024-05-30 8:35 ` [PATCH 3/6] dt-bindings: gpu: powervr-rogue: Add MediaTek MT8173 GPU Chen-Yu Tsai
2024-05-30 10:03 ` AngeloGioacchino Del Regno
2024-05-30 15:38 ` Conor Dooley
2024-05-31 13:37 ` Frank Binns [this message]
2024-05-31 14:24 ` Adam Ford
2024-06-04 4:21 ` Chen-Yu Tsai
2024-06-04 4:18 ` Chen-Yu Tsai
2024-06-13 9:10 ` Chen-Yu Tsai
2024-06-13 13:23 ` Adam Ford
2024-05-30 8:35 ` [PATCH 4/6] drm/imagination: Add compatible string entry for Series6XT Chen-Yu Tsai
2024-05-30 10:03 ` AngeloGioacchino Del Regno
2024-05-31 11:18 ` Frank Binns
2024-06-03 3:29 ` Chen-Yu Tsai
2024-06-03 7:45 ` Steven Price
2024-08-10 12:39 ` Icenowy Zheng
2024-05-30 8:35 ` [PATCH 5/6] arm64: dts: mediatek: mt8173: Fix MFG_ASYNC power domain clock Chen-Yu Tsai
2024-05-30 10:03 ` AngeloGioacchino Del Regno
2024-06-05 8:25 ` Chen-Yu Tsai
2024-06-05 11:25 ` AngeloGioacchino Del Regno
2024-06-06 3:28 ` Chen-Yu Tsai
2024-05-30 8:35 ` [PATCH 6/6] arm64: dts: mediatek: mt8173: Add GPU device nodes Chen-Yu Tsai
2024-05-30 10:04 ` AngeloGioacchino Del Regno
2024-05-31 4:00 ` [PATCH 0/6] powervr: MT8173 GPU support Chen-Yu Tsai
2024-05-31 11:15 ` Frank Binns
2024-06-02 19:53 ` Adam Ford
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=cc5847a486a760921375f069a4f65cd29453a624.camel@imgtec.com \
--to=frank.binns@imgtec.com \
--cc=Matt.Coster@imgtec.com \
--cc=aford173@gmail.com \
--cc=airlied@gmail.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=conor+dt@kernel.org \
--cc=daniel@ffwll.ch \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=matthias.bgg@gmail.com \
--cc=mripard@kernel.org \
--cc=robh@kernel.org \
--cc=sboyd@kernel.org \
--cc=tzimmermann@suse.de \
--cc=wenst@chromium.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®