From: Conor Dooley <conor@kernel.org>
To: Emil Renner Berthing <emil.renner.berthing@canonical.com>
Cc: "Hal Feng" <hal.feng@starfivetech.com>,
"E Shattow" <e@freeshell.de>, "Albert Ou" <aou@eecs.berkeley.edu>,
"Bjorn Helgaas" <bhelgaas@google.com>,
"Conor Dooley" <conor+dt@kernel.org>,
"Heinrich Schuchardt" <heinrich.schuchardt@canonical.com>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Krzysztof Wilczyński" <kwilczynski@kernel.org>,
"Lorenzo Pieralisi" <lpieralisi@kernel.org>,
"Manivannan Sadhasivam" <mani@kernel.org>,
"Palmer Dabbelt" <palmer@dabbelt.com>,
"Paul Walmsley" <pjw@kernel.org>,
"Rafael J . Wysocki" <rafael@kernel.org>,
"Rob Herring" <robh@kernel.org>,
"Viresh Kumar" <viresh.kumar@linaro.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-riscv@lists.infradead.org"
<linux-riscv@lists.infradead.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v2 0/8] Add support for StarFive VisionFive 2 Lite board
Date: Thu, 20 Nov 2025 00:47:39 +0000 [thread overview]
Message-ID: <20251120-ambiguity-obsessive-b4ebf225d293@spud> (raw)
In-Reply-To: <CAJM55Z-MfpVX3EuQ_AjvDSk6FwR51R5cQdN5RybS9pbJ8r9NNg@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 4681 bytes --]
On Wed, Nov 19, 2025 at 05:27:30AM -0800, Emil Renner Berthing wrote:
> Quoting Conor Dooley (2025-11-19 00:10:08)
> > On Tue, Nov 18, 2025 at 02:12:58AM +0000, Hal Feng wrote:
> > > > All,
> > > >
> > > > I repeat that the suggestion was made months ago (by Hal) to split out the
> > > > OPP tables per-board from the period of time when I was complaining about
> > > > 1.5GHz JH-7110 operation pushing TDP into over-temperature thermal limit
> > > > on Milk-V Mars CM SoM.
> > > >
> > > > Whether or not JH7110S is a new compatible should follow precedence in
> > > > Linux development. JH-7110S is evidently the same tape-out as JH-7110 and
> > > > however you deal with that in Linux is the appropriate way to deal with that
> > > > here. Selection of OPP table for correct operation will be determined by
> > > > bootloader, where, it is demonstrated by patch series sent to U-Boot
> > > > upstream to be selected ** per-board ** based on EEPROM content as if it
> > > > was any other JH-7110 board deciding dts based on EEPROM content. Given
> > > > that it is the same tape-out I do not find a valid justification for a new
> > > > compatible in the stack of adjacent software besides going along with some
> > > > kind of marketing-driven answer about whether or not this is a new SoC.
> > > >
> > > > What I care about now is that the VisionFive 2 Lite series is in good enough
> > > > shape and there's a possibility to act on this months-old suggestion to split out
> > > > the OPP tables which as we have confirmed the JH7110S is the same SoC as
> > > > JH7110 it makes a lot of sense to do.
> > > >
> > > > How is it supposed to work for binned silicon in Linux?
> > >
> > > Hi, Conor, Emil,
> > >
> > > What do you think about this? Hope to hear from you.
> >
> > Can someone just give me a yes/no question out of this thread? I'm not
> > really immediately sure what's being asked of me. What exactly do you
> > want to do with the opp-tables? "Split out" isn't super clear. Does that
> > mean into board files? I am guessing it does, since you're saying that a
> > particular board cannot support the 1.5 GHz mode. It's not unusual
> > though to use delete node for unsupported opp-table entries, could that
> > be done instead?
>
> Yes, as far as I can tell we should be able to just add the board description
> like this:
>
> jh7110.dtsi # JH7110 SoC description
> |- jh7110-common.dtsi # Peripherals common to all JH7110 boards
> |- jh7110-starfive-visionfive-2.dtsi # Peripherals common to VF2 boards
> | |- <VF2 boards> # Final VF2 board descriptions
> |- jh7110-milkv-marscm.dtsi # Peripherals common to Mars CM boards
> | |- <Mars CM boards> # Final Mars CM board descriptions
> |- <other boards> # Other JH7110 board descriptions
> + |- jh7110-starfive-visionfive-2-lite.dts
>
> and have it do
>
> &cpu_opp {
> /delete-node/ opp-375000000;
> /delete-node/ opp-500000000;
> /delete-node/ opp-750000000;
> /delete-node/ opp-1500000000;
>
> opp-312500000 {
> opp-hz = /bits/ 64 <312500000>;
> opp-microvolt = <800000>;
> };
> opp-417000000 {
> opp-hz = /bits/ 64 <417000000>;
> opp-microvolt = <800000>;
> };
> opp-625000000 {
> opp-hz = /bits/ 64 <625000000>;
> opp-microvolt = <800000>;
> };
> opp-1250000000 {
> opp-hz = /bits/ 64 <1250000000>;
> opp-microvolt = <1000000>;
> };
> };
>
> This seems to be the minimal amount of changes needed. I looked through the
> latest OpenSBI and it does match "starfive,jh7110s", but it treats it exactly
> the same as "starfive,jh7110" and Hal have not really given any other reason
> we'd need new compatible strings.
FWIW, chucking in the extra compatible is pretty straightforward if
there's a respin to adjust to the above file layout, so can probably
just go and do it.
> E: I know this doesn't split out the opp table like you suggested, but I think
> that can come later if needed. Let's just start with the minimal amount of
> changes to get the VF2 Lite supported.
>
> Hal: Do you think this could work? You might need a patch to move some mmc
> properties out of jh7110-common.dtsi
I'm going to consider this "Changes Requested" then, and I'll expect
another version with the file layout above.
I was starting on my 6.19 PRs today, and I remembered that I actually
have some dts material for the second week of the merge window, so
you've got an extra week out of that Hal before it'd be 6.20 content
instead.
Cheers,
Conor.
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
[-- Attachment #2: Type: text/plain, Size: 161 bytes --]
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
next prev parent reply other threads:[~2025-11-20 0:48 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-07 9:55 [PATCH v2 0/8] Add support for StarFive VisionFive 2 Lite board Hal Feng
2025-11-07 9:55 ` [PATCH v2 1/8] dt-bindings: PCI: starfive,jh7110-pcie: Add enable-gpios property Hal Feng
2025-11-07 9:55 ` [PATCH v2 2/8] dt-bindings: riscv: Add StarFive JH7110S SoC and VisionFive 2 Lite board Hal Feng
2025-11-07 9:55 ` [PATCH v2 3/8] riscv: dts: starfive: Rename jh7110.dtsi to jh711x.dtsi Hal Feng
2025-11-07 11:18 ` E Shattow
2025-11-07 9:55 ` [PATCH v2 4/8] riscv: dts: starfive: Split jh7110-common.dtsi and move opp table to it Hal Feng
2025-11-07 11:20 ` E Shattow
2025-11-18 15:12 ` Heinrich Schuchardt
2025-11-07 9:55 ` [PATCH v2 5/8] riscv: dts: starfive: jh711x-common: Move out some nodes to jh7110 common dtsi Hal Feng
2025-11-07 11:24 ` E Shattow
2025-11-07 9:55 ` [PATCH v2 6/8] riscv: dts: starfive: Add common board dtsi for JH7110s and VisionFive 2 Lite variants Hal Feng
2025-11-07 9:55 ` [PATCH v2 7/8] riscv: dts: starfive: Add VisionFive 2 Lite board device tree Hal Feng
2025-11-07 9:55 ` [PATCH v2 8/8] riscv: dts: starfive: Add VisionFive 2 Lite eMMC " Hal Feng
2025-11-07 11:11 ` [PATCH v2 0/8] Add support for StarFive VisionFive 2 Lite board E Shattow
2025-11-07 11:21 ` Heinrich Schuchardt
2025-11-07 12:01 ` E Shattow
2025-11-12 7:24 ` Hal Feng
2025-11-12 13:29 ` E Shattow
2025-11-07 17:20 ` Conor Dooley
2025-11-12 7:47 ` Hal Feng
2025-11-12 13:54 ` Emil Renner Berthing
2025-11-12 14:36 ` Conor Dooley
2025-11-13 3:42 ` Hal Feng
2025-11-13 10:42 ` Emil Renner Berthing
2025-11-13 15:16 ` E Shattow
2025-11-15 16:28 ` Emil Renner Berthing
2025-11-17 6:54 ` Hal Feng
2025-11-17 21:54 ` E Shattow
2025-11-18 2:12 ` Hal Feng
2025-11-18 23:10 ` Conor Dooley
2025-11-19 7:04 ` Heinrich Schuchardt
2025-11-19 8:26 ` E Shattow
2025-11-19 13:27 ` Emil Renner Berthing
2025-11-20 0:47 ` Conor Dooley [this message]
2025-11-20 2:47 ` Hal Feng
2025-11-20 2:38 ` Hal Feng
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=20251120-ambiguity-obsessive-b4ebf225d293@spud \
--to=conor@kernel.org \
--cc=aou@eecs.berkeley.edu \
--cc=bhelgaas@google.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=e@freeshell.de \
--cc=emil.renner.berthing@canonical.com \
--cc=hal.feng@starfivetech.com \
--cc=heinrich.schuchardt@canonical.com \
--cc=krzk+dt@kernel.org \
--cc=kwilczynski@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=lpieralisi@kernel.org \
--cc=mani@kernel.org \
--cc=palmer@dabbelt.com \
--cc=pjw@kernel.org \
--cc=rafael@kernel.org \
--cc=robh@kernel.org \
--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