From: "Shuwei Wu" <shuwei.wu@mailbox.org>
To: "Anand Moon" <linux.amoon@gmail.com>,
"Rafael J. Wysocki" <rafael@kernel.org>,
"Viresh Kumar" <viresh.kumar@linaro.org>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Paul Walmsley" <pjw@kernel.org>,
"Palmer Dabbelt" <palmer@dabbelt.com>,
"Albert Ou" <aou@eecs.berkeley.edu>,
"Alexandre Ghiti" <alex@ghiti.fr>, "Yixun Lan" <dlan@kernel.org>,
<linux-pm@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<linux-riscv@lists.infradead.org>, <spacemit@lists.linux.dev>,
<devicetree@vger.kernel.org>
Subject: Re: [PATCH v2 2/2] riscv: dts: spacemit: Add cpu scaling for K1 SoC
Date: Mon, 18 May 2026 16:46:55 +0800 [thread overview]
Message-ID: <DILO6ZRWYPUO.3ULDGZ95JZ9SP@mailbox.org> (raw)
In-Reply-To: <CANAwSgRFQiNEi1Ac+sCvJWkj1R+yEPGt0RCjZu-3ZiD0Ffm6Hg@mail.gmail.com>
Hi Anand,
Thank you for your consistent attention and practical suggestions.
On Sun May 17, 2026 at 12:35 PM CST, Anand Moon wrote:
> Hi Shuwei,
>
> On Wed, 22 Apr 2026 at 11:44, Anand Moon <linux.amoon@gmail.com> wrote:
>>
>> Hi Shuwei,
>>
>> On Tue, 21 Apr 2026 at 22:41, Aurelien Jarno <aurelien@aurel32.net> wrote:
>> >
>> > Hi,
>> >
>> > On 2026-04-21 16:10, Shuwei Wu wrote:
>> > > Hi Aurelien,
>> > >
>> > > Thanks for your addition.
>> > >
>> > > On Tue Apr 21, 2026 at 5:16 AM CST, Aurelien Jarno wrote:
>> > > > Hi Anand,
>> > > >
>> > > > On 2026-04-16 17:07, Anand Moon wrote:
>> > > >> After reviewing the Banana Pi F3 schematics, I confirmed that Buck1 and Buck2
>> > > >> Both supply the CORE_0V9 with 0.9V±1% rail. To resolve the restriction errors,
>> > > >> I expanded the voltage range in the DTS to 500,000–950,000 µV.
>> > > >>
>> sorry I was wrong from the doc below 1.2.1 CORE Power Design
>>
>> The typical core voltage is 0.9 V to 1.05 V. Actual voltage is
>> dynamically regulated by
>> the **remote-sense dynamic voltage** adjustment circuit inside P1.
>> P1 BUCK1 and BUCK2 must be combined to supply the core rail.
>>
>> [1] https://www.spacemit.com/community/document/info?nodepath=hardware/key_stone/k1/k1_hw/k1_hw_design_guide.md&lang=en
>>
>> > > >> Additionally, I updated the DTS to map the second CPU cluster (cores 4–7)
>> > > >> to Buck2 to better align with the hardware's power distribution.
>> > > >
>> > > > Actually the output of Buck1 and Buck2 are connected together, so they
>> > > > should always be configured with the same output voltage. And both
>> > > > clusters should be mapped to both outputs.
>> > >
>> > > You are right, I received the same response from the official developers.
>> > >
>> > > Therefore, I'm wondering if an additional regulator-coupled-with: property
>> > > definition is also needed here?
>> >
>> correct.
>> > Yes, I think this is the way to go. I even wonder if this shouldn't be a
>> > fix with Cc: stable. This also has to be done for the Milk-V Jupiter
>> > board, I haven't checked the other boards yet, but I guess they all use
>> > the same schematics at that the PMIC level.
>> >
>> > Regards
>> > Aurelien
>> >
>
> The following changes resolve the warning on my setup.
> If possible, please integrate them into the next version.
>
> diff --git a/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts
> b/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts
> index c2a1b759d41f..8512c7417f94 100644
> --- a/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts
> +++ b/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts
> @@ -116,19 +116,19 @@ &cpu_3 {
> };
>
> &cpu_4 {
> - cpu-supply = <&buck1_3v45>;
> + cpu-supply = <&buck2_3v45>;
> };
>
> &cpu_5 {
> - cpu-supply = <&buck1_3v45>;
> + cpu-supply = <&buck2_3v45>;
> };
>
> &cpu_6 {
> - cpu-supply = <&buck1_3v45>;
> + cpu-supply = <&buck2_3v45>;
> };
>
> &cpu_7 {
> - cpu-supply = <&buck1_3v45>;
> + cpu-supply = <&buck2_3v45>;
> };
>
> &emmc {
> @@ -248,14 +248,14 @@ pmic@41 {
> regulators {
> buck1_3v45: buck1 {
> regulator-min-microvolt = <500000>;
> - regulator-max-microvolt = <3450000>;
> + regulator-max-microvolt = <950000>;
> regulator-ramp-delay = <5000>;
> regulator-always-on;
> };
>
> - buck2 {
> + buck2_3v45: buck2 {
> regulator-min-microvolt = <500000>;
> - regulator-max-microvolt = <3450000>;
> + regulator-max-microvolt = <1050000>;
> regulator-ramp-delay = <5000>;
> regulator-always-on;
> };
As previously discussed, Buck1 and Buck2 are connected and must share the same
voltage. However, you not only separated them but also set their voltage ranges
to different values, which violates the requirement.
Additionally, in the schematic, 0.9V represents the default output voltage,
not the maximum.
The problem you noted likely stems from different clusters sharing
the same voltage while having different OPP tables.
In the new patch, I will unify them to use the same OPP table.
>
> Thnaks
> -Anand
--
Best regards,
Shuwei Wu
next prev parent reply other threads:[~2026-05-18 8:47 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-10 7:58 [PATCH v2 0/2] cpufreq: spacemit: Add cpufreq support for K1 SoC Shuwei Wu
2026-04-10 7:58 ` [PATCH v2 1/2] cpufreq: dt-platdev: Add SpacemiT K1 SoC to the allowlist Shuwei Wu
2026-04-10 7:58 ` [PATCH v2 2/2] riscv: dts: spacemit: Add cpu scaling for K1 SoC Shuwei Wu
2026-04-14 13:25 ` Anand Moon
2026-04-16 5:59 ` Shuwei Wu
2026-04-16 11:37 ` Anand Moon
2026-04-17 6:08 ` Anand Moon
2026-04-21 8:00 ` Shuwei Wu
2026-04-20 21:16 ` Aurelien Jarno
2026-04-21 7:27 ` Anand Moon
2026-04-21 8:10 ` Shuwei Wu
2026-04-21 17:11 ` Aurelien Jarno
2026-04-22 6:14 ` Anand Moon
2026-05-17 4:35 ` Anand Moon
2026-05-18 8:46 ` Shuwei Wu [this message]
2026-04-16 18:28 ` Yao Zi
2026-04-13 10:49 ` [PATCH v2 0/2] cpufreq: spacemit: Add cpufreq support " Viresh Kumar
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=DILO6ZRWYPUO.3ULDGZ95JZ9SP@mailbox.org \
--to=shuwei.wu@mailbox.org \
--cc=alex@ghiti.fr \
--cc=aou@eecs.berkeley.edu \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dlan@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=linux.amoon@gmail.com \
--cc=palmer@dabbelt.com \
--cc=pjw@kernel.org \
--cc=rafael@kernel.org \
--cc=robh@kernel.org \
--cc=spacemit@lists.linux.dev \
--cc=viresh.kumar@linaro.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