From patchwork Fri Jun 7 09:20:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ryan Walklin X-Patchwork-Id: 13689543 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 02A12C27C55 for ; Fri, 7 Jun 2024 09:22:18 +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=et3lQ4uMCVreVUVgSBD++9lxdC9fYTKdxGdz7RdlyGA=; b=NytuFnOPXd41Xs TGFDDicllrXBJQcNdmKu/5ujzKqzDkyR5gre35nKGsdXGbNzXImsV+JBS3C3iIM8akQM4MAEzXftA xvQvEpIPFvaOIz86dVIDXjCz6pEvcnkxcrAb74k6sD7oWV9fVj4fzg9/vriXhN+Bp4yCk3ggP3l5A wccNFMNx/ZaIeUVwrcQerV6uxC8NXcBhmF++RPh4FBg9nQqkn+ifRmKcK5zB6/DIpycl854CusY2S HvTWv72gf/rleBVrBdEMEG5Z4EXhbO7brBXVcf9EKujTLexLOybky3JXPZY9s9Sh9SSvkVBRdZjsg 0r72W1dIP5H7qdzGMCiA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sFVnT-0000000DHlz-0WKc; Fri, 07 Jun 2024 09:22:07 +0000 Received: from wfhigh2-smtp.messagingengine.com ([64.147.123.153]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sFVnN-0000000DHiZ-3DuI for linux-arm-kernel@lists.infradead.org; Fri, 07 Jun 2024 09:22:03 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailfhigh.west.internal (Postfix) with ESMTP id 62ACD180016F; Fri, 7 Jun 2024 05:21:58 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Fri, 07 Jun 2024 05:21:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=testtoast.com; h=cc:cc:content-transfer-encoding:content-type:date:date:from :from:in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm1; t=1717752118; x= 1717838518; bh=Sv5NIoXfLwdHPS/w/5DnE7wjrnRxjhnUorroHktg3tU=; b=a wahcg3sCHR4UHQUFSnX6RaAS1QpMgHqyeHI9sqkP/QoCykTzaZxtTXsFBG+k5603 85jgfuk31R40xEcbKldpm98jC97D6MoVwLHoDNb+JWkhZJLIvklXR1H/pMiA9Kif SGXCMrNacZGI3F2lQSo3wAyrewblG4Cor9kvTUVDwO8hRf4y+2ocn8MUWdtylGs+ iDki10dfan1dhkYbF83wE0RmQyMRfpTDr9DyjGmnD/yHIH2pxvEan8TyzSh85f2s HLceYu1j/TGVaoWgZT0ETh25aRtvMEENsQeDnII2O/c3XTwRROyseEEDBQMt9+yf IBWhbI6cHB0Wt1OUCtvgQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1717752118; x= 1717838518; bh=Sv5NIoXfLwdHPS/w/5DnE7wjrnRxjhnUorroHktg3tU=; b=A l2RjZgYJ5hF6BxQk/IoeHM/wIMtIZlsVHa4tB8yuqoCsF3N8WqaK4w9Z+P95hhqC E8eghKfddYDGvFSfM3xNyT722gozY2bfie75lDIPbb+sHdas7FaM878rbhUqBiCZ Rt/ogZWvtKxe+CD2Gqb+9z01ALJw8s3NCsCL5NAFUDdzQC4Kk4yH0gpgc9mfMR8J 7hIaQv4cvqXhVNdLmc2FgD0ybDC0+pMVI6T4n4YXZkoqO3HpRlqHrI7Ml7CF4BmN HEzr1NgpZayl3qAZAP/fo0nI3lfeY41T+06a+JP7yGvWQ8v0FMbK4gJTzQRcWyjz deQ8+JSeAGaLEXALIJWQQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfedttddgudehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomheptfihrghn ucghrghlkhhlihhnuceorhihrghnsehtvghsthhtohgrshhtrdgtohhmqeenucggtffrrg htthgvrhhnpeehgeduffeiveeiuddufeelffeuteeiiedulefhteevgefgffehheeuudff veejvdenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomheprhihrghnsehtvghsthhtohgrshhtrdgt ohhm X-ME-Proxy: Feedback-ID: idc0145fc:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 7 Jun 2024 05:21:52 -0400 (EDT) From: Ryan Walklin To: Yangtao Li , "Rafael J . Wysocki" , Viresh Kumar , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Andre Przywara Cc: linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, Chris Morgan , Sudeep Holla , Krzysztof Kozlowski , Conor Dooley , Nishanth Menon , Stephen Boyd , Rob Herring , Ryan Walklin Subject: [PATCH 1/3] cpufreq: sun50i: add Allwinner H700 speed bin Date: Fri, 7 Jun 2024 21:20:33 +1200 Message-ID: <20240607092140.33112-2-ryan@testtoast.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240607092140.33112-1-ryan@testtoast.com> References: <20240607092140.33112-1-ryan@testtoast.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240607_022201_870251_EEEC759B X-CRM114-Status: GOOD ( 10.62 ) 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 Support for the Allwinner H618, H618 and H700 was added to the sun50i cpufreq-nvmem driver recently [1] however at the time some operating points supported by the H700 (1.008, 1.032 and 1.512 GHz) and in use by vendor BSPs were found to be unstable during testing, so the H700 speed bin and the 1.032 GHz OPP were not included in the mainline driver. Retesting with kernel 6.10rc2 (which carries additional fixes for the driver) now shows stable operation with these points. Add the H700 speed bin to the driver. Signed-off-by: Ryan Walklin Reviewed-by: Andre Przywara --- [1] https://lore.kernel.org/linux-sunxi/20240418154408.1740047-1-andre.przywara@arm.com --- drivers/cpufreq/sun50i-cpufreq-nvmem.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/cpufreq/sun50i-cpufreq-nvmem.c b/drivers/cpufreq/sun50i-cpufreq-nvmem.c index 0b882765cd66f..969f22aadd950 100644 --- a/drivers/cpufreq/sun50i-cpufreq-nvmem.c +++ b/drivers/cpufreq/sun50i-cpufreq-nvmem.c @@ -91,6 +91,9 @@ static u32 sun50i_h616_efuse_xlate(u32 speedbin) case 0x5d00: value = 0; break; + case 0x6c00: + value = 5; + break; default: pr_warn("sun50i-cpufreq-nvmem: unknown speed bin 0x%x, using default bin 0\n", speedbin & 0xffff); From patchwork Fri Jun 7 09:20:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ryan Walklin X-Patchwork-Id: 13689545 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 76698C27C53 for ; Fri, 7 Jun 2024 09:22:24 +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=APV3LlKtrjgdu32YdlQZN1e9GMjUZsoKnLPhrb3UC00=; b=VyT7eTJZFP78pY ++QlueMEvlanIUg1h809fhJ5Jc55QXGtmWAwMdLvdJsBix1+TD0dO6RPvZnagtgrDkAOvgVg33e2g DVk9NNojT4UrZa2caLfdY07JRYufwiy+C7Yc9nfvm9DENGQkezcpSzpuuQiox9wAdt8HwiTb+GXw8 JUR/7ZHSdQRikN1dFRild3VnQyaiYgp8I9M/OcJ+mEbhPB0UOBnKaxs5B9tYOE9ilmoRedt2Ruc2+ csiZD/sB9lAPXdec8SopjNBwCCVUW0TCI9EdD2sw1q3kwIdj8wsm1zVIxpppg/zPCB11Rpf7LIy0Q 4cbHeKCiR8NPQufwaFjw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sFVnY-0000000DHq5-2CzK; Fri, 07 Jun 2024 09:22:12 +0000 Received: from wfout7-smtp.messagingengine.com ([64.147.123.150]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sFVnU-0000000DHlo-0bch for linux-arm-kernel@lists.infradead.org; Fri, 07 Jun 2024 09:22:09 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfout.west.internal (Postfix) with ESMTP id 789971C000A6; Fri, 7 Jun 2024 05:22:05 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Fri, 07 Jun 2024 05:22:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=testtoast.com; h=cc:cc:content-transfer-encoding:content-type:date:date:from :from:in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm1; t=1717752125; x= 1717838525; bh=72uI3eq4d6+OkMTAQhAMzTpRYez97FZdnnGMYFn3G1s=; b=s dVHFK8sfaSBfjusu0TcpOZG1OPAZSBfvw5/VRjzsKBH7A5cFLcD5wRii+sr6Qrcs 6IEzLTI/O21UA81v7z5dYpVpWeUV6am9w46rUnquEmlQpewbsc8EiSqfkrLz5KH8 +jyaoZuv6DMaqe8vMoyxGlnCfoqqLCPW8QlaoXF9hhfbmJZ1a0/X7SLEnOXJeCxL cYRFcQanmoJggImxXsJ4Cl3VYaIF3GyIvD1pW82q6yissRcAkguKSB3pjHlGk4Dq JNk8aYNdHclvT1uld7usSNhs/Jjo1zM3bK/Fv6tENoGjwnr8zwGfPErsWTxFaeg8 r4fZdmMNCsbrOoyn560ew== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1717752125; x= 1717838525; bh=72uI3eq4d6+OkMTAQhAMzTpRYez97FZdnnGMYFn3G1s=; b=q UBjp0xExKleqcgDMtMPtUgLITGp50zY2wRodVXNDuaVTBFDlw26Q3U5zwZZIEiTI Bkc7f2hfZCh6+OYWxM3q/LmjxhDKnuQ9WWvjwE0Y8yJIDMjRfbMjed0lLgWVUDfX 7WpbxHbYvHLr1Oo1lZN8MSCFCuH+hr+W70XpADWrXyGGk8bK9yzflp6e1sFGdeQj NbIthU85DyNwfvgpGbR5ye17Op+ZCYDyRufKdrcC3RbP3myrt6mQ6YVOjH67Zodi lzPv1EOMAsqyaRV5RuxKkOYbWYCUQWeqLBbAu+G0O1lxQ0+9hW2UHNNudrauS/Uh Eia9plifbzMzc5N0mE6EA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfedttddgudehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomheptfihrghn ucghrghlkhhlihhnuceorhihrghnsehtvghsthhtohgrshhtrdgtohhmqeenucggtffrrg htthgvrhhnpeffheeiffegtdfgffejteevgeefkeelieelkeevueetffetteduffevgeei ieehteenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hrhigrnhesthgvshhtthhorghsthdrtghomh X-ME-Proxy: Feedback-ID: idc0145fc:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 7 Jun 2024 05:22:00 -0400 (EDT) From: Ryan Walklin To: Yangtao Li , "Rafael J . Wysocki" , Viresh Kumar , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Andre Przywara Cc: linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, Chris Morgan , Sudeep Holla , Krzysztof Kozlowski , Conor Dooley , Nishanth Menon , Stephen Boyd , Rob Herring , Ryan Walklin Subject: [PATCH 2/3] arm64: dts: allwinner: h616: add additional CPU OPPs for the H700 Date: Fri, 7 Jun 2024 21:20:34 +1200 Message-ID: <20240607092140.33112-3-ryan@testtoast.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240607092140.33112-1-ryan@testtoast.com> References: <20240607092140.33112-1-ryan@testtoast.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240607_022208_289740_27E0CFCA X-CRM114-Status: GOOD ( 10.23 ) 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 The H700 now shows stable operation with the 1.008, 1.032 and 1.512 GHz DVFS operating points. The 1.5GHz OPP requires a VDD-CPU of 1.16V, obtained from the vendor BSP. This voltage is slightly above the recommended operating voltage for the H616 (H700 datasheet not publicly available) but well within the absolute maximum of 1.3V. Add the additional 1.032 GHz operating point to the H616 CPU-OPP table, and enable the 1.008 and 1.512 points for the H700. Signed-off-by: Ryan Walklin Reviewed-by: Andre Przywara --- .../dts/allwinner/sun50i-h616-cpu-opp.dtsi | 25 +++++++++++++------ 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h616-cpu-opp.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h616-cpu-opp.dtsi index aca22a7f0191c..dd10aaf472b66 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h616-cpu-opp.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-h616-cpu-opp.dtsi @@ -11,7 +11,7 @@ opp-480000000 { opp-hz = /bits/ 64 <480000000>; opp-microvolt = <900000>; clock-latency-ns = <244144>; /* 8 32k periods */ - opp-supported-hw = <0x1f>; + opp-supported-hw = <0x3f>; }; opp-600000000 { @@ -25,7 +25,7 @@ opp-720000000 { opp-hz = /bits/ 64 <720000000>; opp-microvolt = <900000>; clock-latency-ns = <244144>; /* 8 32k periods */ - opp-supported-hw = <0x0d>; + opp-supported-hw = <0x2d>; }; opp-792000000 { @@ -50,8 +50,16 @@ opp-1008000000 { opp-microvolt-speed2 = <950000>; opp-microvolt-speed3 = <950000>; opp-microvolt-speed4 = <1020000>; + opp-microvolt-speed5 = <900000>; clock-latency-ns = <244144>; /* 8 32k periods */ - opp-supported-hw = <0x1f>; + opp-supported-hw = <0x3f>; + }; + + opp-1032000000 { + opp-hz = /bits/ 64 <1032000000>; + opp-microvolt = <900000>; + clock-latency-ns = <244144>; /* 8 32k periods */ + opp-supported-hw = <0x20>; }; opp-1104000000 { @@ -59,8 +67,9 @@ opp-1104000000 { opp-microvolt-speed0 = <1000000>; opp-microvolt-speed2 = <1000000>; opp-microvolt-speed3 = <1000000>; + opp-microvolt-speed5 = <950000>; clock-latency-ns = <244144>; /* 8 32k periods */ - opp-supported-hw = <0x0d>; + opp-supported-hw = <0x2d>; }; opp-1200000000 { @@ -70,8 +79,9 @@ opp-1200000000 { opp-microvolt-speed2 = <1050000>; opp-microvolt-speed3 = <1050000>; opp-microvolt-speed4 = <1100000>; + opp-microvolt-speed5 = <1020000>; clock-latency-ns = <244144>; /* 8 32k periods */ - opp-supported-hw = <0x1f>; + opp-supported-hw = <0x3f>; }; opp-1320000000 { @@ -85,15 +95,16 @@ opp-1416000000 { opp-hz = /bits/ 64 <1416000000>; opp-microvolt = <1100000>; clock-latency-ns = <244144>; /* 8 32k periods */ - opp-supported-hw = <0x0d>; + opp-supported-hw = <0x2d>; }; opp-1512000000 { opp-hz = /bits/ 64 <1512000000>; opp-microvolt-speed1 = <1100000>; opp-microvolt-speed3 = <1100000>; + opp-microvolt-speed5 = <1160000>; clock-latency-ns = <244144>; /* 8 32k periods */ - opp-supported-hw = <0x0a>; + opp-supported-hw = <0x2a>; }; }; }; From patchwork Fri Jun 7 09:20:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ryan Walklin X-Patchwork-Id: 13689546 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 AF277C27C55 for ; Fri, 7 Jun 2024 09:22:31 +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=7KbkMr2sGJa40wuZldNS1tPHB75gql/3tGSplPLhfgI=; b=ghZ2m/U9jAgY9+ 6Aaq0ophBvnVaMFW1c2eW3XdOaoJHBBQTDLhnJApgr+3HatKxyL0Pq81sBeiFagurLD6js+Pxc2XC smywmF+3Ht0fHfNe0veMeyDXMEtifvkeAjkB8Cv+lXl2/OKo7NiKWk73L2ZiobuNA0cFDSwvPq4zN JtExyuLaW4rSs+dhJUCW2bIv53l3lc9x2SJ8LrqciN5cmHCrnGa8M4bgyrrCF9BUA5raaGlQj0lFM Do8VBlK/eqZ7tNWL7zfii6tzqrSPNqPK4gyYOmOhwMtr1bfM+nW5sRvoEnT0w/tdd3VxIYtPW5Xvu noz7zPSG5SOkgxTzq6VQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sFVnf-0000000DHvf-3WhN; Fri, 07 Jun 2024 09:22:19 +0000 Received: from wfhigh2-smtp.messagingengine.com ([64.147.123.153]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sFVna-0000000DHs7-2hX2 for linux-arm-kernel@lists.infradead.org; Fri, 07 Jun 2024 09:22:17 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailfhigh.west.internal (Postfix) with ESMTP id 8AF4F18000D1; Fri, 7 Jun 2024 05:22:12 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Fri, 07 Jun 2024 05:22:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=testtoast.com; h=cc:cc:content-transfer-encoding:content-type:date:date:from :from:in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm1; t=1717752132; x= 1717838532; bh=wTssuKZRMqBCH3zPoFw+akm/u8gEjJC/xTfr8YeMiz0=; b=D WUHK7rXz3l0rLZfn/vPVncIksZINnZ4mtj8lBOUVx+z1Cg3s9pUmF9lhyn8nwl+5 vt2qZ6O1P1jhe5nFAyhYCkAQI2pzJFDpZc+gu6zOs/FPPrPPocHg30KArcnyAtkq vIpZ0kemNm3RNmcn/8I/emtkvgWEGmD36ylU6yub9nCQZTVdbAuTFudXB+ErwPf5 UJ7S0qCkOVkZpw1LjRgZqhksavtGddTVsQzFV/Z1NN0kpxzefO7U97gypUeNewGq ba6dTHrNSv2SADv2DrzpxyiTfXLoYZH2vzHgl+TkQW6pikEUqIt/HZb64UGiuH0g PCXpu2ksMMXwKeQZ1y4/w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1717752132; x= 1717838532; bh=wTssuKZRMqBCH3zPoFw+akm/u8gEjJC/xTfr8YeMiz0=; b=J 6PbmdegERKFAGh9P38ELaQFHgRHu64Q/Y7sK2FZtFSx9r2v49r9IQOQfelxHBhLG IR33aYp4zumsj1AFmA19be0cay0GWMOzx4VmEaXmBDb0ZcFmqO6atTzZfwTrMyMy 5y1kqjX91t2CY8ZhHfjCNWTMGCzGAeXNjaxg8neDCKVZIapm31f3OpuMW9cBSRk0 IaUae33tO9Mu2BJqdSV2E0gI4lnuwZ/pXXcAmFBOld/x29HISJyJw1Wf13h927ii fNrs5bJb4EcMLajMK9QW4ZshdrZQ0upMDFqCRKfXoMP+tmI5xdp7mZTtw6K26Zd3 gTcmBcyjDKJWThybYzGzQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfedttddgudehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomheptfihrghn ucghrghlkhhlihhnuceorhihrghnsehtvghsthhtohgrshhtrdgtohhmqeenucggtffrrg htthgvrhhnpeffheeiffegtdfgffejteevgeefkeelieelkeevueetffetteduffevgeei ieehteenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hrhigrnhesthgvshhtthhorghsthdrtghomh X-ME-Proxy: Feedback-ID: idc0145fc:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 7 Jun 2024 05:22:07 -0400 (EDT) From: Ryan Walklin To: Yangtao Li , "Rafael J . Wysocki" , Viresh Kumar , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Andre Przywara Cc: linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, Chris Morgan , Sudeep Holla , Krzysztof Kozlowski , Conor Dooley , Nishanth Menon , Stephen Boyd , Rob Herring , Ryan Walklin Subject: [PATCH 3/3] arm64: dts: allwinner: rg35xx: Enable DVFS CPU frequency scaling Date: Fri, 7 Jun 2024 21:20:35 +1200 Message-ID: <20240607092140.33112-4-ryan@testtoast.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240607092140.33112-1-ryan@testtoast.com> References: <20240607092140.33112-1-ryan@testtoast.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240607_022214_962831_F4603AB7 X-CRM114-Status: GOOD ( 11.57 ) 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 The Anbernic RG35XX device variants (-2024, -H, -Plus and -SP) are the only currently known devices to have an Allwinner H700 SoC. The closely related RG28XX also has the H700 but a mainline DT for this device has not yet been submitted. Include the H616 CPU OPP table in the base device DTS, and increase the DCDC1 regulator (vdd-cpu) upper voltage range to 1.16V, allowing the CPU to reach 1.5GHz. Signed-off-by: Ryan Walklin Reviewed-by: Andre Przywara --- .../boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-2024.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-2024.dts b/arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-2024.dts index ee30584b6ad70..afb49e65859f9 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-2024.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-2024.dts @@ -6,7 +6,7 @@ /dts-v1/; #include "sun50i-h616.dtsi" - +#include "sun50i-h616-cpu-opp.dtsi" #include #include #include @@ -221,7 +221,7 @@ regulators { reg_dcdc1: dcdc1 { regulator-always-on; regulator-min-microvolt = <900000>; - regulator-max-microvolt = <1100000>; + regulator-max-microvolt = <1160000>; regulator-name = "vdd-cpu"; };