From patchwork Wed May 29 15:32:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 10967249 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 29D651395 for ; Wed, 29 May 2019 15:33:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 180D6285E8 for ; Wed, 29 May 2019 15:33:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0A4C6285CB; Wed, 29 May 2019 15:33:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 92CFA28A05 for ; Wed, 29 May 2019 15:33:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=lwzVvr3JgUoWCWqyZ7JwDq6No9NEqDIBdfS13stj7Pk=; b=cS2p4iCs81nRhf u5iGyPt2aA1uYm7r+DMayYbYW5jc6cZ3HtxPVodK54D+lOjhBc+N8wcRo1Xb7wQBkJOYaxs7mFqYa 3WfRNH6u0Ych81et8vurMWHSfCGwWJ24WDd1fsBMbwGkn+0yowr7NtvLOmPOh6mWazdg1Iw6H9Y2O OmRk0N3HTWf/fvN0S14CPdoNeRcXQHLY9Lsipgu7S8eaS/mSYKIHoiS7Ezb0oPPs4WkFzTk5tsJyx lKvdCgTOQRo8HUCME7dzbSSxMuYKr/chxkK5mLTZt5b/tlwb1v5y0XS6YuBXNwJmLSnNrZBh6AKTu sQN1LMyN3kMupLukMfTA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hW0Zo-0001bl-8F; Wed, 29 May 2019 15:33:16 +0000 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hW0Zl-0001bP-9g for linux-arm-kernel@lists.infradead.org; Wed, 29 May 2019 15:33:14 +0000 Received: by mail-wm1-x342.google.com with SMTP id 15so1914609wmg.5 for ; Wed, 29 May 2019 08:33:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=5W+VfwPfqMxuifytQsznT6sIYsecd+CfEiYRucHLtVw=; b=Fpnbn0HNja35ikeRV50pnLDukXTvZ8yfSsbNwOK438ie6IyOvAPt5PvjCLxjq8MQPH 4ZYtaLQWPnexoXzWYmYAf+LDrMCMeB5hFGjSuNA1v4sKE9YbyBTGBXGGefd3ZITHm5F8 WrUISOoGcPku4R+wXfliDsxAVY3ZoCWnIuothVksR0yPYWp2Kw0hPCjGMEMjG8Y90UWz fKWp4ZcWytL9/hIN5j+k0m7IgW+kIk+5VtEpQF92UFU2NJ1/lYs2Iwp6hRADpITIGMsB 9tjZ4JVWthW+Z2sjBQlKmp1JruLrcs0ok5Tb9xk/ZKaAiBAGyWlPgfaqmKXlDIzyDKAP ZsNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=5W+VfwPfqMxuifytQsznT6sIYsecd+CfEiYRucHLtVw=; b=Ow6OK4ArCcQSaWTHRkuDGMHHJJjhXozIJgu+88Qfrqx42bLL2U+w4nJzFAIb9HZzrJ Jh29XHgSWy6afMn0JkToG1WgjeLy+Ze335+IRcJNji8Ukp4uRmigQJqZiJ0ph6kL7PJ/ u4y+JrG6BGJS7tfo7eMj6FjUfJ7fRdrXbqKag5Ub+W6Ew5NNzx3krOhMFGqkPxCypKdj WrX1hDtXFzcm0KDrawuoakgP3/BT+pMx3nUweLslMbO/XODwib/HIKpwZ3E5GACcmGoJ o5McAybiFfMc1F9WAxzLRjvldAUAiZjlR/aNCeKcNnSwkZGRzaNvtEKL4fHXwh8kdSUF 3StA== X-Gm-Message-State: APjAAAU+P5L5FHA26DEY4oWUlUPUWExqLZJZ1tFP62hkGKEC9M/NQdQi JEXlRuxyY1PzJCenl5m1/qE= X-Google-Smtp-Source: APXvYqwDY7MrR1G0Ebmbd/oGtnz/upe08lmQ74Ra2glmRchate4lPg8V3/LoNaUcg9HKRwxBBfDugQ== X-Received: by 2002:a7b:c8cb:: with SMTP id f11mr2194459wml.54.1559143991698; Wed, 29 May 2019 08:33:11 -0700 (PDT) Received: from cizrna.lan ([109.72.12.156]) by smtp.gmail.com with ESMTPSA id c14sm19105489wrt.45.2019.05.29.08.33.10 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 29 May 2019 08:33:10 -0700 (PDT) From: Tomeu Vizoso To: linux-kernel@vger.kernel.org Subject: [PATCH] arm64: dts: allwinner: Add GPU operating points for H6 Date: Wed, 29 May 2019 17:32:55 +0200 Message-Id: <20190529153255.40038-1-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190521161102.29620-1-peron.clem@gmail.com> References: <20190521161102.29620-1-peron.clem@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190529_083313_343825_2CD3EB25 X-CRM114-Status: GOOD ( 11.72 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Tomeu Vizoso , Maxime Ripard , Chen-Yu Tsai , Rob Herring , =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= , "moderated list:ARM/Allwinner sunXi SoC support" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The GPU driver needs them to change the clock frequency and regulator voltage depending on the load. Signed-off-by: Tomeu Vizoso Cc: Clément Péron --- Feel free to pick up this patch if you are going to keep pushing this series forward. Thanks, Tomeu --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 66 ++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi index 6aad06095c40..decf7b56e2df 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi @@ -157,6 +157,71 @@ allwinner,sram = <&ve_sram 1>; }; + gpu_opp_table: opp-table2 { + compatible = "operating-points-v2"; + + opp00 { + opp-hz = /bits/ 64 <756000000>; + opp-microvolt = <1040000>; + }; + opp01 { + opp-hz = /bits/ 64 <624000000>; + opp-microvolt = <950000>; + }; + opp02 { + opp-hz = /bits/ 64 <576000000>; + opp-microvolt = <930000>; + }; + opp03 { + opp-hz = /bits/ 64 <540000000>; + opp-microvolt = <910000>; + }; + opp04 { + opp-hz = /bits/ 64 <504000000>; + opp-microvolt = <890000>; + }; + opp05 { + opp-hz = /bits/ 64 <456000000>; + opp-microvolt = <870000>; + }; + opp06 { + opp-hz = /bits/ 64 <432000000>; + opp-microvolt = <860000>; + }; + opp07 { + opp-hz = /bits/ 64 <420000000>; + opp-microvolt = <850000>; + }; + opp08 { + opp-hz = /bits/ 64 <408000000>; + opp-microvolt = <840000>; + }; + opp09 { + opp-hz = /bits/ 64 <384000000>; + opp-microvolt = <830000>; + }; + opp10 { + opp-hz = /bits/ 64 <360000000>; + opp-microvolt = <820000>; + }; + opp11 { + opp-hz = /bits/ 64 <336000000>; + opp-microvolt = <810000>; + }; + opp12 { + opp-hz = /bits/ 64 <312000000>; + opp-microvolt = <810000>; + }; + opp13 { + opp-hz = /bits/ 64 <264000000>; + opp-microvolt = <810000>; + }; + opp14 { + opp-hz = /bits/ 64 <216000000>; + opp-microvolt = <810000>; + }; + }; + gpu: gpu@1800000 { compatible = "allwinner,sun50i-h6-mali", "arm,mali-t720"; @@ -168,6 +233,7 @@ clocks = <&ccu CLK_GPU>, <&ccu CLK_BUS_GPU>; clock-names = "core", "bus"; resets = <&ccu RST_BUS_GPU>; + operating-points-v2 = <&gpu_opp_table>; status = "disabled"; };