From patchwork Mon Sep 5 17:15:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= X-Patchwork-Id: 12966437 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 90227ECAAD3 for ; Mon, 5 Sep 2022 18:54:26 +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=6u47zrQlKbdNuJtUIGsLHdPuhyHk9r2MpLSPM5nhUDU=; b=ZYHIj73Bqni+Y7 ZyD4M+SLZb2puRJIL8R37WrhTBBbUiRB5H+rSBOE6h1iFtKG/zDiLt7HhKu51lGoe0pnATqm7gG7A +7+8K8IAaMtXh8aUB8na23Izn8ruzQX4UpFAZf+Kddd02Db3RM7M2e2SjJlJM0vzB6QI+UZk+6E7l rDTDUCxTjjguaB05VhMzgHpBhNs9nkNfySIZDhqpifdnIO/0KkntK0hzhxugB8w47xiZhDUdBimx0 E4XvNAhtRuDwSe7KngY+if7IBlqe2zSmGD2uSpkR/gE78MPqBd9ULXLn6m0kEgdsaoktf6j0y3Sun OYRNZyvaoHebRYIbsbqQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oVHDd-008lDJ-9v; Mon, 05 Sep 2022 18:53:13 +0000 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oVFhk-007Nqo-QP for linux-arm-kernel@lists.infradead.org; Mon, 05 Sep 2022 17:16:14 +0000 Received: by mail-wm1-x331.google.com with SMTP id m3-20020a05600c3b0300b003a5e0557150so7236609wms.0 for ; Mon, 05 Sep 2022 10:16:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=xKKdd8knaUF4CfPFiItNEFQjHw2lmLd2sFP0gotQUoc=; b=OhBlx7noH+o5DvkRo55BFAvGqEBFZcHvM076WOAMakk4X1YAbEnD/4zZSPoUbMLKn8 GCqLozvfg3sM4eF/Z3B8AN6BGh3DmqameOTtjxVdiOmRt9/s8lmsuJjlipE/lJpt4KIa i6PNhjzwlOIk8MVESBsN7sSFzU8kOocHRA2kEEatE0iZdD4cIYt0gYLkQ65bDDnpfebw 4jhXzF8iOqpcFee11lLITmknguDUQOJ+TzZ6/gMKNBraL4smwbOgPKYNd7zrlzOyizXO LqG9iD19V4ooKXT/p1JlKI5lGjlShW45Zgp11uP6mEbh2Jhk448+GFJ2pxY29k92mIm3 CzKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=xKKdd8knaUF4CfPFiItNEFQjHw2lmLd2sFP0gotQUoc=; b=bLNWlL14zSiMbs6x9WCQHDmlaF539g6w+j46tIV1XlUTTnnMCsUUISJju/chdl+gAW xdPLlHUXK08N2B4ASCu9zT4ixpfb4AhfIrwhEWTxtxHEvy5eAdLxEmt7AFJcJArcu9Pm gEa91RtnNMAf9NbxO27fgWCqc/D2VZUcxsLGz8z4MNEwGkk5wx34J95fNaghD2frcBOs CT+ds1GhA+J2Jkk8Umalu2sUvbF3DVuQVtwj3/4SZr2pBIFbO0Y3z6EZqsw/fAEYrdLw P1rRvu1p2NRG+TgLX+E8mT8WID49HjbL2qnmHoK+sLfAlQpGeqSUaDHlVQ6DkbGdZiE3 KOIA== X-Gm-Message-State: ACgBeo2FlgRKcWNjaBj9gFFCp1/aHnzcj4bQdoNfzppsMHmuhye2y5xP kosY1ZvvsPhazPjclGPduhI= X-Google-Smtp-Source: AA6agR5ueP099YrXQqJOQ1y3ebsmQjU3lSxyWHTXdI0uL4Aptie+Igfzf06D0NoHF6W2grQdgoviIw== X-Received: by 2002:a05:600c:1912:b0:3a5:f4fc:cd40 with SMTP id j18-20020a05600c191200b003a5f4fccd40mr11400213wmq.205.1662398170173; Mon, 05 Sep 2022 10:16:10 -0700 (PDT) Received: from Clement-Blade14.home (2a01cb000c0d3d00995730c36491d21b.ipv6.abo.wanadoo.fr. [2a01:cb00:c0d:3d00:9957:30c3:6491:d21b]) by smtp.gmail.com with ESMTPSA id v22-20020a7bcb56000000b003a5ad7f6de2sm11437072wmj.15.2022.09.05.10.16.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Sep 2022 10:16:09 -0700 (PDT) From: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= To: Rob Herring , Krzysztof Kozlowski , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Catalin Marinas , Will Deacon , Tomeu Vizoso , Steven Price , Alyssa Rosenzweig , David Airlie , Daniel Vetter , Bjorn Andersson , Shawn Guo , Geert Uytterhoeven , Arnd Bergmann , Marcel Ziswiler , Vinod Koul , Dmitry Baryshkov , Biju Das Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= Subject: [PATCH v3 3/5] arm64: dts: allwinner: h6: Add GPU OPP table Date: Mon, 5 Sep 2022 19:15:59 +0200 Message-Id: <20220905171601.79284-4-peron.clem@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220905171601.79284-1-peron.clem@gmail.com> References: <20220905171601.79284-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-20220905_101612_899011_1FCDA41C X-CRM114-Status: GOOD ( 14.84 ) 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 an Operating Performance Points table for the GPU to enable Dynamic Voltage & Frequency Scaling on the H6. The voltage range is set with minival voltage set to the target and the maximal voltage set to 1.2V. This allow DVFS framework to work properly on board with fixed regulator. Signed-off-by: Clément Péron --- .../boot/dts/allwinner/sun50i-h6-gpu-opp.dtsi | 87 +++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-h6-gpu-opp.dtsi diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-gpu-opp.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6-gpu-opp.dtsi new file mode 100644 index 000000000000..b48049c4fc85 --- /dev/null +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-gpu-opp.dtsi @@ -0,0 +1,87 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +// Copyright (C) 2022 Clément Péron + +/ { + gpu_opp_table: opp-table-gpu { + compatible = "operating-points-v2"; + + opp-216000000 { + opp-hz = /bits/ 64 <216000000>; + opp-microvolt = <810000 810000 1200000>; + }; + + opp-264000000 { + opp-hz = /bits/ 64 <264000000>; + opp-microvolt = <810000 810000 1200000>; + }; + + opp-312000000 { + opp-hz = /bits/ 64 <312000000>; + opp-microvolt = <810000 810000 1200000>; + }; + + opp-336000000 { + opp-hz = /bits/ 64 <336000000>; + opp-microvolt = <810000 810000 1200000>; + }; + + opp-360000000 { + opp-hz = /bits/ 64 <360000000>; + opp-microvolt = <820000 820000 1200000>; + }; + + opp-384000000 { + opp-hz = /bits/ 64 <384000000>; + opp-microvolt = <830000 830000 1200000>; + }; + + opp-408000000 { + opp-hz = /bits/ 64 <408000000>; + opp-microvolt = <840000 840000 1200000>; + }; + + opp-420000000 { + opp-hz = /bits/ 64 <420000000>; + opp-microvolt = <850000 850000 1200000>; + }; + + opp-432000000 { + opp-hz = /bits/ 64 <432000000>; + opp-microvolt = <860000 860000 1200000>; + }; + + opp-456000000 { + opp-hz = /bits/ 64 <456000000>; + opp-microvolt = <870000 870000 1200000>; + }; + + opp-504000000 { + opp-hz = /bits/ 64 <504000000>; + opp-microvolt = <890000 890000 1200000>; + }; + + opp-540000000 { + opp-hz = /bits/ 64 <540000000>; + opp-microvolt = <910000 910000 1200000>; + }; + + opp-576000000 { + opp-hz = /bits/ 64 <576000000>; + opp-microvolt = <930000 930000 1200000>; + }; + + opp-624000000 { + opp-hz = /bits/ 64 <624000000>; + opp-microvolt = <950000 950000 1200000>; + }; + + opp-756000000 { + opp-hz = /bits/ 64 <756000000>; + opp-microvolt = <1040000 1040000 1200000>; + }; + }; +}; + +&gpu { + operating-points-v2 = <&gpu_opp_table>; +};