All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Junhui Liu" <junhui.liu@pigmoral.tech>
To: "E Shattow" <e@freeshell.de>,
	"Junhui Liu" <junhui.liu@pigmoral.tech>,
	<u-boot@lists.u-boot-project.org>, "Yao Zi" <me@ziyao.cc>,
	<u-boot-spacemit@groups.io>
Cc: "Tom Rini" <trini@konsulko.com>, "Yixun Lan" <dlan@kernel.org>,
	"Tim Ouyang" <tim609@andestech.com>,
	"Leo Liang" <leo.liang@sifive.com>,
	"Huan Zhou" <pericycle.cc@gmail.com>,
	"Eric Chung" <eric.chung@riscstar.com>
Subject: Re: [PATCH 0/5] riscv: spacemit: k3: Add SPL LPDDR5 initialization
Date: Sat, 28 Nov 2026 17:53:24 +0800	[thread overview]
Message-ID: <DN6R3KWX6RJQ.3LRDBRRIOFMO3@pigmoral.tech> (raw)
In-Reply-To: <c9981f92-c8b9-4fef-9944-61ca4de8c7f9@freeshell.de>

Hi E,

On Fri Nov 27, 2026 at 12:46 PM CST, E Shattow wrote:
> Hi Junhui,
>
> On 11/5/26 08:40, Junhui Liu wrote:
>> Add initial SPL support for LPDDR5 initialization on the SpacemiT K3
>> SoC.
>> 
>> The DDR driver follows the vendor initialization sequence, selects a
>> memory profile using the DDR part number read from the board's EEPROM,
>> and configures both DDR controllers and PHYs to perform LPDDR5 training.
>> 
>> Loading the next boot stage is not implemented yet. SPL currently
>> returns BOOT_DEVICE_NONE and stops with "Unsupported Boot Device!"
>> after successful DRAM initialization. No LPDDR4X boards are currently
>> available for testing, so LPDDR4X support will be added in a separate
>> series in the future.
>> 
>> Tested on 8 GiB and 16 GiB Pico-ITX boards and an 8 GiB COM260 board by
>> entering BootROM USB download mode and running:
>> 
>> fastboot stage spl/u-boot-spl-mkimage.bin && fastboot continue
>> 
>> ---
>> Junhui Liu (5):
>>       ram: spacemit: Add DDR driver for K3 SoC
>>       riscv: spacemit: k3: Add SPL initialization support
>>       riscv: dts: spacemit: k3: Add SPL device and image descriptions
>>       configs: spacemit: k3: Enable SPL support
>>       doc: spacemit: k3: Add SPL build instructions
>> 
>>  arch/riscv/cpu/k3/Kconfig                      |    6 +-
>>  arch/riscv/cpu/k3/Makefile                     |    1 +
>>  arch/riscv/cpu/k3/spl.c                        |   52 +
>>  arch/riscv/dts/spacemit-k3-binman.dtsi         |   24 +
>>  arch/riscv/dts/spacemit-k3-u-boot.dtsi         |   54 +
>>  arch/riscv/include/asm/arch-k3/csr.h           |   20 +
>>  arch/riscv/include/asm/arch-k3/spl.h           |   11 +
>>  board/spacemit/k3/Makefile                     |    5 +
>>  board/spacemit/k3/spl.c                        |  127 ++
>>  configs/spacemit_k3_defconfig                  |   22 +
>>  doc/board/spacemit/spacemit-pico-itx.rst       |   12 +-
>>  drivers/ram/Kconfig                            |    1 +
>>  drivers/ram/Makefile                           |    1 +
>>  drivers/ram/spacemit/Kconfig                   |    6 +
>>  drivers/ram/spacemit/Makefile                  |    3 +
>>  drivers/ram/spacemit/k3/Makefile               |    9 +
>>  drivers/ram/spacemit/k3/k3_ddr.c               |  134 ++
>>  drivers/ram/spacemit/k3/k3_ddr.h               |  169 +++
>>  drivers/ram/spacemit/k3/k3_ddr_ctrl.c          |   73 ++
>>  drivers/ram/spacemit/k3/k3_ddr_lpddr5.c        |  538 ++++++++
>>  drivers/ram/spacemit/k3/k3_ddr_lpddr5_tables.c | 1668 ++++++++++++++++++++++++
>>  drivers/ram/spacemit/k3/k3_ddr_phy.c           |  149 +++
>>  drivers/ram/spacemit/k3/k3_ddr_profile.c       |   54 +
>>  include/configs/spacemit-k3.h                  |    3 +
>>  include/soc/spacemit/k3-ddr.h                  |   13 +
>>  25 files changed, 3150 insertions(+), 5 deletions(-)
>> ---
>> base-commit: d1d45c926a571fb6c1e6d7105c280833646915ea
>> change-id: 20261104-k3-ddr-85685cac0f02
>> 
>> Best regards,
>> --  
>> Junhui Liu <junhui.liu@pigmoral.tech>
>> 
>
> Can we enable default YMODEM load of u-boot.itb in this series? I
> propose in your series:

That sounds good. I'll enable UART (YMODEM) loading of u-boot.itb as
the default in SPL in the next version, so we can test the full boot
flow with this series.

Best regards,
Junhui Liu

>
> 1. SPL with DDR init and boot U-Boot main app via UART YMODEM (this series)
>
> ... and then other series applied after this:
>
> 2. Add support in SPL to check for boot signal state. Replace
> unconditional YMODEM loading with depending on boot flag for BootROM
> UART mode, and keep default to YMODEM loading. Effectively no change in
> behavior and prepared for adding support of other boot methods.
>
> 3. Add SPI NOR boot support in SPL (Yixun)
>
> 4. Add SPL fastboot.
>
> 5. Add eMMC/SD boot (Yixun? I think mentioned this)
>
> -E


  reply	other threads:[~2026-11-28  9:54 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-05 16:40 [PATCH 0/5] riscv: spacemit: k3: Add SPL LPDDR5 initialization Junhui Liu
2026-11-05 16:40 ` [PATCH 1/5] ram: spacemit: Add DDR driver for K3 SoC Junhui Liu
2026-11-05 16:40 ` [PATCH 2/5] riscv: spacemit: k3: Add SPL initialization support Junhui Liu
2026-11-26 21:13   ` Anirudh Srinivasan
2026-11-26 21:20     ` E Shattow
2026-11-26 21:49       ` E Shattow
2026-11-27  3:38       ` Junhui Liu
2026-11-05 16:40 ` [PATCH 3/5] riscv: dts: spacemit: k3: Add SPL device and image descriptions Junhui Liu
2026-11-06  6:59   ` Yixun Lan
2026-11-07  9:06     ` Junhui Liu
2026-11-07 11:08       ` E Shattow
2026-11-05 16:40 ` [PATCH 4/5] configs: spacemit: k3: Enable SPL support Junhui Liu
2026-11-05 16:40 ` [PATCH 5/5] doc: spacemit: k3: Add SPL build instructions Junhui Liu
2026-11-27  4:46 ` [PATCH 0/5] riscv: spacemit: k3: Add SPL LPDDR5 initialization E Shattow
2026-11-28  9:53   ` Junhui Liu [this message]
2026-12-03  6:30   ` Junhui Liu

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=DN6R3KWX6RJQ.3LRDBRRIOFMO3@pigmoral.tech \
    --to=junhui.liu@pigmoral.tech \
    --cc=dlan@kernel.org \
    --cc=e@freeshell.de \
    --cc=eric.chung@riscstar.com \
    --cc=leo.liang@sifive.com \
    --cc=me@ziyao.cc \
    --cc=pericycle.cc@gmail.com \
    --cc=tim609@andestech.com \
    --cc=trini@konsulko.com \
    --cc=u-boot-spacemit@groups.io \
    --cc=u-boot@lists.u-boot-project.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 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.