* [PATCH 0/2] drm/panfrost: Add MT8188 support @ 2024-05-27 9:25 AngeloGioacchino Del Regno 2024-05-27 9:25 ` [PATCH 1/2] dt-bindings: gpu: mali-bifrost: Add compatible for MT8188 SoC AngeloGioacchino Del Regno 2024-05-27 9:25 ` [PATCH 2/2] drm/panfrost: Add support for Mali on the " AngeloGioacchino Del Regno 0 siblings, 2 replies; 5+ messages in thread From: AngeloGioacchino Del Regno @ 2024-05-27 9:25 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 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 | 1 + drivers/gpu/drm/panfrost/panfrost_drv.c | 9 +++++++++ 2 files changed, 10 insertions(+) -- 2.45.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/2] dt-bindings: gpu: mali-bifrost: Add compatible for MT8188 SoC 2024-05-27 9:25 [PATCH 0/2] drm/panfrost: Add MT8188 support AngeloGioacchino Del Regno @ 2024-05-27 9:25 ` AngeloGioacchino Del Regno 2024-05-27 9:31 ` Chen-Yu Tsai 2024-05-28 15:01 ` Conor Dooley 2024-05-27 9:25 ` [PATCH 2/2] drm/panfrost: Add support for Mali on the " AngeloGioacchino Del Regno 1 sibling, 2 replies; 5+ messages in thread From: AngeloGioacchino Del Regno @ 2024-05-27 9:25 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 Add a compatible for the MediaTek MT8188 SoC, with an integrated ARM Mali G57 MC3 (Valhall-JM) GPU. Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> --- Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml index e796a1ff8c82..4cf676190ae8 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 -- 2.45.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] dt-bindings: gpu: mali-bifrost: Add compatible for MT8188 SoC 2024-05-27 9:25 ` [PATCH 1/2] dt-bindings: gpu: mali-bifrost: Add compatible for MT8188 SoC AngeloGioacchino Del Regno @ 2024-05-27 9:31 ` Chen-Yu Tsai 2024-05-28 15:01 ` Conor Dooley 1 sibling, 0 replies; 5+ messages in thread From: Chen-Yu Tsai @ 2024-05-27 9:31 UTC (permalink / raw) To: AngeloGioacchino Del Regno Cc: boris.brezillon, 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 Mon, May 27, 2024 at 5:25 PM AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> wrote: > > Add a compatible for the MediaTek MT8188 SoC, with an integrated > ARM Mali G57 MC3 (Valhall-JM) GPU. > > Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> > --- > Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml > index e796a1ff8c82..4cf676190ae8 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 I believe you also need to edit one of the conditionals below so that the number and names of the power domains are properly constrained? ChenYu _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] dt-bindings: gpu: mali-bifrost: Add compatible for MT8188 SoC 2024-05-27 9:25 ` [PATCH 1/2] dt-bindings: gpu: mali-bifrost: Add compatible for MT8188 SoC AngeloGioacchino Del Regno 2024-05-27 9:31 ` Chen-Yu Tsai @ 2024-05-28 15:01 ` Conor Dooley 1 sibling, 0 replies; 5+ messages in thread From: Conor Dooley @ 2024-05-28 15:01 UTC (permalink / raw) To: AngeloGioacchino Del Regno Cc: boris.brezillon, 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 [-- Attachment #1.1: Type: text/plain, Size: 347 bytes --] On Mon, May 27, 2024 at 11:25:12AM +0200, AngeloGioacchino Del Regno wrote: > Add a compatible for the MediaTek MT8188 SoC, with an integrated > ARM Mali G57 MC3 (Valhall-JM) GPU. > > Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Acked-by: Conor Dooley <conor.dooley@microchip.com> Chers, Conor. [-- Attachment #1.2: signature.asc --] [-- Type: application/pgp-signature, Size: 228 bytes --] [-- Attachment #2: Type: text/plain, Size: 176 bytes --] _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 2/2] drm/panfrost: Add support for Mali on the MT8188 SoC 2024-05-27 9:25 [PATCH 0/2] drm/panfrost: Add MT8188 support AngeloGioacchino Del Regno 2024-05-27 9:25 ` [PATCH 1/2] dt-bindings: gpu: mali-bifrost: Add compatible for MT8188 SoC AngeloGioacchino Del Regno @ 2024-05-27 9:25 ` AngeloGioacchino Del Regno 1 sibling, 0 replies; 5+ messages in thread From: AngeloGioacchino Del Regno @ 2024-05-27 9:25 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 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). Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> --- drivers/gpu/drm/panfrost/panfrost_drv.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/gpu/drm/panfrost/panfrost_drv.c b/drivers/gpu/drm/panfrost/panfrost_drv.c index ef9f6c0716d5..4e2d9f671a0d 100644 --- a/drivers/gpu/drm/panfrost/panfrost_drv.c +++ b/drivers/gpu/drm/panfrost/panfrost_drv.c @@ -777,6 +777,14 @@ static const struct panfrost_compatible mediatek_mt8186_data = { .pm_features = BIT(GPU_PM_CLK_DIS) | BIT(GPU_PM_VREG_OFF), }; +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 +816,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.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-05-28 15:01 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2024-05-27 9:25 [PATCH 0/2] drm/panfrost: Add MT8188 support AngeloGioacchino Del Regno 2024-05-27 9:25 ` [PATCH 1/2] dt-bindings: gpu: mali-bifrost: Add compatible for MT8188 SoC AngeloGioacchino Del Regno 2024-05-27 9:31 ` Chen-Yu Tsai 2024-05-28 15:01 ` Conor Dooley 2024-05-27 9:25 ` [PATCH 2/2] drm/panfrost: Add support for Mali on the " AngeloGioacchino Del Regno
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox