Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp911455rwb; Thu, 18 Aug 2022 14:45:11 -0700 (PDT) X-Google-Smtp-Source: AA6agR7irg+hnJ5sENWWHBkk2Brd9QG0YhxbtuZmoHdZInXFK6AsjXRdPZEjl1BknpU72DnVLS9O X-Received: by 2002:a05:6402:2683:b0:43e:76fc:f9db with SMTP id w3-20020a056402268300b0043e76fcf9dbmr3562067edd.390.1660859111196; Thu, 18 Aug 2022 14:45:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660859111; cv=none; d=google.com; s=arc-20160816; b=FseD7RrjX+nI7GEzbBP1yIr1VlXVqrbI0qpvZnDVtzUuMojueWSNxIEqnmozja0QKc CRGS++SRDvrSnH5M5+rv4c6ljFAxg8I2Qf2viqJbY32cYdzUr+mXjVhewpS+BE1g9/8x RomEmvb5pZ2eYpBtep8Rhj/thOv6/q7ovHCSDNC8f0g+RhTHfMX1n5ASZQUH+vl+3QmQ Rq/ntLSySriFJhOXNEA8OEdgt4IY1a5O4vOwtq3JNwQQklanNLrk1kH3wbL3mIDDQv5b BcWKeU2/OymQt5ARfUzn6Ip83EQEaeYGc7+9By3IArJRXS734ZZ7VKQ4FuZaOCDP8+PX jOYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Td0HtrFwZXDLpWYj5HjBTBE2QqzOwp8JQZQ9XJ4Wlqg=; b=RSx1FN48VtWPhMEPCaxs8X9HtDkhQJ46NgRCC6w4gthVnKm31VFs682joY1PWZ5A5p N/tmySD/AGJifqKkenvSLKXUl1YeCpnycDO+v3k3eaMrBQLR5CT20XkUAAGdq8umx+UD lKe/LNU3ceHRBB7shPwk3wwNAHEDSMrcZIfIIp81NAYaiqbpP8EUI3o0wIuw7AuC8JEU jlZc+07f5urK7xuvom4cSejnezdaQzBUKuJxJC0pCyvKHol9s2nfN/YRaglEEYOHUSuB ZNNq9mjcuInr8bYYWlmt2aLTcTCyy0smf2LUgm1qCBnULeYt4nzPIvnx6cSpEW9eRMow 9eyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=azkTqCcm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l25-20020aa7d959000000b0043e72fe84bdsi1794103eds.44.2022.08.18.14.44.44; Thu, 18 Aug 2022 14:45:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=azkTqCcm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345726AbiHRUj7 (ORCPT + 99 others); Thu, 18 Aug 2022 16:39:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345702AbiHRUjl (ORCPT ); Thu, 18 Aug 2022 16:39:41 -0400 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86444D2B3A; Thu, 18 Aug 2022 13:39:40 -0700 (PDT) Received: by mail-wr1-x433.google.com with SMTP id a4so3020955wrq.1; 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=kuklicuJhvmmAamrfoqiZkQHNt+pywzIznRx0gHSryb7yuNz7T2yN/xBvNsY53p4t6 Fc9eQASThxruLTSPmb6t9POH3Oiu9/ni2rHd9Xm82DhU5qcUzvJ0sILqpv3dCf9XEHl+ uxpLFtvhp4dac1e09eCLspSsAMMUKPfEZeWM2MpIu1eM24kxmTAunRS/1UdUmManXsNA pyrqbunkYyHxVCEusu/VHnFeX1rUW3yY86piBRwqYUcCL5TLmy0JUD4IuwSPR3ToJ0zc WO4OJ0JFhNtNEiUdbAjJBfZ2fAZ53J42/0kKJFTRQqNlWi+A/c7NUWvGwc4qxG8WD+ml ZG7Q== X-Gm-Message-State: ACgBeo0XHNPbbNcVqweHGr3MVaA+Ae3y9e1If7jBfIqN0/1lX3xpgxiT aRjDTY2azGRqfY3NvNXguY4= 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?q?Cl=C3=A9ment=20P=C3=A9ron?=" X-Google-Original-From: =?UTF-8?q?Cl=C3=A9ment=20P=C3=A9ron?= To: Rob Herring , Krzysztof Kozlowski , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland Cc: =?UTF-8?q?Cl=C3=A9ment=20P=C3=A9ron?= , 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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>; +}; -- 2.34.1