Replies: 3 comments 3 replies
-
|
re: excluding anything except RISC-V, I agree. re: bindings, is the plan to use a family prefix only when needed? For example, do we keep re: names, I see some are re: ch32v003 vs ch32v00x, the 003 is often different compared to the 00x like the 006, so I'd define a wch,v003 prefix for it re: chips I mainly use the ch32v006, but have a few ch32v003evt's, a bluepillplus_ch32v203, and two weact linkw clones. Happy to test any patches on these. re: plans, I don't really have any. I like writing drivers to write drivers, and like enabling all of the features on a chip and trying to get good performance out. My current WIP branch is https://github.com/nzmichaelh/zephyr/tree/ch81 / https://juju.nz/src/michaelh/zephyr/src/branch/ch81 and I'm sending those upstream ATM. I'm also keen on testing. I could add ch32v003 and ch32v00x configurations so that Twister includes at least a "still compiles" test. I see |
Beta Was this translation helpful? Give feedback.
-
|
Do also have a 003, and a few x035. Hopefully getting a 307 soon as well, but not yet here |
Beta Was this translation helpful? Give feedback.
-
|
I have only the 303, and I can test code on it if necessary. About plans, short term I won't have much time to develop anything. Middle term, if @BOJIT didn't complete the USB UDC driver (20x_30x family), I will probably get back on it to get it finally working, but I don't have time for it right now, so feel free to do it if you want. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! I thought I'd make this discussion as a general location for tracking progress/support for the WCH platform on Zephyr.
There's recently been a few attempts to add support for some more of WCH's microcontrollers to Zephyr. The structuring of WCH's chip offerings is quite chaotic and hard to follow, so it's often unclear which peripherals are common across different chip series. WCH provide the following diagram, but the peripheral compatibility and CPU core don't seem to follow a neat pattern.
To make development/testing a bit easier, I'm proposing the following grouping of driver/binding support in Zephyr for WCH.
So far, everything added to zephyr is in the CH32 family, but there has been interest in adding CH5xx support in the future, which has mostly incompatible peripheral drivers. In future I'd suggest that drivers/bindings have a
ch32-prefix unless they are guaranteed to work with the CH5xx family too.Anything that is more specific (e.g. clock controller bindings, pinctrl, etc...) should have a prefix for the sub-family of that chip-type. This should make it less likely for us to inadvertently break something while modifying a driver for another family.
Contributors for Each Family
Most of us using WCH MCUs are only using a subset of the supported SOCs. For the purposes of testing, it would be helpful if people could add which boards they have / regularly use here. This is my best first guess:
CH32V307, occasionally useCH32V305,CH32V317.CH32V006,CH32V203.CH32V003.CH32V003,CH32V006,CH32V203,CH32V208,CH32H417,CH592,CH570D. Regularly uses none of them.CH32V303.CH32V003,CH32X035,CH32V203.General Tasks/Aims
It would be good to track what people want to see added / are working on adding to WCH zephyr support. For example, I'm currently trying to work on:
wlink.Useful Links
It would be great to hear people's thoughts on this, plus any other suggestions for features/direction of the platform!
Beta Was this translation helpful? Give feedback.
All reactions