Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp103668lqh; Thu, 30 May 2024 15:49:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVlFTGRIurrU0v2cZsC4AYg5WoGC+pOm5CoPtHP4dA0l13yEPH+9pJI1haXv1Zmc35bKoovLYmr6iWDKIcMF4zSbpwBBZZSWsvP3I5wcg== X-Google-Smtp-Source: AGHT+IHQXl9mAqssHogR7FCSBR5sC2Y6S6iJunq/nR0QHmmrpS2WOvfOoLQZP+OjlHteJez4dXqn X-Received: by 2002:adf:ee46:0:b0:355:7ab:2a86 with SMTP id ffacd0b85a97d-35e0f285ab5mr40945f8f.28.1717109346238; Thu, 30 May 2024 15:49:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717109346; cv=pass; d=google.com; s=arc-20160816; b=rhax1oDsXuzfSKX3Ashhq/hbUHQcw2LlJeqaG2mhYch1BN2R4YEBa4cE9LxV59HNoE N/e+FTxHHu0jpDpZJju6aFfB72TUAA4LJX11YAXAYqttXnDPR4X8JN2fjkZb8wwwGwkq usVDaAw2WGTGuN0fQUXMCbfvcVbfS/RCzMqkKwl3UK6s1NPQ4YcjfAsBH4QBJu9WxogP j8SOdAewRUfyPxscLso/qHvw17oa6BhjmnEcpCKYjxfC42cpDS42iYGGm4LSwT0jyNql yCGKmBZ5ryBxcQ1w1aVG3l08EJoyfrFN8rLhQJnuxcxHNiQpl/IkI9cW3SuPCkYE+d+p eY4w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:message-id:references:in-reply-to:subject :cc:to:from:date:dkim-signature:mime-version:list-unsubscribe :list-subscribe:list-id:precedence; bh=K4sL/egTIeR1PknoeeFf007Kuv86Tkpmgtv7gnFj3Hg=; fh=vd6tkCdmYhbBVKSO/NQNsHoiaWb660YV9m7An2XnuQ0=; b=H76f7fRJo4bPmJ6qmfojCXsSvZSAdXtLSrX3bqAYFvwU5TU4JhNf8ajVexyJGifyep taeufU4zyU5i/uE4/2X1D4NRrSiMBT8xhpESB6ek8rIMs8Gc9sCpNpoXTv8jNVmvQrHx 5b4uJsD/yTvXlndZuwSWePACy52volwodelszSRVS8v+LY6h4e/I0hyYPQ6vKpjfNhYK cg5UzMHbRNnnoGvLfPAKS0soU9vMVkH4RTk/tnCyOOgjShirE+W9vhiGXkDN9TASXPwN n4C7abOZ502GpPCZ7MvglAbNQanBCbd9o+EnAzfFcvTZf8tlp/OgfZpShk6F5SZfy7T+ u1Ig==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@manjaro.org header.s=2021 header.b=P3OkpweB; arc=pass (i=1 spf=pass spfdomain=manjaro.org dkim=pass dkdomain=manjaro.org dmarc=pass fromdomain=manjaro.org); spf=pass (google.com: domain of linux-kernel+bounces-195988-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195988-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=manjaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a67ea992306si20247966b.684.2024.05.30.15.49.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 15:49:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-195988-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@manjaro.org header.s=2021 header.b=P3OkpweB; arc=pass (i=1 spf=pass spfdomain=manjaro.org dkim=pass dkdomain=manjaro.org dmarc=pass fromdomain=manjaro.org); spf=pass (google.com: domain of linux-kernel+bounces-195988-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195988-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=manjaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id EB85B1F25677 for ; Thu, 30 May 2024 22:49:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DC3C9183070; Thu, 30 May 2024 22:48:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=manjaro.org header.i=@manjaro.org header.b="P3OkpweB" Received: from mail.manjaro.org (mail.manjaro.org [116.203.91.91]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C8A9F17545; Thu, 30 May 2024 22:48:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=116.203.91.91 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717109337; cv=none; b=PUoLKhHvt6RL+EHSFmkRz6TatRYaaIlHRpSN43O6ADdalouYENDFnrUlxJu8qTgOQI+JsR40s3/H3GqaIpbyPnjGy5yxXJuv//gKwnweMK7Z6lvDROQMZKpB+GivoB8d3V0niAkspRFC0UQpN+esdERhI9V3kWtLttkoVj7R7ms= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717109337; c=relaxed/simple; bh=HiHXy0I7U8DlwKjgXTlVmHkKsdDBwRXVxNpeHcKqPMk=; h=MIME-Version:Date:From:To:Cc:Subject:In-Reply-To:References: Message-ID:Content-Type; b=fpELeU/CTkbFaCQYT37SZbKHfF5cQOTwLElwAzoU1M1r715DkXlrpwJI2PrysoDg/XAsLMuftOI4gBTdqDTPb3s9bGFjOp1MReDDKvQwdv51Jnj7pW75NF9X6R1BrW3zXZOCrdqSdhkoz6bCi2lsoc0pUVCJnnGoTYQPdxe1Bcs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=manjaro.org; spf=pass smtp.mailfrom=manjaro.org; dkim=pass (2048-bit key) header.d=manjaro.org header.i=@manjaro.org header.b=P3OkpweB; arc=none smtp.client-ip=116.203.91.91 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=manjaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=manjaro.org Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=manjaro.org; s=2021; t=1717109326; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=K4sL/egTIeR1PknoeeFf007Kuv86Tkpmgtv7gnFj3Hg=; b=P3OkpweBrC8m/LrCu9VrgJnpgFUdSVz/hgR9onAHwrwdUCVR3aR9WX2eqd7dLp9NkDS4DG zfmRA9yNPGTdiAZe+2IWEU32W5O5bl94y5pEX+Ed1h/8QcPjSVHsESGEGZAnwCqFOeMpTu V31t2e2IzYZhn/Yi1VP9TZzaxhtoRPqdeVclnYA0AEUU515VCIhMvUKED9AT8ksq/vatEi XSU5Q5fORj5ZSn3xPrTkIdXYNJGMA+1SBPG7b0cHdCICoVqPmChdvollvYF4miJrCvaqdh stFEgm8PrUUm0mtOSKB1vrJZvY2Z4fbrVOpe73xx/lzgBV6PRNyKbb6xDmx3lw== Date: Fri, 31 May 2024 00:48:45 +0200 From: Dragan Simic To: wens@kernel.org Cc: linux-rockchip@lists.infradead.org, heiko@sntech.de, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, robh+dt@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Diederik de Haas Subject: Re: [PATCH] arm64: dts: rockchip: Fix the DCDC_REG2 minimum voltage on Quartz64 Model B In-Reply-To: References: Message-ID: <20cf041dcd6f752174bf29d2a53c61b3@manjaro.org> X-Sender: dsimic@manjaro.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Authentication-Results: ORIGINATING; auth=pass smtp.auth=dsimic@manjaro.org smtp.mailfrom=dsimic@manjaro.org Hello Chen-Yu, On 2024-05-29 18:27, Chen-Yu Tsai wrote: > On Tue, May 21, 2024 at 1:20 AM Dragan Simic > wrote: >> >> Correct the specified regulator-min-microvolt value for the buck >> DCDC_REG2 >> regulator, which is part of the Rockchip RK809 PMIC, in the Pine64 >> Quartz64 >> Model B board dts. According to the RK809 datasheet, version 1.01, >> this >> regulator is capable of producing voltages as low as 0.5 V on its >> output, >> instead of going down to 0.9 V only, which is additionally confirmed >> by the >> regulator-min-microvolt values found in the board dts files for the >> other >> supported boards that use the same RK809 PMIC. >> >> This allows the DVFS to clock the GPU on the Quartz64 Model B below >> 700 MHz, >> all the way down to 200 MHz, which saves some power and reduces the >> amount of >> generated heat a bit, improving the thermal headroom and possibly >> improving >> the bursty CPU and GPU performance on this board. >> >> This also eliminates the following warnings in the kernel log: >> >> core: _opp_supported_by_regulators: OPP minuV: 825000 maxuV: 825000, >> not supported by regulator >> panfrost fde60000.gpu: _opp_add: OPP not supported by regulators >> (200000000) >> core: _opp_supported_by_regulators: OPP minuV: 825000 maxuV: 825000, >> not supported by regulator >> panfrost fde60000.gpu: _opp_add: OPP not supported by regulators >> (300000000) >> core: _opp_supported_by_regulators: OPP minuV: 825000 maxuV: 825000, >> not supported by regulator >> panfrost fde60000.gpu: _opp_add: OPP not supported by regulators >> (400000000) >> core: _opp_supported_by_regulators: OPP minuV: 825000 maxuV: 825000, >> not supported by regulator >> panfrost fde60000.gpu: _opp_add: OPP not supported by regulators >> (600000000) >> >> Fixes: dcc8c66bef79 ("arm64: dts: rockchip: add Pine64 Quartz64-B >> device tree") >> Cc: stable@vger.kernel.org >> Reported-By: Diederik de Haas >> Signed-off-by: Dragan Simic >> --- >> arch/arm64/boot/dts/rockchip/rk3566-quartz64-b.dts | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/arch/arm64/boot/dts/rockchip/rk3566-quartz64-b.dts >> b/arch/arm64/boot/dts/rockchip/rk3566-quartz64-b.dts >> index 26322a358d91..b908ce006c26 100644 >> --- a/arch/arm64/boot/dts/rockchip/rk3566-quartz64-b.dts >> +++ b/arch/arm64/boot/dts/rockchip/rk3566-quartz64-b.dts >> @@ -289,7 +289,7 @@ vdd_gpu: DCDC_REG2 { >> regulator-name = "vdd_gpu"; >> regulator-always-on; >> regulator-boot-on; >> - regulator-min-microvolt = <900000>; >> + regulator-min-microvolt = <500000>; > > The constraints here are supposed to be the constraints of the > consumer, > not the provider. The latter is already known by the implementation. > > So if the GPU can go down to 0.825V or 0.81V even (based on the > datasheet), > this should say the corresponding value. Surely the GPU can't go down > to > 0.5V? > > Can you send another fix for it? I can confirm that the voltage of the power supply of GPU found inside the RK3566 can be as low as 0.81 V, according to the datasheet, or as low as 0.825 V, according to the GPU OPPs found in rk356x.dtsi. If we want the regulator-min-microvolt parameter to reflect the contraint of the GPU as the consumer, which I agree with, we should do that for other RK3566-based boards as well, and almost surely for the boards based on the RK3568, too. This would ensure consistency, but I'd like to know are all those resulting patches going to be accepted before starting to prepare them? There will be a whole bunch of small patches. >> regulator-max-microvolt = <1350000>; >> regulator-ramp-delay = <6001>;