Skip to content

STM32N6 : Add the support of the USB and UDC#84976

Merged
kartben merged 8 commits into
zephyrproject-rtos:mainfrom
marwaiehm-st:upstream_usb_stm32n6_f
Apr 14, 2025
Merged

STM32N6 : Add the support of the USB and UDC#84976
kartben merged 8 commits into
zephyrproject-rtos:mainfrom
marwaiehm-st:upstream_usb_stm32n6_f

Conversation

@marwaiehm-st

@marwaiehm-st marwaiehm-st commented Jan 31, 2025

Copy link
Copy Markdown
Contributor

Add the support of the USB OTG HS
Enable the USB OTG HS node of the stm32n6570_dk and nucleo_n657x0_q boards.

@zephyrbot

zephyrbot commented Jan 31, 2025

Copy link
Copy Markdown

The following west manifest projects have changed revision in this Pull Request:

Name Old Revision New Revision Diff

All manifest checks OK

Note: This message is automatically posted and updated by the Manifest GitHub Action.

@zephyrbot zephyrbot added manifest manifest-hal_stm32 DNM This PR should not be merged (Do Not Merge) labels Jan 31, 2025
@marwaiehm-st marwaiehm-st force-pushed the upstream_usb_stm32n6_f branch 2 times, most recently from 8b0f1ac to 762ff4f Compare January 31, 2025 17:08

@mbolivar mbolivar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Runner changes look reasonable to me, no objections. Found a couple of nonblocking minor things

Comment thread soc/st/stm32/stm32n6x/CMakeLists.txt Outdated
Comment thread dts/bindings/usb/st,stm32n6-otghs.yaml Outdated
@marwaiehm-st marwaiehm-st force-pushed the upstream_usb_stm32n6_f branch from 762ff4f to 71f6ed0 Compare January 31, 2025 17:15
@zephyrbot zephyrbot removed the DNM This PR should not be merged (Do Not Merge) label Jan 31, 2025
kartben
kartben previously approved these changes Apr 9, 2025
erwango
erwango previously approved these changes Apr 9, 2025
@marwaiehm-st marwaiehm-st changed the title STM32N6 : Add the support of the USB and USB_NEXT STM32N6 : Add the support of the USB and UDC Apr 9, 2025
Add STM32N6 USB OTG HS compatible 'st,stm32n6-otghs'
that doesn't require pinctrl-0 and pinctrl-names.

Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <marwa.ibenelhadjmessaoud-ext@st.com>
Add the USB OTG HS node for the STM32N6X devices

Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <marwa.ibenelhadjmessaoud-ext@st.com>
jfischer-no
jfischer-no previously approved these changes Apr 9, 2025
Enable the USB OTG HS node of the nucleo_n657x0_q board

Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <marwa.ibenelhadjmessaoud-ext@st.com>
Enable the USB OTG HS node of the stm32n6570_dk board

Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <marwa.ibenelhadjmessaoud-ext@st.com>
Enable clock and power for the OTG HS peripheral
of the STM32N6x serie

Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <marwa.ibenelhadjmessaoud-ext@st.com>
Add the usbd test feature to twister.yaml for the boards
nucleo_n657x0_q and stm32n6570_dk.

Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <marwa.ibenelhadjmessaoud-ext@st.com>
Add STM32N6 family support to UDC driver

Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <marwa.ibenelhadjmessaoud-ext@st.com>
@marwaiehm-st marwaiehm-st dismissed stale reviews from jfischer-no, erwango, and kartben via a03c9b2 April 9, 2025 08:52
@marwaiehm-st marwaiehm-st force-pushed the upstream_usb_stm32n6_f branch from 734375a to a03c9b2 Compare April 9, 2025 08:52

@JarmouniA JarmouniA Apr 9, 2025

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this is coming late, but why not leave this as is, and use property-blocklist in st,stm32n6-otghs.yaml to filter out pinctrl-0 & pinctrl-names? (similar to

property-blocklist:
)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is Zephyr specific, right? @mbolivar How will property-blocklist/allowlist be handled in the future?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is Zephyr specific, right?

Yes, I think so.

jfischer-no
jfischer-no previously approved these changes Apr 9, 2025
@marwaiehm-st marwaiehm-st added the DNM This PR should not be merged (Do Not Merge) label Apr 9, 2025
@marwaiehm-st

Copy link
Copy Markdown
Contributor Author

I added the label DNM because we should wait for the PR #86100 to be merged first

@marwaiehm-st marwaiehm-st removed the DNM This PR should not be merged (Do Not Merge) label Apr 11, 2025
- Unified the handling of USB OTG HS and USB OTG FS
  by removing redundant preprocessor conditionals.
- Introduced a new macro `UDC_STM32_BASE_ADDRESS`
  to dynamically set the USB base address.

Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <marwa.ibenelhadjmessaoud-ext@st.com>
@marwaiehm-st marwaiehm-st force-pushed the upstream_usb_stm32n6_f branch from 232228e to 5c1bbb7 Compare April 11, 2025 23:06
@marwaiehm-st

Copy link
Copy Markdown
Contributor Author

I added a commit to read the correct USB OTG configurations (instance), so there is no need to wait for this PR #86100 to be merged anymore.

@kartben kartben merged commit 1844e98 into zephyrproject-rtos:main Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: USB Universal Serial Bus platform: STM32 ST Micro STM32

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants