Skip to content

Commit 9ddb024

Browse files
authored
[bsp][artinchip] Add initial D213ECV-DEMO-V4-0 support (#12058)
* [bsp][artinchip] Add basic D213ECV-DEMO-V4-0 support * [bsp][artinchip] Register D213 BSP in board index and CI * [bsp][artinchip] Fix UART TX timeout and UTest registration
1 parent 0dffe47 commit 9ddb024

30 files changed

Lines changed: 1783 additions & 0 deletions

‎.github/ALL_BSP_COMPILE.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,7 @@
438438
"RTT_BSP": "riscv64-unknown",
439439
"RTT_TOOL_CHAIN": "sourcery-riscv64-unknown-elf",
440440
"SUB_RTT_BSP": [
441+
"artinchip/d213ecv-demo-v4-0",
441442
"bluetrum/ab32vg1-ab-prougen",
442443
"qemu-virt64-riscv",
443444
"ultrarisc/ur_dp1000_evb"

‎bsp/README.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -886,6 +886,12 @@ This document is based on the RT-Thread mainline repository and categorizes the
886886
| [ri5cy](rv32m1_vega/ri5cy) | ✅ | ✅ | - | - | - | - |
887887
| [rv32m1_sdk_riscv](rv32m1_vega/rv32m1_sdk_riscv) | ✅ | ✅ | - | - | - | - |
888888

889+
#### ⚪ ArtInChip
890+
891+
| BSP Name | GPIO | UART | ADC | I2C | SPI | WDT |
892+
|----------|------|------|-----|-----|-----|-----|
893+
| [d213ecv-demo-v4-0](artinchip/d213ecv-demo-v4-0) | - | ✅ | - | - | - | - |
894+
889895
---
890896

891897
### AVR Architecture Series

‎bsp/artinchip/README.md‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# ArtInChip BSPs
2+
3+
[English](README.md) | [中文](README_zh.md)
4+
5+
This directory provides RT-Thread board support for ArtInChip SoCs.
6+
7+
| Board | SoC / CPU | Support |
8+
|-------|-----------|-----------------|
9+
| [D213ECV-DEMO-V4-0](d213ecv-demo-v4-0/README.md) | D213ECV / T-Head C906, RV64GC | M-mode base kernel, UART0 console |
10+
11+
## Source organization
12+
13+
```text
14+
artinchip/
15+
├── d213ecv-demo-v4-0/ Board configuration and build entry
16+
│ ├── applications/ Startup application
17+
│ └── board/ Board wiring and initialization sequence
18+
└── libraries/
19+
├── include/ UART register definitions
20+
└── soc/d21x/
21+
├── include/ SoC addresses and MMIO accessors
22+
├── drivers/ D213 UART0 serial adapter
23+
└── port/ CPU, clock, PLIC and timer platform hooks
24+
```
25+
26+
Board wiring and memory layout are configured in the board directory. Shared D21x register definitions, drivers and platform initialization are in `libraries/soc/d21x`.
27+
28+
The BSP uses the RT-Thread RISC-V common port for startup, context switching, FPU state, interrupts and system ticks. It provides UART0 with the required clock, reset and pin configuration. The bootloader initializes DDR, PLLs and memory/cache attributes before starting RT-Thread.
29+
30+
See the [board README](d213ecv-demo-v4-0/README.md) for build instructions, configuration, bootloader requirements and UART usage.

‎bsp/artinchip/README_zh.md‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# ArtInChip 板级支持包
2+
3+
[English](README.md) | [中文](README_zh.md)
4+
5+
本目录提供 ArtInChip SoC 的 RT-Thread 板级支持。
6+
7+
| 开发板 | SoC / CPU | 支持功能 |
8+
|--------|-----------|----------|
9+
| [D213ECV-DEMO-V4-0](d213ecv-demo-v4-0/README_zh.md) | D213ECV / T-Head C906,RV64GC | M-mode 基础内核、UART0 控制台 |
10+
11+
## 源码结构
12+
13+
```text
14+
artinchip/
15+
├── d213ecv-demo-v4-0/ 板级配置与构建入口
16+
│ ├── applications/ 启动应用
17+
│ └── board/ 板级接线与初始化编排
18+
└── libraries/
19+
├── include/ UART 寄存器定义
20+
└── soc/d21x/
21+
├── include/ SoC 地址与 MMIO 访问接口
22+
├── drivers/ D213 UART0 串口适配
23+
└── port/ CPU、时钟、PLIC 和定时器平台接口
24+
```
25+
26+
板级目录用于配置开发板接线和内存布局,`libraries/soc/d21x` 存放 D21x 共用的寄存器定义、驱动和平台初始化代码。
27+
28+
BSP 使用 RT-Thread RISC-V common port 完成启动、上下文切换、FPU 状态保存、中断处理和系统定时,提供 UART0 及所需的时钟、复位和引脚配置。Bootloader 在启动 RT-Thread 前完成 DDR、PLL 和内存/Cache 属性初始化。
29+
30+
构建方法、配置、Bootloader 要求和 UART 使用方法见 [开发板说明](d213ecv-demo-v4-0/README_zh.md)。

0 commit comments

Comments
 (0)