public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Leo Liang <ycliang@andestech.com>
To: Junhui Liu <junhui.liu@pigmoral.tech>
Cc: Tom Rini <trini@konsulko.com>, Rick Chen <rick@andestech.com>,
	<u-boot@lists.denx.de>
Subject: Re: [PATCH 2/5] riscv: dts: canaan: Add basic device tree for K230 CanMV board
Date: Thu, 16 Jan 2025 15:41:46 +0800	[thread overview]
Message-ID: <Z4i4OjX1062tZEua@swlinux02> (raw)
In-Reply-To: <20250115-k230-dev-1-v1-2-f4b77259e34a@pigmoral.tech>

On Wed, Jan 15, 2025 at 12:46:38AM +0800, Junhui Liu wrote:
> Add initial dts for K230-CanMV powered by Canaan Kendryte K230 SoC,
> which has two RISC-V C908 cores, a big core with vector 1.0 extension
> and a small core without vector extension.
> 
> This patch is basically comes from Linux Kernel [1] and it assumes
> u-boot is running on the big core. Additionally, bootctl and reboot nodes
> are added to support sysreset [2] and an clk_dummy node is added to
> satisfy dependencies for usb [3].
> 
> Currently, u-boot is booted by the vendor's u-boot-spl. To meet the
> requirements [4][5] of vendor's u-boot-spl for u-boot, a binman node with
> mkimage child node is added here, which will compress u-boot.bin with
> gzip and generate an image named "uboot" in the file u-boot-gz.img.
> 
> [1] https://git.kernel.org/pub/scm/linux/kernel/git/conor/linux.git/log/?h=k230-basic
> [2] https://github.com/kendryte/k230_sdk/blob/v1.8/src/big/rt-smart/kernel/bsp/maix3/board/interdrv/sysctl/sysctl_boot/sysctl_boot.c#L67
> [3] https://lore.kernel.org/linux-riscv/tencent_AD84B436C2F31108B66B4739D6E306C5E80A@qq.com/
> [4] https://github.com/kendryte/k230_sdk/blob/v1.8/src/little/uboot/board/canaan/common/k230_img.c#L306
> [5] https://github.com/kendryte/k230_sdk/blob/v1.8/src/little/uboot/board/canaan/common/k230_img.c#L125
> 
> Signed-off-by: Junhui Liu <junhui.liu@pigmoral.tech>
> ---
>  arch/riscv/dts/Makefile         |   1 +
>  arch/riscv/dts/k230-canmv.dts   |  31 +++++++
>  arch/riscv/dts/k230-u-boot.dtsi |  25 ++++++
>  arch/riscv/dts/k230.dtsi        | 175 ++++++++++++++++++++++++++++++++++++++++
>  4 files changed, 232 insertions(+)

Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>

  reply	other threads:[~2025-01-16  7:42 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-14 16:46 [PATCH 0/5] riscv: canaan: Add support for K230-CanMV board Junhui Liu
2025-01-14 16:46 ` [PATCH 1/5] usb: dwc2: Add support for Canaan K230 Junhui Liu
2025-01-16  7:39   ` Leo Liang
2025-01-14 16:46 ` [PATCH 2/5] riscv: dts: canaan: Add basic device tree for K230 CanMV board Junhui Liu
2025-01-16  7:41   ` Leo Liang [this message]
2025-01-14 16:46 ` [PATCH 3/5] riscv: cpu: k230: Add support for Canaan Kendryte K230 SoC Junhui Liu
2025-01-16  7:42   ` Leo Liang
2025-01-14 16:46 ` [PATCH 4/5] riscv: canaan: k230_canmv: Add initial support Junhui Liu
2025-01-16  7:43   ` Leo Liang
2025-01-14 16:46 ` [PATCH 5/5] doc: canaan: Add K230 CanMV board Junhui Liu
2025-01-16  7:44   ` Leo Liang

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=Z4i4OjX1062tZEua@swlinux02 \
    --to=ycliang@andestech.com \
    --cc=junhui.liu@pigmoral.tech \
    --cc=rick@andestech.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /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