Re: [PATCH v2 0/2] board: sophgo: add support for Milk-V Duo 256M

Leo Liang via U-Boot <[email protected]>
Newsgroups org.u-boot-project.lists.u-boot
Message-ID <[email protected]>
Hi Hiago,

On Thu, Jul 23, 2026 at 11:44:33AM -0300, Hiago De Franco wrote:
> 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/[email protected]/
> 
> Link: https://milkv.io/docs/duo/getting-started/duo256m
> Signed-off-by: Hiago De Franco <[email protected]>
> ---
> 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/[email protected]
> 
> ---
> 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,

Applied to u-boot-riscv/main, thanks.

Best regards,
Leo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.