From patchwork Thu Aug 18 20:39:27 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: 12947867 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 EA48AC00140 for ; Thu, 18 Aug 2022 20:41:16 +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=glUFsuBPTpofUzbxiIvU+21IPrXOwzKGTcb3cbGXYmg=; b=RugmlDOCFLIJLd sMEawf9RFHplgvn756rhd4YjLQJmjcwSj8edZgqzK3vPLww/PAzo6eiLVai3kyfDUTxzpPOQrotmJ SB3EUQwm86dBW+8mxOANvIhs1hO3VBUVZHuQ+QAPSkY8Ir+53W7JoDFlVAYqsXc4bp2DWBeL2L6Wq /jPy/T6lYO7bLrbJXFYv7O+xrh/PUGXYpWVbEnZsrGsQcvEhteGTTcCcoUGoAUk5/iDP0Iu2UQMi1 o9zFB6fVX4Rw5eJZKx5zYmvEFyN2TSh0VQWl3jghCR+oQMYew3XRBSWji3TsA01vg1DaTCD8+uauC uP6EjHyPAyCidqVmsJMg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oOmJJ-009KZ0-Vj; Thu, 18 Aug 2022 20:40:14 +0000 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oOmIo-009K6v-Si for linux-arm-kernel@lists.infradead.org; Thu, 18 Aug 2022 20:39:44 +0000 Received: by mail-wr1-x430.google.com with SMTP id n7so3013793wrv.4 for ; Thu, 18 Aug 2022 13:39:40 -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; bh=Td0HtrFwZXDLpWYj5HjBTBE2QqzOwp8JQZQ9XJ4Wlqg=; b=azkTqCcmKEAtMXuuCKQu7HAAZz0/4HJwQTove9ishZrhEvfDo16Wwdr8iDSJOW6YzS ecEtk3iZXCcMxKl3u4IaK/tANoJIKSjs+wAY25F9/FYtsqPmQMqcJ9VFiLw43skN/Wvt Fay0Abh+Dln/a2xzDZalWgRdYD3zKI4+V4sroq2t66Yx87CRm2b76mxDQWIg5B84q8T6 KQEJi3l6kQLolNd52OBcnoPJaB5VX4SKTmhGMUhfwxD/5gzv59pk6TAAAC3442qpRk72 mbPp2sU74kgtwToWRlN4Eb17EEpbrIsHIPBmkR0mKpLw/eUOXlYrJ7pyJMY5cbifcP1s lsLg== 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; bh=Td0HtrFwZXDLpWYj5HjBTBE2QqzOwp8JQZQ9XJ4Wlqg=; b=Q8n8VK1O/AewnDagWca6wEQha59+fTCZdC9J3FquoZVD+ONVLoHgmmszpeiwPFQE5v 6dDt8aWML9myoKWncE2pVyoKxW6ydTkilIuNrPjR9Rg3edemPQeHyCm33Fm/tHHpO3/Y O6tXyHtgqDPoAdR9oUo7TPp9HmPsxkDB77KyaCzQXULioheZFofBAfvoKiUwHYiit94T hEcIn9swh3N4IMZyCwPWjUMLle10st08fbNtmm3h6ZdkGpA1aRKk1elqNUXUNBYPSheV dBPeBRdEg0QJdg5SC5Nk7cjGCBGvJ2qjlH1pAJr/D1h08vcGvT1I9sMzyN1oHc4DcXSP FlGg== X-Gm-Message-State: ACgBeo1nYqERBo0iPQ/CA8YBX0Sl0mF6DxHZ+10Gm8lJOtE7d1KjJ9/V yh4C08QQLjVRxScThNnw+mE= X-Google-Smtp-Source: AA6agR5/+/njOHXTPadSzJKps8hv8RfrWwnKwcNcbGPbhMqQQdU4Idp/sXEYLwt2QNNJkscw4T0Ryw== X-Received: by 2002:a05:6000:1f0e:b0:221:6dd6:a2a3 with SMTP id bv14-20020a0560001f0e00b002216dd6a2a3mr2545931wrb.574.1660855178926; Thu, 18 Aug 2022 13:39:38 -0700 (PDT) Received: from localhost.localdomain (2a01cb000c0d3d00cc34c67bc193cac8.ipv6.abo.wanadoo.fr. [2a01:cb00:c0d:3d00:cc34:c67b:c193:cac8]) by smtp.gmail.com with ESMTPSA id u18-20020a05600c19d200b003a54d610e5fsm1571648wmq.26.2022.08.18.13.39.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Aug 2022 13:39:38 -0700 (PDT) From: " =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= " X-Google-Original-From: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= To: Rob Herring , Krzysztof Kozlowski , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland Cc: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 3/4] arm64: dts: allwinner: h6: Add GPU OPP table Date: Thu, 18 Aug 2022 22:39:27 +0200 Message-Id: <20220818203928.131059-4-cpe@outsight.tech> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220818203928.131059-1-cpe@outsight.tech> References: <20220818203928.131059-1-cpe@outsight.tech> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220818_133943_025205_122006C0 X-CRM114-Status: GOOD ( 14.92 ) 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 From: Clément Péron 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 | 88 +++++++++++++++++++ 1 file changed, 88 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..a66204243515 --- /dev/null +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-gpu-opp.dtsi @@ -0,0 +1,88 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +// Copyright (C) 2022 Clément Péron + +/ { + gpu_opp_table: gpu-opp-table { + 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>; +};