drivers: ethernet: add WCH CH390 SPI Ethernet driver#11593
Conversation
|
👋 感谢您对 RT-Thread 的贡献!Thank you for your contribution to RT-Thread! 为确保代码符合 RT-Thread 的编码规范,请在你的仓库中执行以下步骤运行代码格式化工作流(如果格式化CI运行失败)。 🛠 操作步骤 | Steps
完成后,提交将自动更新至 如有问题欢迎联系我们,再次感谢您的贡献!💐 |
📌 Code Review Assignment🏷️ Tag: componentsReviewers: @Maihuanyi Changed Files (Click to expand)
🏷️ Tag: components_driver_spiReviewers: @Liang1795 @wdfk-prog Changed Files (Click to expand)
📊 Current Review Status (Last Updated: 2026-07-08 23:38 CST)
📝 Review Instructions
|
|
I think it would be better if the CH390 driver were available as a software package. |
+1 |
thanks, I have moved the ch390 driver into a standalone package repository and submit the package index to RT-Thread/packages, and this PR will be closed |
拉取/合并请求描述:(PR description)
[
为什么提交这份PR (why to submit this PR)
This PR adds support for the WCH CH390 SPI Ethernet controller.
CH390 is a SPI Ethernet controller that can be used by RT-Thread BSPs to provide wired network connectivity. This PR adds the common CH390 SPI Ethernet driver and provides a
board-level port for the gd32407v-lckfb BSP.
你的解决方案是什么 (what is your solution)
components/drivers/spi.RT_USING_CH390.eth_device.PIN_NONEwhen the reset pin is not connected.gd32407v-lckfbBSP CH390 port with SPI0, CS, INT, reset pin, MAC address, and netif configuration.Hardware verification was done with the following wiring:
The CH390 netif was configured as
192.168.1.30/24, and the host PC IP was192.168.1.100. Ping tests passed in both directions.请提供验证的bsp和config (provide the config and bsp)
bsp/gd32/arm/gd32407v-lckfb