From: Dragan Simic <dsimic@manjaro.org>
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 <didi.debian@cknow.org>
Subject: Re: [PATCH] arm64: dts: rockchip: Fix the DCDC_REG2 minimum voltage on Quartz64 Model B
Date: Fri, 31 May 2024 00:48:45 +0200 [thread overview]
Message-ID: <20cf041dcd6f752174bf29d2a53c61b3@manjaro.org> (raw)
In-Reply-To: <CAGb2v66DPvvRcq+98vF2mCF8URW_qys1+B_FM9kcm6ppuPvyeg@mail.gmail.com>
Hello Chen-Yu,
On 2024-05-29 18:27, Chen-Yu Tsai wrote:
> On Tue, May 21, 2024 at 1:20 AM Dragan Simic <dsimic@manjaro.org>
> 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 <didi.debian@cknow.org>
>> Signed-off-by: Dragan Simic <dsimic@manjaro.org>
>> ---
>> 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>;
next prev parent reply other threads:[~2024-05-30 22:48 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-20 17:20 [PATCH] arm64: dts: rockchip: Fix the DCDC_REG2 minimum voltage on Quartz64 Model B Dragan Simic
2024-05-20 18:01 ` Diederik de Haas
2024-05-27 22:42 ` Heiko Stuebner
2024-05-29 16:27 ` Chen-Yu Tsai
2024-05-30 22:48 ` Dragan Simic [this message]
2024-05-31 18:40 ` Heiko Stübner
2024-05-31 22:41 ` Dragan Simic
2024-06-03 3:49 ` Chen-Yu Tsai
2024-06-03 4:41 ` Dragan Simic
2024-06-03 4:51 ` Dragan Simic
2024-06-03 6:33 ` Heiko Stübner
2024-06-03 6:54 ` Dragan Simic
2024-06-03 7:10 ` Dragan Simic
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20cf041dcd6f752174bf29d2a53c61b3@manjaro.org \
--to=dsimic@manjaro.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=didi.debian@cknow.org \
--cc=heiko@sntech.de \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=robh+dt@kernel.org \
--cc=stable@vger.kernel.org \
--cc=wens@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox