Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2996844ybt; Sat, 4 Jul 2020 03:27:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8M+s/w+y87OIKhDDVXjtHvIAEMFounnV4gK8V00Dtvuj0rQHxTVlpsmc9HTnPGQ7KE7D7 X-Received: by 2002:a17:906:7b54:: with SMTP id n20mr35237295ejo.144.1593858443353; Sat, 04 Jul 2020 03:27:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593858443; cv=none; d=google.com; s=arc-20160816; b=0OYTtTQvytzZ5VvX+lw++AWKu4Jd7jtoXh5aumhqm3ooEt/51Mo0xc+ixV8dOA6kTa HmIgA+MrjBgG9OeTLR8FejywScxVbcwflKdL7b4wrb+6PkkLECPLk6JsZ/9Kz5sRtPqm oXMR4FYg0Ob3s16giMPuifLnmo4AXWx0hk0eJYJ7c1VIDa/p/AGwV4kbPnmzdOLDGFmr gyqE/QincRLspDvUr62G+g/SDPwX4s2FBEpUz9REaiN8c0qcVvhc3+SSnQ5T29olOAmW qOPviL4ra8UZWMmcz/qGj0dIdxomGiqX+mbK8BrNN6SkhWgZKXaVthbdfh9u4bjIzXfO t7kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=XV7x1Z5zj5Wjg3tK4n9i9paBzVB6Q8ndZsAB3QS+Wh0=; b=f5BqTtu9lA/2JvgRCtuIeqsr5T6tqX7WGq/h4qO+ii8imYjX8SnOZ1RHLn927v3Rir AXBg1avCqTYeWwZNw4yw99yOOxn3rNCzvacb0NLYlMeSCmhvbsV6FX+i41O38/yN77/T MyOll7vjiS0OjLW/8lsez3qGU12znNOAfMKPnmkLQYx+pZ0mRYuUweGyToLgv8smu+a+ fU0rNMp6Sp7PsR+yEzoDp5qNW5zWS0eLEPS5fBQ+EJejBDTSkyx2c9gTjXldETLRsRyi 9HNmpGuddrtNvgg+ekHmD6UyMRqby6dxBwXWrOMkJ28np0B71JbWHXA3Ij3Xn7/VuBTD 0kFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YJk9vSxe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d18si8897812ejt.487.2020.07.04.03.27.00; Sat, 04 Jul 2020 03:27:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YJk9vSxe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1727943AbgGDK0S (ORCPT + 99 others); Sat, 4 Jul 2020 06:26:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727865AbgGDKZ6 (ORCPT ); Sat, 4 Jul 2020 06:25:58 -0400 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1041C08C5DE for ; Sat, 4 Jul 2020 03:25:57 -0700 (PDT) Received: by mail-wm1-x343.google.com with SMTP id g75so34241507wme.5 for ; Sat, 04 Jul 2020 03:25:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=XV7x1Z5zj5Wjg3tK4n9i9paBzVB6Q8ndZsAB3QS+Wh0=; b=YJk9vSxe5NhDgZFDHmcheGZlJww4ux80NP9cQd2gkxXxRkH2UhzJimhJGqI4CM2X2f jRDNT+bVpr0toyfx5Lv7tLOCzQBoWaY/FsLAyQ0O6I0+OdWI7+YI+LiTf/22WEfpTGNQ cfu9pKktCp+C5Do2vDPasFu4SzNW7SiYwiKsVoaJ4aL82YmNyS0vBtKrCYfxskSg5Hkt /U4TJs2tkW+nX0N+YpgfNLauTOZbfBTUu6qyTAv/+WeAY4xml1WptBbLSqGJhQSTrLBV rwr09ULZ2C0GNSkTf6F10J1S4bJTd72Oykl+ByOp5INRS+rzUsZQ0aApujfcKqZz16N9 GaVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=XV7x1Z5zj5Wjg3tK4n9i9paBzVB6Q8ndZsAB3QS+Wh0=; b=lY9or0W2lLNYBDIUcJRbNJI4895Kf1Y8HyMs770XHYky+TEWWb7Rt7cWIFnN2NSg+y k3xi23MuSumx46jGA8taCtHpbosXFEg0aV7HFrTsohbGgMP1R7d3EkKZe98GI+2F0+er jXh3Dr3KeG3rabJ9KqkbWihA7YJ3qkDH3+6vd5uZu0r/YyUCYeN2yNHcDjIS3Xb8iqUA 9c1Xxl/KLFQQdgACcZoET44uRSxGI/TEyBokbsxd6VSFKd71tj8X8kyurYsodB2nzFWF 9ILJ10dext1lpeDeJOfcmdtHVAAJLI/IiHs8u4kYbOb7Dw+ygVjFQiMbb5EeKAd494a5 +c2w== X-Gm-Message-State: AOAM531l/9bxhlDrqi0uF40BEpPlPXraqPm3i9sm5Lik4MXttBxagvN2 WXoU+wPto8hovApEUCce2tk= X-Received: by 2002:a1c:9d96:: with SMTP id g144mr43273725wme.163.1593858356565; Sat, 04 Jul 2020 03:25:56 -0700 (PDT) Received: from clement-Latitude-7490.numericable.fr (213-245-241-245.rev.numericable.fr. [213.245.241.245]) by smtp.gmail.com with ESMTPSA id g14sm16421428wrm.93.2020.07.04.03.25.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Jul 2020 03:25:55 -0700 (PDT) From: =?UTF-8?q?Cl=C3=A9ment=20P=C3=A9ron?= To: Rob Herring , Tomeu Vizoso , Steven Price , Alyssa Rosenzweig , Viresh Kumar , Nishanth Menon , Stephen Boyd , Maxime Ripard , Chen-Yu Tsai Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Cl=C3=A9ment=20P=C3=A9ron?= Subject: [PATCH v2 13/14] [DO NOT MERGE] arm64: dts: allwinner: h6: Add GPU OPP table Date: Sat, 4 Jul 2020 12:25:34 +0200 Message-Id: <20200704102535.189647-14-peron.clem@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200704102535.189647-1-peron.clem@gmail.com> References: <20200704102535.189647-1-peron.clem@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 80 ++++++++++++++++++++ 1 file changed, 80 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi index 8f514a2169aa..a69f9e09a829 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi @@ -174,6 +174,7 @@ gpu: gpu@1800000 { clocks = <&ccu CLK_GPU>, <&ccu CLK_BUS_GPU>; clock-names = "core", "bus"; resets = <&ccu RST_BUS_GPU>; + operating-points-v2 = <&gpu_opp_table>; #cooling-cells = <2>; status = "disabled"; }; @@ -1036,4 +1037,83 @@ map0 { }; }; }; + + 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>; + }; + }; }; -- 2.25.1