From patchwork Mon May 27 09:25:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 13674924 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BAB20C25B74 for ; Mon, 27 May 2024 09:25:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=SAxU3RgCo5yUeZO8kjYL7SOUEuAExeU2aAJMePJ233g=; b=0h1ruN8eOxSvY6 76WutAcvdkiMacDIecGkM53Xq2o2XBPxekZvtjjUxmNvbuPg+Fh3s12VdPHFwQILWCgsB/3wiFRoT sb5MSIrGAf0AvkvvHvfA7d0Nc09pdo88st9xpCtnR3m5zLbpzg6/0+00R+bAuaaVe6IDrnV62Pwn5 aH+U+GG9oJtiWXfEJyl+zI3VwZuP1o4RqwO6fFn3+aWvgdLM3XzGo/hCmGe0sZVp0u+F5rHIBXGhK 0so2PqME6p0dha/SUH9A4G86Y7Pq9lCRy4PFuExfVAMOJyhANa23g63ID4LS+Rbc6IklgQEV9XjRR ZBVnPFqELxaqSnf89Lhw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sBWbe-0000000EORt-1lB2; Mon, 27 May 2024 09:25:26 +0000 Received: from madrid.collaboradmins.com ([2a00:1098:ed:100::25]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sBWbZ-0000000EOOs-3sws; Mon, 27 May 2024 09:25:23 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1716801918; bh=XVR8YE9RRnYslpsTdox8CwVpumNgWPDF20WRxi9WmE8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pZlgJ/9niwuZBXq9izGjUJTRI02i7jPQr1VbcQ6162TC+c3yqrx33tF7o1BOcBRH0 WjhrB3O39bRjZvjQjNA4bamPKF17UqZOs/n6TMARxigfdZsBUwlOmuNGaV76HeDUSU P5E/VFSlat0O45CjUvfSV3dxLBQXtoWNKTsRuZgpPp+lkxOYlDIllbjvaQ21IPezMq ojfTXeyNXiaTN27t5uQRh2s7zndRQFYClHfyAGkgw21i4zgeW2P2BXR0dcMgYPXHpK xe/85nhHetEUIK0WgapR6zhd/tFi825YGnuybMgJYOheVhbZ3911cNiPUT8fdJQ/Do TDq4ARw/0I0zA== Received: from IcarusMOD.eternityproject.eu (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 089153782113; Mon, 27 May 2024 09:25:16 +0000 (UTC) From: AngeloGioacchino Del Regno To: boris.brezillon@collabora.com Cc: maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, daniel@ffwll.ch, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, steven.price@arm.com, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH 1/2] dt-bindings: gpu: mali-bifrost: Add compatible for MT8188 SoC Date: Mon, 27 May 2024 11:25:12 +0200 Message-ID: <20240527092513.91385-2-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240527092513.91385-1-angelogioacchino.delregno@collabora.com> References: <20240527092513.91385-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240527_022522_162089_85EC0C47 X-CRM114-Status: UNSURE ( 7.96 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add a compatible for the MediaTek MT8188 SoC, with an integrated ARM Mali G57 MC3 (Valhall-JM) GPU. Signed-off-by: AngeloGioacchino Del Regno Acked-by: Conor Dooley --- 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 From patchwork Mon May 27 09:25:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 13674925 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id ADEDAC25B74 for ; Mon, 27 May 2024 09:25:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=PeY/y2SY6/Urw45EyHoKmzSRjPwX4jcl/TvBmJZ6qMs=; b=XdpTZVilxWYoWo kqozyGLOtS9mRfnmOPnnlIx75fhPWQRRtP+I4Pa0kbyfw6bUEVEK4ytMItB1FzY3rzQtWohcN8skV 7W/R58uNSnN2b/XIgbIxcSk0j0WKzUWcXp6gXgW/1JcmzhM55E0ITqRdOSD/jQSZPW2klTf5wAaTS e2uDXrlLqhtYGvAKXGuYZau0TVNvRU1TErKKE2HT6R1BETBw7StUwR6UnUyWhavKXWD27iRtPeTDk F1geYOOORYiS8ZdZ+4xzkjgwC3hDtsBjtrbkW8R5EsMsOQtPmgr3qa0/T2FJWdPz0ddMJJbJvy+L6 3PnDFz8OO/p37r14B7cw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sBWbr-0000000EOam-17nl; Mon, 27 May 2024 09:25:39 +0000 Received: from madrid.collaboradmins.com ([2a00:1098:ed:100::25]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sBWbZ-0000000EOPY-3u1A; Mon, 27 May 2024 09:25:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1716801919; bh=8GuiXIytBzEOOq1loh/sdanwydxd8B84OUGGGBmQrxs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GRHZOFIy40cxzRCBKR+sKYr7lZcoxq9hRzQ2jzpd8M6DvzTEaVIX6Vk1n7lI7Fmoo /X//2fYrJWzFYjgzijs9LgplhhSayI/QI3ZGX6zgqv+kDMADoxaQ4IcJ8o8CyXQQg3 OUdqIGwhHgFE5VBgqip57mhY7reXuhzqc85uWcMtTneQiA7lfyjbnOQPx4S6+M2vtZ sqkxPWIo90IaEUn6gKN70T0Tia8+bjrmtM08QGqOHLAPprDDSitINYaFG96sanzRb8 3/u04bga92Pbq6Uv39DFL+kPW1BTqmUWwxxZIgh2+GOhI7ZBzhDnaWp5CFtmnDrDFC XvUpWaLKBS+Cg== Received: from IcarusMOD.eternityproject.eu (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 631A1378212E; Mon, 27 May 2024 09:25:18 +0000 (UTC) From: AngeloGioacchino Del Regno To: boris.brezillon@collabora.com Cc: maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, daniel@ffwll.ch, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, steven.price@arm.com, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH 2/2] drm/panfrost: Add support for Mali on the MT8188 SoC Date: Mon, 27 May 2024 11:25:13 +0200 Message-ID: <20240527092513.91385-3-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240527092513.91385-1-angelogioacchino.delregno@collabora.com> References: <20240527092513.91385-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240527_022522_165367_7F65FCA1 X-CRM114-Status: GOOD ( 10.62 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 --- 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 }, {} };