* riscv defconfig starfive visionfive2 env is nowhere, missing axp15060 regulator, misc vendor hacks for Milk-V Mars CM Lite
@ 2024-01-26 10:53 E Shattow
2024-01-26 12:19 ` Nam Cao
0 siblings, 1 reply; 3+ messages in thread
From: E Shattow @ 2024-01-26 10:53 UTC (permalink / raw)
To: u-boot
Hi,
ENV_IS_NOWHERE=y when it should not be, on make
starfive_visionfive2_defconfig. I guess that riscv is forgotten in some of
the logic there. TL;DR the env is supposed to save in SPI flash as the
defconfig provides (but then also ENV_IS_NOWHERE=y appears ? strange).
There is missing the AXP15060 power regulation in u-boot needed for SDCard
and networking. As it is happens to work for some variants and not others,
and not always. The AXP15060 driver exists in mainline Linux as a variant
of AXP20x and there are corresponding devicetree entries of the StarFive
JH7110-based VisionFive2 variants queued up (ref: *1 Patchwork series
806238). Milk-V Mars CM Lite variant ships with a hack substituting GPIO22
MIPI_PWR_EN in dts (what would be GPIO62 SDIO0_RSTN_GPIO62) as a trick to
get mmc0 doing something. I don't understand the details of why it works
just that it was there in the SDK git repo change log and I see results.
There's a possibility this was actually changed in how it is routed on the
Mars CM Lite PCB but I find it would be more likely this is just some kind
of hack.
^1:
https://patchwork.kernel.org/project/linux-riscv/list/?series=806238&state=%2A&archive=both
The other notable vendor Milk-V Mars hacks are to specify an eeprom 24c02
as compatible on the Mars CM Lite board instead of the 24c04 what is on the
StarFive VisionFive 2. I can't find references to this anymore in mainline
Linux, was it abstracted in some way that should be also done for u-boot?
Finally there is possibly a 2GB RAM version of the Milk-V Mars which
conflicts the StarFive VisionFive2 dts assumptions of at least 4GB RAM. I
note some adjustments to the linux,cma dts node accordingly from vendor
SDK. I failed to reproduce the vendor SDK build and this is my best guess
from that SDK git repo commit log notes.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: riscv defconfig starfive visionfive2 env is nowhere, missing axp15060 regulator, misc vendor hacks for Milk-V Mars CM Lite
2024-01-26 10:53 riscv defconfig starfive visionfive2 env is nowhere, missing axp15060 regulator, misc vendor hacks for Milk-V Mars CM Lite E Shattow
@ 2024-01-26 12:19 ` Nam Cao
2024-01-26 23:35 ` E Shattow
0 siblings, 1 reply; 3+ messages in thread
From: Nam Cao @ 2024-01-26 12:19 UTC (permalink / raw)
To: E Shattow; +Cc: u-boot
On Fri, 26 Jan 2024 02:53:45 -0800 E Shattow <lucent@gmail.com> wrote:
> There is missing the AXP15060 power regulation in u-boot needed for SDCard
> and networking. As it is happens to work for some variants and not others,
> and not always. The AXP15060 driver exists in mainline Linux as a variant
> of AXP20x and there are corresponding devicetree entries of the StarFive
> JH7110-based VisionFive2 variants queued up (ref: *1 Patchwork series
> 806238).
I sent a patch to add AXP15060 power regulation device tree node:
https://lists.denx.de/pipermail/u-boot/2024-January/543614.html
However, I sent it because it is needed by OpenSBI to reboot/shutdown. I
was not aware that U-Boot also needs this.
Best regards,
Nam
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: riscv defconfig starfive visionfive2 env is nowhere, missing axp15060 regulator, misc vendor hacks for Milk-V Mars CM Lite
2024-01-26 12:19 ` Nam Cao
@ 2024-01-26 23:35 ` E Shattow
0 siblings, 0 replies; 3+ messages in thread
From: E Shattow @ 2024-01-26 23:35 UTC (permalink / raw)
To: Nam Cao; +Cc: u-boot
Aside: Mailing list archive mangles devicetree node names in the patch as
if it were an email address to obscure.
related linux dts axp15060 node naming updates:
https://github.com/MichaIng/linux/commit/1419a6eeb6a8b834ce9631fc558a57fb634f6949
GMAC and eMMC functions depend on power regulation.
The sus commit for ENV_IS_NOWHERE=y in the starfive_visionfive2 defconfig:
https://github.com/u-boot/u-boot/commit/7d79bed00c9e02187a09e74e90c5bd5a927a6a61
Why should ENV_IS_NOWHERE=y and CONFIG_ENV_IS_IN_SPI_FLASH=y both survive a
make oldconfig, I would think they will be mutually exclusive. Local
testing make starfive_visionfive2, disable ENV_IS_NOWHERE, compile and
flash to the board and saveenv works as expected.
On Fri, Jan 26, 2024 at 4:19 AM Nam Cao <namcao@linutronix.de> wrote:
> On Fri, 26 Jan 2024 02:53:45 -0800 E Shattow <lucent@gmail.com> wrote:
> > There is missing the AXP15060 power regulation in u-boot needed for
> SDCard
> > and networking. As it is happens to work for some variants and not
> others,
> > and not always. The AXP15060 driver exists in mainline Linux as a variant
> > of AXP20x and there are corresponding devicetree entries of the StarFive
> > JH7110-based VisionFive2 variants queued up (ref: *1 Patchwork series
> > 806238).
>
> I sent a patch to add AXP15060 power regulation device tree node:
> https://lists.denx.de/pipermail/u-boot/2024-January/543614.html
>
> However, I sent it because it is needed by OpenSBI to reboot/shutdown. I
> was not aware that U-Boot also needs this.
>
> Best regards,
> Nam
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-01-26 23:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-26 10:53 riscv defconfig starfive visionfive2 env is nowhere, missing axp15060 regulator, misc vendor hacks for Milk-V Mars CM Lite E Shattow
2024-01-26 12:19 ` Nam Cao
2024-01-26 23:35 ` E Shattow
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.