From patchwork Tue Jun 4 12:39:21 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: 13685200 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 0E47FC41513 for ; Tue, 4 Jun 2024 12:39:43 +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=HE1gGNHPnbb40db87swx3abnyCppSLyl1A3ysz30DZY=; b=EjAH3MlaeGWYZ5 eIPMvaU+LanE1s8HD3Uxdj1hHzeByy8OiqEvgt9Ncxywlnc4Dvga6V5U79wOMHK+H+qCOMoS38+1U 9eGdMr7P+tcg80BWZsXAjQNacRzyBvwiKWJtpGZznR0XU2Vevnd97URsAfMFTczIHMWDsQRGqbpnT 2fUHG/TZBs/3Tl6Y9jqF/xJIFKKxIJlw4RqPkEbckwG+VUDsZ9o8APMQWymy2tF23o2/SGst2aDlW H0PzOvV2Lwa8nlwCI+icZKrMGGCdkmvSm2Li8pcxwpDPsCC4G38oWDpE+kaCoS5S4Zy/K4s1z6UYT 3iUVWv06KFszPyxQZvOw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sETRt-00000002JbL-2jJb; Tue, 04 Jun 2024 12:39:33 +0000 Received: from madrid.collaboradmins.com ([46.235.227.194]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sETRp-00000002JZk-255U; Tue, 04 Jun 2024 12:39:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1717504767; bh=CpQdxsV8bHr08qgSs4fiUyuci8075LtVplEkoA/kEzk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sDL1xvTeZR1ICVuDrYO4MuN3eVtUzy8Eq5zWP4h1GQQYEjvPxtV8NZflQIk3Rx60E uZaKFEtuD6jMadkj+xgcqTdOekT4qvC/RbXNsk75XFOAbZbYzS9mxaHuXAQ4QjSyW5 7EIQI5zJ2HuzqaXW9iJqQCJ/VIdRpkwl198E7NfN6FrBo5QM76237nsPsR/lf0jIVb p5R/c50axFNY6jXt4TPaQAHt4Yrfo1mbMOdoxIbi3Rkjd9tII+9Tmeb9zrTOJzsKIi B1dRBNCVclTbyO73mJCD5qVCIHDbvtPc6OpSjvvFB42QKp5aegWFCGLuwKFzcp2na4 uTuIQgEFuUq1A== 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 3054837821F2; Tue, 4 Jun 2024 12:39:26 +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 v2 1/2] dt-bindings: gpu: mali-bifrost: Add compatible for MT8188 SoC Date: Tue, 4 Jun 2024 14:39:21 +0200 Message-ID: <20240604123922.331469-2-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240604123922.331469-1-angelogioacchino.delregno@collabora.com> References: <20240604123922.331469-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-20240604_053929_690099_7F0A891D X-CRM114-Status: UNSURE ( 9.92 ) 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 Reviewed-by: Chen-Yu Tsai --- 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..8acb46adabe2 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: From patchwork Tue Jun 4 12:39:22 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: 13685201 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 79A1FC25B78 for ; Tue, 4 Jun 2024 12:39:46 +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=yv77eA3rtAV5LC wlWJJ8OYmqcqLaOUpib0n139QSzTHiZX6UjLaSEnKmpsEKPBS4a1k3KN7sPO9O4lXEeawlNq6nL3F E5FqoBEBPasYs6Nu3BHwN5MnwRaMH07zKqAn//sUCVmkU4oz5qaUzh8Zdt0Yw82rxk5lubURbcE62 H2dG9/JAk2gZr4njNp/DRdeG+C5Lv9VQS0x/FnOotNf39IY0qrlKZ+Yv/5w7Gr21FAzweDZI6sRXr jH5z8NHRVJAUB/bOiQidxONmj8TsZZw/qtUCv6BRJSWBP36PZgM/AhXFByyIvU2jcGJdIYVokccNa Rld0Ovg7rzCBEcx+qxqw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sETRx-00000002JdY-0lz9; Tue, 04 Jun 2024 12:39:37 +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 1sETRp-00000002Ja1-3OaX; Tue, 04 Jun 2024 12:39:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1717504768; bh=8GuiXIytBzEOOq1loh/sdanwydxd8B84OUGGGBmQrxs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MuUCaa2O/d75m45tHK6ensCCO3PlYnhkaWl+8S0AGUp85xfKyffI56SDFAq9YjuGd xSw2vFMNE8A413ZNTo4Lg4yAw5Zix4P4OF/t5b1IhIFB+Mor2coDVhI/Ln2cG2t8+h wjXVsw+e2M0jtLWBIcT4oQ7RwPFKndylW6VrGm7dlNAsADputoz4hE3jNH+CTmTCKT zI+cBBOkU0QuDBqKWfVWFq2qLd2097HkDodMD3znfYg+5dGCsNvhwGcpiwJeOFbPfL 4NUqOV0I1TZrHtmGZ1PKl/8v1qHe/q4Kz5l7J+jL/3zVWq3/QsvEv1+zK4OYAeAn3g IMHm2Zv6Uytiw== 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 7C4C837821F4; Tue, 4 Jun 2024 12:39:27 +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 v2 2/2] drm/panfrost: Add support for Mali on the MT8188 SoC Date: Tue, 4 Jun 2024 14:39:22 +0200 Message-ID: <20240604123922.331469-3-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240604123922.331469-1-angelogioacchino.delregno@collabora.com> References: <20240604123922.331469-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-20240604_053930_020838_9681E886 X-CRM114-Status: GOOD ( 10.72 ) 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 Reviewed-by: Chen-Yu Tsai --- 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 }, {} };