All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] board: sophgo: add support for Milk-V Duo 256M
@ 2026-07-23 14:44 Hiago De Franco
  2026-07-23 14:44 ` [PATCH v2 1/2] board: sophgo: move ethernet driver to common directory Hiago De Franco
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Hiago De Franco @ 2026-07-23 14:44 UTC (permalink / raw)
  To: u-boot
  Cc: Kongyang Liu, Tom Rini, Peter Robinson, Ilias Apalodimas,
	Quentin Schulz, Rick Chen, Leo, Jamie Gibbons, Conor Dooley,
	Randolph Sheng-Kai Lin, Yao Zi, Andreas Schwab, Michal Simek,
	Martin Herren, Peng Fan, Sam Protsenko, u-boot

Milk-V Duo 256M is a small development board based on the Sophgo SG2002
SoC.

U-Boot runs as the S-mode payload on top of the vendor FSBL and OpenSBI,
packaged together into a FIP image on the SD card.

The vendor FIP tool prepends a 32-byte loader header to u-boot.bin and
loads the result at 0x80200000, so TEXT_BASE is set to 0x80200020 to
match the address the U-Boot code actually runs.

The following peripherals are supported:
- ns16550 serial console (UART0)
- SD/MMC
- Ethernet with the SoC internal PHY

This patch was tested on Milk-V Duo 256MB using an SD card and the Duo
USB & Ethernet IOB (base board) [0].

This series uses the CV1800B SYS_CPU target since SG2002 shares common
IPs with CV1800B. Other SG2002 as LicheeRV Nano does the same.

Note: Linux device tree is not yet merged [1], therefore I am adding a
device tree here and it can be later changed to use the kernel upstream
one.

[0] https://milkv.io/docs/duo/io-board/usb-ethernet-iob
[1] https://lore.kernel.org/lkml/20260710075917.159969-1-chenyou910331@gmail.com/

Link: https://milkv.io/docs/duo/getting-started/duo256m
Signed-off-by: Hiago De Franco <hfranco@baylibre.com>
---
Changes in v2:
- Makefile: changed to use 'milkv_duo/board.c' instead of
  'milkv_duo_256m/board.c', since they share the exact same code.
- board.c: deleted, because of the above.
- doc: updated to add Ethernet support.
- Link to v1: https://lore.kernel.org/r/20260710-add-milkv-duo256m-v1-0-0f761100361d@baylibre.com

---
Hiago De Franco (2):
      board: sophgo: move ethernet driver to common directory
      board: sophgo: add support for Milk-V Duo 256M

 arch/riscv/Kconfig                             |  4 ++
 arch/riscv/dts/Makefile                        |  1 +
 arch/riscv/dts/sg2002-milkv-duo256m.dts        | 46 ++++++++++++++
 board/sophgo/{milkv_duo => common}/ethernet.c  |  0
 board/sophgo/{milkv_duo => common}/ethernet.h  |  0
 board/sophgo/milkv_duo/MAINTAINERS             |  1 +
 board/sophgo/milkv_duo/Makefile                |  2 +-
 board/sophgo/milkv_duo/board.c                 |  2 +-
 board/sophgo/milkv_duo_256m/Kconfig            | 30 +++++++++
 board/sophgo/milkv_duo_256m/MAINTAINERS        |  5 ++
 board/sophgo/milkv_duo_256m/Makefile           |  6 ++
 board/sophgo/milkv_duo_256m/milkv_duo_256m.env |  8 +++
 configs/milkv_duo_256m_defconfig               | 42 +++++++++++++
 doc/board/sophgo/index.rst                     |  1 +
 doc/board/sophgo/milkv_duo_256m.rst            | 84 ++++++++++++++++++++++++++
 include/configs/milkv_duo_256m.h               | 12 ++++
 16 files changed, 242 insertions(+), 2 deletions(-)
---
base-commit: ece349ade2973e220f524ce59e59711cc919263f
change-id: 20260710-add-milkv-duo256m-1662c5cafb35

Best regards,
-- 
Hiago De Franco <hfranco@baylibre.com>


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2026-09-06  7:08 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-23 14:44 [PATCH v2 0/2] board: sophgo: add support for Milk-V Duo 256M Hiago De Franco
2026-07-23 14:44 ` [PATCH v2 1/2] board: sophgo: move ethernet driver to common directory Hiago De Franco
2026-08-05 15:29   ` Leo Liang via U-Boot
2026-07-23 14:44 ` [PATCH v2 2/2] board: sophgo: add support for Milk-V Duo 256M Hiago De Franco
2026-08-05 15:31   ` Leo Liang via U-Boot
2026-08-05 15:50 ` [PATCH v2 0/2] " Leo Liang via U-Boot
2026-08-22  9:15 ` Andrei Lalaev
2026-08-25 12:24   ` Hiago De Franco
2026-08-25 18:01     ` Andrei Lalaev
2026-08-27 13:30       ` Hiago De Franco
2026-08-27 16:04         ` Andrei Lalaev
2026-08-30 15:29           ` Andrei Lalaev
2026-09-04 20:29             ` Hiago De Franco
2026-09-05 13:34               ` Andrei Lalaev

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.