Skip to content

ZhiHe A210: add peripheral support (GPIO/timers/I2C/SPI/DMA) - #382

Draft
ifnfn wants to merge 7 commits into
RVCK-Project:rvck-6.6from
ifnfn:peripheral-upstream
Draft

ZhiHe A210: add peripheral support (GPIO/timers/I2C/SPI/DMA)#382
ifnfn wants to merge 7 commits into
RVCK-Project:rvck-6.6from
ifnfn:peripheral-upstream

Conversation

@ifnfn

@ifnfn ifnfn commented Aug 31, 2026

Copy link
Copy Markdown

Add peripheral support for the ZhiHe A210 SoC: GPIO, DW APB timers, I2C, SPI and DMA (dw-axi-dmac) bindings/drivers and device trees.

Tracked by #381.

Note: this branch is stacked on top of the A210 pinctrl/power series (#375). Once #375 is merged and this branch rebased, the diff will narrow down to the 8 peripheral commits:

  • dt-bindings: gpio: snps,dw-apb: add ZhiHe A210
  • dt-bindings: dma: snps,dw-axi-dmac: add ZhiHe A210
  • dmaengine: dw-axi-dmac: add ZhiHe A210 support
  • riscv: dts: zhihe: add A210 GPIO controllers
  • riscv: dts: zhihe: add A210 DW APB timers
  • riscv: dts: zhihe: add A210 I2C controllers
  • riscv: dts: zhihe: add A210 SPI controllers
  • riscv: dts: zhihe: add A210 DMA controller

@github-actions

github-actions Bot commented Aug 31, 2026

Copy link
Copy Markdown

开始测试 log: https://github.com/RVCK-Project/rvck/actions/runs/33369718505

参数解析结果
args value
repository RVCK-Project/rvck
head ref pull/382/head
base ref rvck-6.6
LAVA repo RVCK-Project/lavaci
LAVA hardware ['qemu']
LAVA Testcase path lava-testcases/common-test/ltp/ltp.yaml
need run job kunit-test,kernel-build,check-patch,lava-trigger

测试完成

详细结果:
check result
kunit-test success
kernel-build failure
check-patch success
lava-trigger-qemu skipped
lava-trigger-sg2042 skipped
lava-trigger-k1 skipped
lava-trigger-lpi4a skipped

Kunit Test Result

[07:49:24] Testing complete. Ran 482 tests: passed: 465, skipped: 17

Kernel Build Result

Check Patch Result

Total Errors 0
Total Warnings 123

ifnfn pushed a commit to ifnfn/rvck that referenced this pull request Aug 31, 2026
dist inclusion
category: feature
bugzilla: RVCK-Project#382

--------------------------------

Allow ZhiHe A210 GPIO controller instances in the DW APB GPIO binding.

Signed-off-by: Zhiguo Zhu <zhiguo.zhu@linux.alibaba.com>
@ifnfn
ifnfn force-pushed the peripheral-upstream branch from e9eb277 to ccd6567 Compare August 31, 2026 07:50
ifnfn pushed a commit to ifnfn/rvck that referenced this pull request Aug 31, 2026
dist inclusion
category: feature
bugzilla: RVCK-Project#382

--------------------------------

Allow the ZhiHe A210 AXI DMAC compatible string in the DW AXI DMAC binding.

Signed-off-by: Zhiguo Zhu <zhiguo.zhu@linux.alibaba.com>
ifnfn pushed a commit to ifnfn/rvck that referenced this pull request Aug 31, 2026
dist inclusion
category: feature
bugzilla: RVCK-Project#382

--------------------------------

Add ZhiHe A210 compatible data to the DW AXI DMAC platform driver.

Signed-off-by: Zhiguo Zhu <zhiguo.zhu@linux.alibaba.com>
ifnfn pushed a commit to ifnfn/rvck that referenced this pull request Aug 31, 2026
dist inclusion
category: feature
bugzilla: RVCK-Project#382

--------------------------------

Describe ZhiHe A210 GPIO controller nodes and board GPIO usage.

Signed-off-by: Zhiguo Zhu <zhiguo.zhu@linux.alibaba.com>
ifnfn pushed a commit to ifnfn/rvck that referenced this pull request Aug 31, 2026
dist inclusion
category: feature
bugzilla: RVCK-Project#382

--------------------------------

Describe the ZhiHe A210 DesignWare APB timer nodes.

Signed-off-by: Zhiguo Zhu <zhiguo.zhu@linux.alibaba.com>
ifnfn pushed a commit to ifnfn/rvck that referenced this pull request Aug 31, 2026
dist inclusion
category: feature
bugzilla: RVCK-Project#382

--------------------------------

Describe the ZhiHe A210 DesignWare I2C controller nodes.

Signed-off-by: Zhiguo Zhu <zhiguo.zhu@linux.alibaba.com>
ifnfn pushed a commit to ifnfn/rvck that referenced this pull request Aug 31, 2026
dist inclusion
category: feature
bugzilla: RVCK-Project#382

--------------------------------

Describe the ZhiHe A210 DesignWare SPI controller nodes.

Signed-off-by: Zhiguo Zhu <zhiguo.zhu@linux.alibaba.com>
ifnfn pushed a commit to ifnfn/rvck that referenced this pull request Aug 31, 2026
dist inclusion
category: feature
bugzilla: RVCK-Project#382

--------------------------------

Describe the ZhiHe A210 AXI DMAC node and board DMA usage.

Signed-off-by: Zhiguo Zhu <zhiguo.zhu@linux.alibaba.com>
@github-actions

github-actions Bot commented Aug 31, 2026

Copy link
Copy Markdown

开始测试 log: https://github.com/RVCK-Project/rvck/actions/runs/33370178333

参数解析结果
args value
repository RVCK-Project/rvck
head ref pull/382/head
base ref rvck-6.6
LAVA repo RVCK-Project/lavaci
LAVA hardware ['qemu']
LAVA Testcase path lava-testcases/common-test/ltp/ltp.yaml
need run job kunit-test,kernel-build,check-patch,lava-trigger

测试完成

详细结果:
check result
kunit-test success
kernel-build failure
check-patch success
lava-trigger-qemu skipped
lava-trigger-sg2042 skipped
lava-trigger-k1 skipped
lava-trigger-lpi4a skipped

Kunit Test Result

[07:55:14] Testing complete. Ran 482 tests: passed: 465, skipped: 17

Kernel Build Result

Check Patch Result

Total Errors 0
Total Warnings 123

@sterling-teng sterling-teng linked an issue Sep 1, 2026 that may be closed by this pull request
@ifnfn
ifnfn force-pushed the peripheral-upstream branch from ccd6567 to 1db15a9 Compare September 7, 2026 02:36
ifnfn pushed a commit to ifnfn/rvck that referenced this pull request Sep 7, 2026
dist inclusion
category: feature
bugzilla: RVCK-Project#382

--------------------------------

Allow the ZhiHe A210 AXI DMAC compatible string in the DW AXI DMAC binding.

Signed-off-by: Zhiguo Zhu <zhiguo.zhu@linux.alibaba.com>
ifnfn pushed a commit to ifnfn/rvck that referenced this pull request Sep 7, 2026
dist inclusion
category: feature
bugzilla: RVCK-Project#382

--------------------------------

Add ZhiHe A210 compatible data to the DW AXI DMAC platform driver.

Signed-off-by: Zhiguo Zhu <zhiguo.zhu@linux.alibaba.com>
ifnfn pushed a commit to ifnfn/rvck that referenced this pull request Sep 7, 2026
dist inclusion
category: feature
bugzilla: RVCK-Project#382

--------------------------------

Describe ZhiHe A210 GPIO controller nodes and board GPIO usage.

Signed-off-by: Zhiguo Zhu <zhiguo.zhu@linux.alibaba.com>
ifnfn pushed a commit to ifnfn/rvck that referenced this pull request Sep 7, 2026
dist inclusion
category: feature
bugzilla: RVCK-Project#382

--------------------------------

Describe the ZhiHe A210 DesignWare APB timer nodes.

Signed-off-by: Zhiguo Zhu <zhiguo.zhu@linux.alibaba.com>
ifnfn pushed a commit to ifnfn/rvck that referenced this pull request Sep 7, 2026
dist inclusion
category: feature
bugzilla: RVCK-Project#382

--------------------------------

Describe the ZhiHe A210 DesignWare I2C controller nodes.

Signed-off-by: Zhiguo Zhu <zhiguo.zhu@linux.alibaba.com>
ifnfn pushed a commit to ifnfn/rvck that referenced this pull request Sep 7, 2026
dist inclusion
category: feature
bugzilla: RVCK-Project#382

--------------------------------

Describe the ZhiHe A210 DesignWare SPI controller nodes.

Signed-off-by: Zhiguo Zhu <zhiguo.zhu@linux.alibaba.com>
ifnfn pushed a commit to ifnfn/rvck that referenced this pull request Sep 7, 2026
dist inclusion
category: feature
bugzilla: RVCK-Project#382

--------------------------------

Describe the ZhiHe A210 AXI DMAC node and board DMA usage.

Signed-off-by: Zhiguo Zhu <zhiguo.zhu@linux.alibaba.com>
@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown

开始测试 log: https://github.com/RVCK-Project/rvck/actions/runs/34076817738

参数解析结果
args value
repository RVCK-Project/rvck
head ref pull/382/head
base ref rvck-6.6
LAVA repo RVCK-Project/lavaci
LAVA hardware ['qemu']
LAVA Testcase path lava-testcases/common-test/ltp/ltp.yaml
need run job kunit-test,kernel-build,check-patch,lava-trigger

测试完成

详细结果:
check result
kunit-test success
kernel-build failure
check-patch success
lava-trigger-qemu skipped
lava-trigger-sg2042 skipped
lava-trigger-k1 skipped
lava-trigger-lpi4a skipped

Kunit Test Result

[02:39:31] Testing complete. Ran 482 tests: passed: 465, skipped: 17

Kernel Build Result

Check Patch Result

Total Errors 0
Total Warnings 7

Zhiguo Zhu added 6 commits September 7, 2026 10:58
dist inclusion
category: feature
bugzilla: RVCK-Project#382

--------------------------------

Allow the ZhiHe A210 AXI DMAC compatible string in the DW AXI DMAC binding.

Signed-off-by: Zhiguo Zhu <zhiguo.zhu@linux.alibaba.com>
dist inclusion
category: feature
bugzilla: RVCK-Project#382

--------------------------------

Add ZhiHe A210 compatible data to the DW AXI DMAC platform driver.

Signed-off-by: Zhiguo Zhu <zhiguo.zhu@linux.alibaba.com>
dist inclusion
category: feature
bugzilla: RVCK-Project#382

--------------------------------

Describe the ZhiHe A210 AXI DMAC node and board DMA usage.

Signed-off-by: Zhiguo Zhu <zhiguo.zhu@linux.alibaba.com>
dist inclusion
category: feature
bugzilla: RVCK-Project#382

--------------------------------

Describe ZhiHe A210 GPIO controller nodes and board GPIO usage.

Signed-off-by: Zhiguo Zhu <zhiguo.zhu@linux.alibaba.com>
dist inclusion
category: feature
bugzilla: RVCK-Project#382

--------------------------------

Describe the ZhiHe A210 DesignWare APB timer nodes.

Signed-off-by: Zhiguo Zhu <zhiguo.zhu@linux.alibaba.com>
dist inclusion
category: feature
bugzilla: RVCK-Project#382

--------------------------------

Describe the ZhiHe A210 DesignWare I2C controller nodes.

Signed-off-by: Zhiguo Zhu <zhiguo.zhu@linux.alibaba.com>
@ifnfn
ifnfn force-pushed the peripheral-upstream branch from 1db15a9 to 0183455 Compare September 7, 2026 11:48
ifnfn pushed a commit to ifnfn/rvck that referenced this pull request Sep 7, 2026
dist inclusion
category: feature
bugzilla: RVCK-Project#382

--------------------------------

Describe the ZhiHe A210 DesignWare SPI controller nodes.

Signed-off-by: Zhiguo Zhu <zhiguo.zhu@linux.alibaba.com>
@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown

开始测试 log: https://github.com/RVCK-Project/rvck/actions/runs/34118510356

参数解析结果
args value
repository RVCK-Project/rvck
head ref pull/382/head
base ref rvck-6.6
LAVA repo RVCK-Project/lavaci
LAVA hardware ['qemu']
LAVA Testcase path lava-testcases/common-test/ltp/ltp.yaml
need run job kunit-test,kernel-build,check-patch,lava-trigger

测试完成

详细结果:
check result
kunit-test success
kernel-build failure
check-patch success
lava-trigger-qemu skipped
lava-trigger-sg2042 skipped
lava-trigger-k1 skipped
lava-trigger-lpi4a skipped

Kunit Test Result

[11:53:14] Testing complete. Ran 482 tests: passed: 465, skipped: 17

Kernel Build Result

Check Patch Result

Total Errors 0
Total Warnings 7

dist inclusion
category: feature
bugzilla: RVCK-Project#382

--------------------------------

Describe the ZhiHe A210 DesignWare SPI controller nodes.

Signed-off-by: Zhiguo Zhu <zhiguo.zhu@linux.alibaba.com>
@ifnfn
ifnfn force-pushed the peripheral-upstream branch from 0183455 to 9a58ad4 Compare September 7, 2026 12:32
@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown

开始测试 log: https://github.com/RVCK-Project/rvck/actions/runs/34122439710

参数解析结果
args value
repository RVCK-Project/rvck
head ref pull/382/head
base ref rvck-6.6
LAVA repo RVCK-Project/lavaci
LAVA hardware ['qemu']
LAVA Testcase path lava-testcases/common-test/ltp/ltp.yaml
need run job kunit-test,kernel-build,check-patch,lava-trigger

测试完成

详细结果:
check result
kunit-test success
kernel-build success
check-patch success
lava-trigger-qemu success
lava-trigger-sg2042 skipped
lava-trigger-k1 skipped
lava-trigger-lpi4a skipped

Kunit Test Result

[12:37:34] Testing complete. Ran 482 tests: passed: 465, skipped: 17

Kernel Build Result

Check Patch Result

Total Errors 0
Total Warnings 7

LAVA Check (qemu)

args value
testcase_repo RVCK-Project/lavaci
lava_template lava-job-template/qemu/qemu-ltp.yaml
testcase_path lava-testcases/common-test/ltp/ltp.yaml
kernel_download_url http://10.30.190.110/openEuler-RISC-V/RVCK/OERV-RVCI/RVCK-Project/rvck/382_34122439710_1/Image
initramfs_download_url http://10.30.190.110/openEuler-RISC-V/RVCK/OERV-RVCI/RVCK-Project/rvck/382_34122439710_1/initramfs.img
rootfs_download_url https://fast-mirror.isrc.ac.cn/openeuler-sig-riscv/openEuler-RISC-V/RVCK/openEuler24.03-LTS-SP1/openeuler-rootfs.img.zst
testcase_ref main
testitem_name RVCK-Project_rvck_pull_request_target_382__common-test_qemu

result: Lava check done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ZhiHe A210: add peripheral support (GPIO/timers/I2C/SPI/DMA)

2 participants