Cherry pick of stm32c0 changes needed for full support with USB on v4.1#50
Merged
petejohanson merged 7 commits intozmkfirmware:v4.1.0+zmk-fixesfrom Jan 7, 2026
Merged
Conversation
Added USB device node with compatible "st,stm32-usb". Added usb_fs_phy node with compatible "usb-nop-xceiv". Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <marwa.ibenelhadjmessaoud-ext@st.com>
- Defined CCIPR2_REG offset. - Added USB_SEL(val) macro to support USB clock selection using CCIPR2_REG. Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <marwa.ibenelhadjmessaoud-ext@st.com>
Selecting the clock source for USB is only a bit value in the CCIPR2 register. See RM0490 Rev 5 chapter 6.4.21 page 159. Signed-off-by: Tomáš Juřena <jurenatomas@gmail.com>
STM32C071 have USB peripheral which can be clocked from HSI (HSIUSB48). Signed-off-by: Tomáš Juřena <jurenatomas@gmail.com>
Allow to use internal HSI to clock the USB bus if HSE is not available. Signed-off-by: Tomáš Juřena <jurenatomas@gmail.com>
Allows enabling the Clock Recovery System (CRS) for HSI48 to achieve the expected accuracy for USB transfers. Uses USB SOF packet by default. Signed-off-by: Tomáš Juřena <jurenatomas@gmail.com>
Implementation based on STM32G4 series. This is a preparation to enable reading and writing the RDP bits. Signed-off-by: Martin Jäger <martin@libre.solar>
5 tasks
ec36516
into
zmkfirmware:v4.1.0+zmk-fixes
6 of 8 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Zephyr 4.1 has the stm32c0 SoC definition, but didn't yet fully support USB. This Zephyr branch cherry picks the few additional changes for the HSIUSB48 clock and USB peripheral setup to support it.