-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for SOPHGO SoCs and Milk-V boards #69594
base: main
Are you sure you want to change the base?
Conversation
1850acb
to
3528150
Compare
3a60a91
to
2a7c3f9
Compare
2a7c3f9
to
a6cdd36
Compare
7e31aea
to
eb20e38
Compare
This comment was marked as outdated.
This comment was marked as outdated.
@xingrz will you be coming back to this PR, it needs to be rebased |
3c3bb3d
to
2a5e8c5
Compare
2a5e8c5
to
ba19169
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks OK
boards/milkv/duo/doc/index.rst
Outdated
|
||
The default configuration can be found in the defconfig file: | ||
|
||
``boards/milkv/duo/milkv_duo_defconfig`` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use :zephyr_file:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. Fixed.
boards/milkv/duo256m/doc/index.rst
Outdated
|
||
The default configuration can be found in the defconfig file: | ||
|
||
``boards/milkv/duo256m/milkv_duo256m_defconfig`` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as above
boards/milkv/duos/doc/index.rst
Outdated
|
||
The default configuration can be found in the defconfig file: | ||
|
||
``boards/milkv/duos/milkv_duos_defconfig`` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as above
T-Head is a semiconductor chip business entity of Alibaba Group. Signed-off-by: Chen Xingyu <[email protected]>
SOPHGO is a company focus on development of TPU and RISC-V processors. Signed-off-by: Chen Xingyu <[email protected]>
MilkV is a RISC-V MCU company located in Shenzhen, China. Signed-off-by: Chen Xingyu <[email protected]>
C906 is a RISC-V CPU designed by T-Head. This commit introduces its DTS binding for later use. Signed-off-by: Chen Xingyu <[email protected]>
CV180x is a series of RV64 SoCs developed by SOPHGO (formerly CVITEK), based on T-Head C906 CPU. Co-authored-by: honglin leng <[email protected]> Signed-off-by: Chen Xingyu <[email protected]>
SG2000, also named "CV1813H". SG2002, also named "CV1812CP". Both of them are multi-core SoCs developed by SOPHGO, belonging to the CV181x series. Signed-off-by: Chen Xingyu <[email protected]>
…ation This commit adapts the existing RISC-V Machine Timer driver for the T-Head C906 CPU: * Although it's a RV64I CPU, the MTIMECMP register must be accessed as 32-bit values. * The value of the timer should be read using the `TIME` CSR, instead of the standard memory-mapped `MTIME` register. Signed-off-by: Chen Xingyu <[email protected]>
This commit introduces a pin-controller driver for the CVI series SoCs by SOPHGO. Predefined pinmux values are also added. Please refer to the official datasheet for the naming conventions of pins and signals. Signed-off-by: Chen Xingyu <[email protected]> # Conflicts: # drivers/pinctrl/CMakeLists.txt
This commit adds PWM driver for CVI series SoCs. Signed-off-by: Chen Xingyu <[email protected]>
This implements a mailbox driver for CV18xx, a series of multi-core SoCs by SOPHGO. This driver enables the little core of CV18xx running RTOS to communicate with its big core running Linux. Signed-off-by: honglin leng <[email protected]> Signed-off-by: Chen Xingyu <[email protected]>
The SOPHGO CVI series SoCs load the RTOS kernel for the 2nd core from a `fip.bin` located in the main storage. This commit introduced a convenient script for updating the `fip.bin` on the external storage mounted to the host, with the newly built `zephyr.bin`. Path to the `fiptool.py` from the official SDK should be provided. Signed-off-by: Chen Xingyu <[email protected]>
Milk-V Duo is a tiny development board shipped with SOPHGO CV1800B. Signed-off-by: Chen Xingyu <[email protected]>
Duo S is another development board by Milk-V, shipped with SOPHGO SG2000. Signed-off-by: Chen Xingyu <[email protected]>
Milk-V Duo 256M is the successor of Milk-V Duo, featuring a SOPHGO SG2002 SoC. Signed-off-by: Chen Xingyu <[email protected]>
This commit adds an overlay to the PWM driver tests for Milk-V boards. Signed-off-by: Chen Xingyu <[email protected]>
Also added @lenghonglin as collaborator Signed-off-by: Chen Xingyu <[email protected]>
ba19169
to
812b097
Compare
This PR ports Zephyr to SOPHGO platforms, including 3 new SoCs and 3 boards:
milkv_duo
milkv_duos
milkv_duo256m
The CV1800B is a member of the SOPHGO CV180X series. It's a multi-core RV64 SoC, consists with a 1GHz T-Head C906 RV64 big core running Linux, and a 700MHz C906 RV64 little core running RTOS.
The SG2000/SG2002 is a successor of CV1800B, belonging to the CV181x series. It features a 1GHz ARM Cortex-A53 big core, a 1GHz T-Head C906 RV64 big core (only one big core will be booted base on the selection of a BOOT GPIO), and a 700MHz C906 RV64 little core.
TODOs
DT_INST_IRQN_BY_IDX
#69650