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: 802789 Received: from wfhigh2-smtp.messagingengine.com (wfhigh2-smtp.messagingengine.com [64.147.123.153]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2F09615B99A for ; Fri, 7 Jun 2024 09:22:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.153 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717752123; cv=none; b=sDjWHc+SEFuyaATKeYcEqDkhwTPnCntpiIY+bWVpizTL8lTzWZjXdbo+qgVE1dTjZJHg8q08TD7KnKqfasn4BdnTGrfs+S03RbZsBYd+p6KGc4A44k2o3plaDA5sjtBpzt5ER8RfRpYvXAMHlPpixrBu6Yge545uYm0jswRA/OA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717752123; c=relaxed/simple; bh=MZcEuW+lECDPkKx+XC7YSMmnOTsPQ07enkQZFogNwSw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=T7mG7nS3HvOREejmR/g0HaV8Ibhn0X2ycyc30mUjYOHbcFTQjs8UZWxpu2DdHhfErJ+GeR/DTA4GKZS2BukSpfGhPCQTGPaVru+gguS/B8i7uFdQrbW0ZvWM7HYUNo98coJljPmh4U7U+j9GKX2DNQ4okx9IdWXReBXLQGtNlWA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=testtoast.com; spf=pass smtp.mailfrom=testtoast.com; dkim=pass (2048-bit key) header.d=testtoast.com header.i=@testtoast.com header.b=awahcg3s; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=Al2RjZgY; arc=none smtp.client-ip=64.147.123.153 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=testtoast.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=testtoast.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=testtoast.com header.i=@testtoast.com header.b="awahcg3s"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="Al2RjZgY" 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> Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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);