From patchwork Tue Mar 26 16:52:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 13604702 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 CE359C54E67 for ; Tue, 26 Mar 2024 16:52:47 +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=qyArH2XpynWl5K1XPV6/PE9tN/dd2DxoyPKkjjWS87A=; b=myCdh5c7ExFGK/ SCQsFuoXtnZX6mzbgjTp9u3dFHGezUXa6dGptC0fSo7y2lApMAskPmsPczwH3R5cn+lk29bscCIbK 4TdUtbo6oIzIv2uesDaoXLy7zSsCB3Dyj1jN9VqgHdG36tqNZon7c0B6MLoezrL0twgZABjJxevhb udbI4Z24XIGSAJzByUdin8QKtp+Z/tjTTji8k88R3aPvGodbG+zUbM0NpvPL+0ue7IzITyFC2vB2l kABdQqStYEcZV8jVmCV1R/0Ew1Mgou0ZkohqibnFrcPQOAJeBk8C5V4NVQ0SxjJBQmY1GkUfonIvz XuYnEB0T91DcE15RAYAA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rpA2T-00000005aGM-1tm6; Tue, 26 Mar 2024 16:52:41 +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 1rpA2P-00000005aD3-3MMg for linux-rockchip@lists.infradead.org; Tue, 26 Mar 2024 16:52:39 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1711471953; bh=I3p4Ib0ISW7IQcsOO8wa91qosPmVrlgxRcCilUELSWY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=r07DPXCb3eSsJ+fTABB6u4byIZ15gIFRrWsVgKw+7Z/pyO2WwsSWPSYMip/RrclC1 wdUa9U35P4fIjxYNtmQtqPPIsclLTk4Mp2ATMqI2v9/UvqA/ucbKiw6UJNQ86fky+Z O49SjWs1zaKf4YrNObTczT2rQp+41lULnmHyUxWfowbWne0phPvULFFwNnDiqyDN91 HEM5safl4msA3icuRiE7noHGu8wkesy3YRBg9FdCPjy4uWrgkILCyCmzsAWLYnD8qO jM/alM0iWltubxyxgUyP/SgCrupC9255lLfen0xRkTF8PVzKl0hlP5ChlwMQyRckpF 6vSijGRZBph9g== Received: from jupiter.universe (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: sre) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 6A0B137820CD; Tue, 26 Mar 2024 16:52:33 +0000 (UTC) Received: by jupiter.universe (Postfix, from userid 1000) id 1188E4800CB; Tue, 26 Mar 2024 17:52:33 +0100 (CET) From: Sebastian Reichel To: Heiko Stuebner , linux-rockchip@lists.infradead.org Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Boris Brezillon , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Sebastian Reichel , kernel@collabora.com Subject: [PATCH v2 1/4] arm64: defconfig: support Mali CSF-based GPUs Date: Tue, 26 Mar 2024 17:52:05 +0100 Message-ID: <20240326165232.73585-2-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240326165232.73585-1-sebastian.reichel@collabora.com> References: <20240326165232.73585-1-sebastian.reichel@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240326_095238_149189_C628BD6A X-CRM114-Status: UNSURE ( 8.98 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Enable support for Mali CSF-based GPUs, which is found on recent ARM SoCs, such as Rockchip or Mediatek. Signed-off-by: Sebastian Reichel --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 2c30d617e180..65e33174f813 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -907,6 +907,7 @@ CONFIG_DRM_MESON=m CONFIG_DRM_PL111=m CONFIG_DRM_LIMA=m CONFIG_DRM_PANFROST=m +CONFIG_DRM_PANTHOR=m CONFIG_DRM_TIDSS=m CONFIG_DRM_POWERVR=m CONFIG_FB=y From patchwork Tue Mar 26 16:52:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 13604704 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 56517C6FD1F for ; Tue, 26 Mar 2024 16:52: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=k22cc+RaWNkXSRL62rDDlfK9i+2wMG+XJq/XvLliPYA=; b=G7iuAcNxw3L2Bn eNmbs030F9xyAXFJvvfqz63duqOVfYuayHp5ozhhvHQoOtqLZSWGBpffUIkSbB10B57KlOWmFON5G 57lo6X3OQzctohVUEKlSeK3UXWpMEW+m3Vd02M1YqPlrRmS8ckWVQG8rO4HmHIF4Tx1Zc/dOvuebz ahyNf3bTfcOO+0EnSPLqzqPCAk4qgkHAZ6MO/6Lgd/ySw8ItBIffgAIrcpprEjAl+mPQ5eOLPKW9u f2ThG0m2fPoVBVErYiOcdre66kcHnrpLXu1NVj/42dZJO2rT/MW0L64yPZGohDz/F963bVj4RwAUG Xq3shgjgdMnPxU7NUIFA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rpA2V-00000005aGz-3jyD; Tue, 26 Mar 2024 16:52:43 +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 1rpA2P-00000005aDI-3P5s for linux-rockchip@lists.infradead.org; Tue, 26 Mar 2024 16:52:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1711471953; bh=/Nxs6FstrASPGXaLg5JYRLWZbQzXEV2qtmeifS1oC4A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Af2ob9XYNOJef4e9s4k9p7G6uhT2DJlusVGF+8U2wQ/cPZMeBoXBiDSKpRKDFp0ts OXhvk5TVLkX72/LbZroeVbkdY3ZeBTpo3zYPQ2hhYLG/3SjR9fiJ/Y5z+upN0d39MC +B3gPFILGwLthdXQgKJuqKk/SV2kdtgtBcGP6NpTMa1INwGPRXfzNHUqVAFIPNZOGO ezaIpmxjRXf86xRywv5QE9JfAT7YaOBq6LKVJCBlQCPxlBSr2hWcb0ZRS6aPA39ESO agKsNSv8KQNTAINk/7z+eV2LXASM0JBvyYtsQbVVQkqkZv46PW66gQZrBfbYzk2Lmo XgdYpICPivnBQ== Received: from jupiter.universe (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: sre) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 719DE37820E1; Tue, 26 Mar 2024 16:52:33 +0000 (UTC) Received: by jupiter.universe (Postfix, from userid 1000) id 136F84800CF; Tue, 26 Mar 2024 17:52:33 +0100 (CET) From: Sebastian Reichel To: Heiko Stuebner , linux-rockchip@lists.infradead.org Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Boris Brezillon , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com, Sebastian Reichel Subject: [PATCH v2 2/4] arm64: dts: rockchip: rk3588: Add GPU nodes Date: Tue, 26 Mar 2024 17:52:06 +0100 Message-ID: <20240326165232.73585-3-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240326165232.73585-1-sebastian.reichel@collabora.com> References: <20240326165232.73585-1-sebastian.reichel@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240326_095238_161681_91086AFE X-CRM114-Status: UNSURE ( 9.50 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org From: Boris Brezillon Add Mali GPU Node to the RK3588 SoC DT including GPU clock operating points Signed-off-by: Boris Brezillon Signed-off-by: Sebastian Reichel --- arch/arm64/boot/dts/rockchip/rk3588s.dtsi | 56 +++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588s.dtsi b/arch/arm64/boot/dts/rockchip/rk3588s.dtsi index 87b83c87bd55..89d40cff635f 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3588s.dtsi @@ -501,6 +501,62 @@ usb_host2_xhci: usb@fcd00000 { status = "disabled"; }; + gpu: gpu@fb000000 { + compatible = "rockchip,rk3588-mali", "arm,mali-valhall-csf"; + reg = <0x0 0xfb000000 0x0 0x200000>; + #cooling-cells = <2>; + assigned-clocks = <&scmi_clk SCMI_CLK_GPU>; + assigned-clock-rates = <200000000>; + clocks = <&cru CLK_GPU>, <&cru CLK_GPU_COREGROUP>, + <&cru CLK_GPU_STACKS>; + clock-names = "core", "coregroup", "stacks"; + dynamic-power-coefficient = <2982>; + interrupts = , + , + ; + interrupt-names = "job", "mmu", "gpu"; + operating-points-v2 = <&gpu_opp_table>; + power-domains = <&power RK3588_PD_GPU>; + status = "disabled"; + + gpu_opp_table: opp-table { + compatible = "operating-points-v2"; + + opp-300000000 { + opp-hz = /bits/ 64 <300000000>; + opp-microvolt = <675000 675000 850000>; + }; + opp-400000000 { + opp-hz = /bits/ 64 <400000000>; + opp-microvolt = <675000 675000 850000>; + }; + opp-500000000 { + opp-hz = /bits/ 64 <500000000>; + opp-microvolt = <675000 675000 850000>; + }; + opp-600000000 { + opp-hz = /bits/ 64 <600000000>; + opp-microvolt = <675000 675000 850000>; + }; + opp-700000000 { + opp-hz = /bits/ 64 <700000000>; + opp-microvolt = <700000 700000 850000>; + }; + opp-800000000 { + opp-hz = /bits/ 64 <800000000>; + opp-microvolt = <750000 750000 850000>; + }; + opp-900000000 { + opp-hz = /bits/ 64 <900000000>; + opp-microvolt = <800000 800000 850000>; + }; + opp-1000000000 { + opp-hz = /bits/ 64 <1000000000>; + opp-microvolt = <850000 850000 850000>; + }; + }; + }; + pmu1grf: syscon@fd58a000 { compatible = "rockchip,rk3588-pmugrf", "syscon", "simple-mfd"; reg = <0x0 0xfd58a000 0x0 0x10000>; From patchwork Tue Mar 26 16:52:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 13604705 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 A55DACD1284 for ; Tue, 26 Mar 2024 16:52:49 +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=eCLUnWwJ0aQZcocd1dVEGSB2M8aXBDXpZFCCQEDcEoo=; b=QLCIsPPS0Nhg1u KM1Z9oWf91PhBGvvliPlxtNR9ijNA0oEJEq5eEai+cqSjhmyqH7ndyJuTzkF/C+8QMwflLQS92fqV GTynvP2Ei6toECSLQ6BJiH+cyQQwYlErMUjS6M+xzsCyGCIJSdO7pC+A+O6PWMngpWycwaB3ukObq bA/M4ORbMvyFsa0bK28gCFJPtqQbrJFXykPnahz9K1F+5ZzUaZhVetRkZv7JA7P2Qh/8OHe+1b7BU tKoPHuox5IQ1adEWHUSKmtcxhzgTOLnIgv3EKpMrsxGqT1sYdHUvjMJE7qNxSg/Zedx75YzaHcC9w ysLsAME/zWzU8UdIbiMQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rpA2X-00000005aI4-4Ake; Tue, 26 Mar 2024 16:52:46 +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 1rpA2P-00000005aD7-3FSh for linux-rockchip@lists.infradead.org; Tue, 26 Mar 2024 16:52:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1711471953; bh=B0qyQLnvXzhUX1ZeTAh3U7zE2LqnONvAtFoHzqPBnHk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zzmJxQuu58TxSZkdeVEA5dHzgMvmjb0GtEHM1P+HeFGRLQLBU4VzJ9Lc8E/8RPhoM EQ1v6sRYHlWotkLciGcQgJDaPC6ZQ1dfwyzydI0CjOS/RGMp6UzDx7HCZSCyTAIcRX swfstla0X0Wbs79odgeiCQg/JPVj01309iLdnQVqAW1jehmX12HalAh34wlsR5XajX gUturQIPgzLYh3wdG95EICIOHkz0rQ0NQ73UwIBkAsmD+86FSrkkCWkZAhJ3hE0sep Kg+U8XXJkytc2rZ7BVdy0KM6dxcKA8rs1EH7zDoB6nJSOdRdD6bP3bOMidtUGV/P7n wEtVp5GrBP50g== Received: from jupiter.universe (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: sre) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 754B737820E2; Tue, 26 Mar 2024 16:52:33 +0000 (UTC) Received: by jupiter.universe (Postfix, from userid 1000) id 154774800D0; Tue, 26 Mar 2024 17:52:33 +0100 (CET) From: Sebastian Reichel To: Heiko Stuebner , linux-rockchip@lists.infradead.org Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Boris Brezillon , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com, Sebastian Reichel Subject: [PATCH v2 3/4] arm64: dts: rockchip: rk3588-rock5b: Enable GPU Date: Tue, 26 Mar 2024 17:52:07 +0100 Message-ID: <20240326165232.73585-4-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240326165232.73585-1-sebastian.reichel@collabora.com> References: <20240326165232.73585-1-sebastian.reichel@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240326_095238_190236_BB50316E X-CRM114-Status: UNSURE ( 9.59 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org From: Boris Brezillon Enable the Mali GPU in the Rock 5B. Signed-off-by: Boris Brezillon Signed-off-by: Sebastian Reichel --- arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts b/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts index 1fe8b2a0ed75..d6bf2ee07e87 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts @@ -180,6 +180,11 @@ &cpu_l3 { cpu-supply = <&vdd_cpu_lit_s0>; }; +&gpu { + mali-supply = <&vdd_gpu_s0>; + status = "okay"; +}; + &i2c0 { pinctrl-names = "default"; pinctrl-0 = <&i2c0m2_xfer>; From patchwork Tue Mar 26 16:52:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 13604706 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 19D05CD11DD for ; Tue, 26 Mar 2024 16:52:51 +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=H9RWKD/zKqW6hXQd8m7oLLvlof7zTRzaXPrbXPmugyQ=; b=FxE7wjLnDP1F5S RhBNFv0nb7QKk5yN2spOg7QxonQJoEWgNpewrFcyOa+oLO173xqrJx5MEWF8f7P0utl5GQuzK0vVZ 2glQtTyMo+v3ae22PfT+YQApF6hf14+RC5YPiXYLu7Lz7K/66RzCqQpoMC4gfIHlyLWvda/pQTKa6 nKcQCylBk0xc6kHZineyxOHFen0EWT1Pw3XD0Yo894rN4rE85OyiThliqV2zSYxH1ivfy7gJGZfjp ESZLpD+nd7AjmWWi4jyxmAfG+C/X2woAAxBAK//CIx+3V355CGoqCP85PefaO9CPOjoSYBx4sn2Se SsdN2a4fS4RqU0iU2QIQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rpA2X-00000005aHg-0pVN; Tue, 26 Mar 2024 16:52:45 +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 1rpA2P-00000005aDB-3EZ2 for linux-rockchip@lists.infradead.org; Tue, 26 Mar 2024 16:52:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1711471953; bh=bnU0rBb9ounSPduviQn9sL9EO0sU2ngM/C/AFvHMEVA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vxNBhGCZXpjB9GTJKtO4QIbWJeutrVm5FOMLOmgmXxO07oQiqhlLGMbbTceJNnkJ2 3VWaqzBSn/Wda0VQ2KqyJ4espaZEfyfNRwxh8TrlC4imoxk1DxGdlJPwz9eE2UumE3 HOkt3UQKn5YTkKXatZ6nMR/yo6ppCsnQN0U0HjD1xvK9T80DsQ4jI2feYmo9z+f7jh 8bPE55Ir7buo4MDillgSiLXuz4RhFAoSURVseKrByaan56fe8wzX1xQhOln8BOAyUU aHTJo7vFAp6MLdhHbcjf9zUG6cJqCmJJIVV9s1BXALdQMWdXRQkShX9q1MJM7Z+ME+ NQ72+wj4dh10A== Received: from jupiter.universe (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: sre) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 80A3C37820E4; Tue, 26 Mar 2024 16:52:33 +0000 (UTC) Received: by jupiter.universe (Postfix, from userid 1000) id 170D14800D1; Tue, 26 Mar 2024 17:52:33 +0100 (CET) From: Sebastian Reichel To: Heiko Stuebner , linux-rockchip@lists.infradead.org Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Boris Brezillon , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com, Sebastian Reichel Subject: [PATCH v2 4/4] arm64: dts: rockchip: rk3588-evb1: Enable GPU Date: Tue, 26 Mar 2024 17:52:08 +0100 Message-ID: <20240326165232.73585-5-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240326165232.73585-1-sebastian.reichel@collabora.com> References: <20240326165232.73585-1-sebastian.reichel@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240326_095238_181881_D5FBCD24 X-CRM114-Status: GOOD ( 12.52 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org From: Boris Brezillon Enable the Mali GPU in the RK3588 EVB1. This marks the GPU regulators as always-on, because the generic coupler regulator logic from the kernel can only handle them when they are marked as always-on. Technically it's okay to disable the regulators, when the GPU is not used. Considering the RK3588 EVB1 is not battery powered, the slightly increased power consumption for keeping the regulator always enabled is not a big deal. Thus it's better to enable GPU support than wait for a better solution. Signed-off-by: Boris Brezillon Signed-off-by: Sebastian Reichel --- arch/arm64/boot/dts/rockchip/rk3588-evb1-v10.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-evb1-v10.dts b/arch/arm64/boot/dts/rockchip/rk3588-evb1-v10.dts index de30c2632b8e..56c019b25fa8 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-evb1-v10.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588-evb1-v10.dts @@ -281,6 +281,12 @@ &gmac0_rgmii_clk status = "okay"; }; +&gpu { + mali-supply = <&vdd_gpu_s0>; + sram-supply = <&vdd_gpu_mem_s0>; + status = "okay"; +}; + &i2c2 { status = "okay"; @@ -484,12 +490,16 @@ rk806_dvs3_null: dvs3-null-pins { regulators { vdd_gpu_s0: dcdc-reg1 { + /* regulator coupling requires always-on */ + regulator-always-on; regulator-boot-on; regulator-min-microvolt = <550000>; regulator-max-microvolt = <950000>; regulator-ramp-delay = <12500>; regulator-name = "vdd_gpu_s0"; regulator-enable-ramp-delay = <400>; + regulator-coupled-with = <&vdd_gpu_mem_s0>; + regulator-coupled-max-spread = <10000>; regulator-state-mem { regulator-off-in-suspend; }; @@ -534,12 +544,16 @@ regulator-state-mem { }; vdd_gpu_mem_s0: dcdc-reg5 { + /* regulator coupling requires always-on */ + regulator-always-on; regulator-boot-on; regulator-min-microvolt = <675000>; regulator-max-microvolt = <950000>; regulator-ramp-delay = <12500>; regulator-enable-ramp-delay = <400>; regulator-name = "vdd_gpu_mem_s0"; + regulator-coupled-with = <&vdd_gpu_s0>; + regulator-coupled-max-spread = <10000>; regulator-state-mem { regulator-off-in-suspend; };