devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] drm/panfrost: Add MT8188 support
@ 2024-06-11  8:56 AngeloGioacchino Del Regno
  2024-06-11  8:56 ` [PATCH v3 1/2] dt-bindings: gpu: mali-bifrost: Add compatible for MT8188 SoC AngeloGioacchino Del Regno
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: AngeloGioacchino Del Regno @ 2024-06-11  8:56 UTC (permalink / raw)
  To: boris.brezillon
  Cc: maarten.lankhorst, mripard, tzimmermann, airlied, daniel, robh,
	krzk+dt, conor+dt, steven.price, matthias.bgg,
	angelogioacchino.delregno, dri-devel, devicetree, linux-kernel,
	linux-arm-kernel, linux-mediatek

Changes in v3:
 - Added comment stating that MT8188 uses same supplies as MT8183
   as requested by Steven

Changes in v2:
 - Fixed bindings to restrict number of power domains for MT8188's
   GPU to three like MT8183(b).

This series adds support for MT8188's Mali-G57 MC3.

AngeloGioacchino Del Regno (2):
  dt-bindings: gpu: mali-bifrost: Add compatible for MT8188 SoC
  drm/panfrost: Add support for Mali on the MT8188 SoC

 .../devicetree/bindings/gpu/arm,mali-bifrost.yaml      |  5 ++++-
 drivers/gpu/drm/panfrost/panfrost_drv.c                | 10 ++++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)

-- 
2.45.2


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH v3 1/2] dt-bindings: gpu: mali-bifrost: Add compatible for MT8188 SoC
  2024-06-11  8:56 [PATCH v3 0/2] drm/panfrost: Add MT8188 support AngeloGioacchino Del Regno
@ 2024-06-11  8:56 ` AngeloGioacchino Del Regno
  2024-06-11  8:56 ` [PATCH v3 2/2] drm/panfrost: Add support for Mali on the " AngeloGioacchino Del Regno
  2024-06-19 11:42 ` [PATCH v3 0/2] drm/panfrost: Add MT8188 support Boris Brezillon
  2 siblings, 0 replies; 5+ messages in thread
From: AngeloGioacchino Del Regno @ 2024-06-11  8:56 UTC (permalink / raw)
  To: boris.brezillon
  Cc: maarten.lankhorst, mripard, tzimmermann, airlied, daniel, robh,
	krzk+dt, conor+dt, steven.price, matthias.bgg,
	angelogioacchino.delregno, dri-devel, devicetree, linux-kernel,
	linux-arm-kernel, linux-mediatek, Conor Dooley, Chen-Yu Tsai

Add a compatible for the MediaTek MT8188 SoC, with an integrated
ARM Mali G57 MC3 (Valhall-JM) GPU.

Acked-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Chen-Yu Tsai <wenst@chromium.org>
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
---
 Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml
index e796a1ff8c82..278399adc550 100644
--- a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml
+++ b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml
@@ -34,6 +34,7 @@ properties:
           - const: arm,mali-valhall-jm # Mali Valhall GPU model/revision is fully discoverable
       - items:
           - enum:
+              - mediatek,mt8188-mali
               - mediatek,mt8192-mali
           - const: arm,mali-valhall-jm # Mali Valhall GPU model/revision is fully discoverable
 
@@ -195,7 +196,9 @@ allOf:
       properties:
         compatible:
           contains:
-            const: mediatek,mt8183b-mali
+            enum:
+              - mediatek,mt8183b-mali
+              - mediatek,mt8188-mali
     then:
       properties:
         power-domains:
-- 
2.45.2


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH v3 2/2] drm/panfrost: Add support for Mali on the MT8188 SoC
  2024-06-11  8:56 [PATCH v3 0/2] drm/panfrost: Add MT8188 support AngeloGioacchino Del Regno
  2024-06-11  8:56 ` [PATCH v3 1/2] dt-bindings: gpu: mali-bifrost: Add compatible for MT8188 SoC AngeloGioacchino Del Regno
@ 2024-06-11  8:56 ` AngeloGioacchino Del Regno
  2024-06-12  9:28   ` Steven Price
  2024-06-19 11:42 ` [PATCH v3 0/2] drm/panfrost: Add MT8188 support Boris Brezillon
  2 siblings, 1 reply; 5+ messages in thread
From: AngeloGioacchino Del Regno @ 2024-06-11  8:56 UTC (permalink / raw)
  To: boris.brezillon
  Cc: maarten.lankhorst, mripard, tzimmermann, airlied, daniel, robh,
	krzk+dt, conor+dt, steven.price, matthias.bgg,
	angelogioacchino.delregno, dri-devel, devicetree, linux-kernel,
	linux-arm-kernel, linux-mediatek, Chen-Yu Tsai

MediaTek MT8188 has a Mali-G57 MC3 (Valhall-JM): add a new
compatible and platform data using the same supplies and the
same power domain lists as MT8183 (one regulator, three power
domains).

Reviewed-by: Chen-Yu Tsai <wenst@chromium.org>
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
---
 drivers/gpu/drm/panfrost/panfrost_drv.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/drivers/gpu/drm/panfrost/panfrost_drv.c b/drivers/gpu/drm/panfrost/panfrost_drv.c
index ef9f6c0716d5..b43557b10ae3 100644
--- a/drivers/gpu/drm/panfrost/panfrost_drv.c
+++ b/drivers/gpu/drm/panfrost/panfrost_drv.c
@@ -777,6 +777,15 @@ static const struct panfrost_compatible mediatek_mt8186_data = {
 	.pm_features = BIT(GPU_PM_CLK_DIS) | BIT(GPU_PM_VREG_OFF),
 };
 
+/* MT8188 uses the same power domains and power supplies as MT8183 */
+static const struct panfrost_compatible mediatek_mt8188_data = {
+	.num_supplies = ARRAY_SIZE(mediatek_mt8183_b_supplies) - 1,
+	.supply_names = mediatek_mt8183_b_supplies,
+	.num_pm_domains = ARRAY_SIZE(mediatek_mt8183_pm_domains),
+	.pm_domain_names = mediatek_mt8183_pm_domains,
+	.pm_features = BIT(GPU_PM_CLK_DIS) | BIT(GPU_PM_VREG_OFF),
+};
+
 static const char * const mediatek_mt8192_supplies[] = { "mali", NULL };
 static const char * const mediatek_mt8192_pm_domains[] = { "core0", "core1", "core2",
 							   "core3", "core4" };
@@ -808,6 +817,7 @@ static const struct of_device_id dt_match[] = {
 	{ .compatible = "mediatek,mt8183-mali", .data = &mediatek_mt8183_data },
 	{ .compatible = "mediatek,mt8183b-mali", .data = &mediatek_mt8183_b_data },
 	{ .compatible = "mediatek,mt8186-mali", .data = &mediatek_mt8186_data },
+	{ .compatible = "mediatek,mt8188-mali", .data = &mediatek_mt8188_data },
 	{ .compatible = "mediatek,mt8192-mali", .data = &mediatek_mt8192_data },
 	{}
 };
-- 
2.45.2


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH v3 2/2] drm/panfrost: Add support for Mali on the MT8188 SoC
  2024-06-11  8:56 ` [PATCH v3 2/2] drm/panfrost: Add support for Mali on the " AngeloGioacchino Del Regno
@ 2024-06-12  9:28   ` Steven Price
  0 siblings, 0 replies; 5+ messages in thread
From: Steven Price @ 2024-06-12  9:28 UTC (permalink / raw)
  To: AngeloGioacchino Del Regno, boris.brezillon
  Cc: maarten.lankhorst, mripard, tzimmermann, airlied, daniel, robh,
	krzk+dt, conor+dt, matthias.bgg, dri-devel, devicetree,
	linux-kernel, linux-arm-kernel, linux-mediatek, Chen-Yu Tsai

On 11/06/2024 09:56, AngeloGioacchino Del Regno wrote:
> MediaTek MT8188 has a Mali-G57 MC3 (Valhall-JM): add a new
> compatible and platform data using the same supplies and the
> same power domain lists as MT8183 (one regulator, three power
> domains).
> 
> Reviewed-by: Chen-Yu Tsai <wenst@chromium.org>
> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>

Reviewed-by: Steven Price <steven.price@arm.com>

> ---
>  drivers/gpu/drm/panfrost/panfrost_drv.c | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/drivers/gpu/drm/panfrost/panfrost_drv.c b/drivers/gpu/drm/panfrost/panfrost_drv.c
> index ef9f6c0716d5..b43557b10ae3 100644
> --- a/drivers/gpu/drm/panfrost/panfrost_drv.c
> +++ b/drivers/gpu/drm/panfrost/panfrost_drv.c
> @@ -777,6 +777,15 @@ static const struct panfrost_compatible mediatek_mt8186_data = {
>  	.pm_features = BIT(GPU_PM_CLK_DIS) | BIT(GPU_PM_VREG_OFF),
>  };
>  
> +/* MT8188 uses the same power domains and power supplies as MT8183 */
> +static const struct panfrost_compatible mediatek_mt8188_data = {
> +	.num_supplies = ARRAY_SIZE(mediatek_mt8183_b_supplies) - 1,
> +	.supply_names = mediatek_mt8183_b_supplies,
> +	.num_pm_domains = ARRAY_SIZE(mediatek_mt8183_pm_domains),
> +	.pm_domain_names = mediatek_mt8183_pm_domains,
> +	.pm_features = BIT(GPU_PM_CLK_DIS) | BIT(GPU_PM_VREG_OFF),
> +};
> +
>  static const char * const mediatek_mt8192_supplies[] = { "mali", NULL };
>  static const char * const mediatek_mt8192_pm_domains[] = { "core0", "core1", "core2",
>  							   "core3", "core4" };
> @@ -808,6 +817,7 @@ static const struct of_device_id dt_match[] = {
>  	{ .compatible = "mediatek,mt8183-mali", .data = &mediatek_mt8183_data },
>  	{ .compatible = "mediatek,mt8183b-mali", .data = &mediatek_mt8183_b_data },
>  	{ .compatible = "mediatek,mt8186-mali", .data = &mediatek_mt8186_data },
> +	{ .compatible = "mediatek,mt8188-mali", .data = &mediatek_mt8188_data },
>  	{ .compatible = "mediatek,mt8192-mali", .data = &mediatek_mt8192_data },
>  	{}
>  };


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v3 0/2] drm/panfrost: Add MT8188 support
  2024-06-11  8:56 [PATCH v3 0/2] drm/panfrost: Add MT8188 support AngeloGioacchino Del Regno
  2024-06-11  8:56 ` [PATCH v3 1/2] dt-bindings: gpu: mali-bifrost: Add compatible for MT8188 SoC AngeloGioacchino Del Regno
  2024-06-11  8:56 ` [PATCH v3 2/2] drm/panfrost: Add support for Mali on the " AngeloGioacchino Del Regno
@ 2024-06-19 11:42 ` Boris Brezillon
  2 siblings, 0 replies; 5+ messages in thread
From: Boris Brezillon @ 2024-06-19 11:42 UTC (permalink / raw)
  To: AngeloGioacchino Del Regno
  Cc: maarten.lankhorst, mripard, tzimmermann, airlied, daniel, robh,
	krzk+dt, conor+dt, steven.price, matthias.bgg, dri-devel,
	devicetree, linux-kernel, linux-arm-kernel, linux-mediatek

On Tue, 11 Jun 2024 10:56:00 +0200
AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
wrote:

> Changes in v3:
>  - Added comment stating that MT8188 uses same supplies as MT8183
>    as requested by Steven
> 
> Changes in v2:
>  - Fixed bindings to restrict number of power domains for MT8188's
>    GPU to three like MT8183(b).
> 
> This series adds support for MT8188's Mali-G57 MC3.
> 
> AngeloGioacchino Del Regno (2):
>   dt-bindings: gpu: mali-bifrost: Add compatible for MT8188 SoC
>   drm/panfrost: Add support for Mali on the MT8188 SoC

Queued to drm-misc-next.

Thanks,

Boris

> 
>  .../devicetree/bindings/gpu/arm,mali-bifrost.yaml      |  5 ++++-
>  drivers/gpu/drm/panfrost/panfrost_drv.c                | 10 ++++++++++
>  2 files changed, 14 insertions(+), 1 deletion(-)
> 


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-06-19 11:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-11  8:56 [PATCH v3 0/2] drm/panfrost: Add MT8188 support AngeloGioacchino Del Regno
2024-06-11  8:56 ` [PATCH v3 1/2] dt-bindings: gpu: mali-bifrost: Add compatible for MT8188 SoC AngeloGioacchino Del Regno
2024-06-11  8:56 ` [PATCH v3 2/2] drm/panfrost: Add support for Mali on the " AngeloGioacchino Del Regno
2024-06-12  9:28   ` Steven Price
2024-06-19 11:42 ` [PATCH v3 0/2] drm/panfrost: Add MT8188 support Boris Brezillon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).