Skip to content

Commit

Permalink
boards: st: nucleo_u5a5zj_q: enable USB HS
Browse files Browse the repository at this point in the history
Provide configuration for USB HS with embedded USB HS PHY.

Disable USB_DC_STM32_CLOCK_CHECK, since USB PLL is expected to be sourced
by 16MHz clock, instead of 48MHz.

Signed-off-by: Marcin Niestroj <[email protected]>
  • Loading branch information
mniestroj committed Nov 22, 2024
1 parent af145ce commit 1046eb4
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
5 changes: 5 additions & 0 deletions boards/st/nucleo_u5a5zj_q/Kconfig.defconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Copyright (c) 2024 Marcin Niestroj
# SPDX-License-Identifier: Apache-2.0

configdefault USB_DC_STM32_CLOCK_CHECK
default n
2 changes: 2 additions & 0 deletions boards/st/nucleo_u5a5zj_q/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,8 @@ The Zephyr nucleo_u5a5zj_q board configuration supports the following hardware f
+-----------+------------+-------------------------------------+
| RTC | on-chip | rtc |
+-----------+------------+-------------------------------------+
| USB | on-chip | USB high-speed host/device bus |
+-----------+------------+-------------------------------------+


Other hardware features are not yet supported on this Zephyr port.
Expand Down
17 changes: 17 additions & 0 deletions boards/st/nucleo_u5a5zj_q/nucleo_u5a5zj_q.dts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@
volt-sensor0 = &vref1;
volt-sensor1 = &vbat4;
};

soc {
usbphyc: usbphyc@40017c00 {
compatible = "st,stm32-usbphyc";
reg = <0x40017c00 0x400>;
#phy-cells = <0>;
};
};
};

&flash0 {
Expand Down Expand Up @@ -74,3 +82,12 @@
&gpdma1 {
status = "okay";
};

zephyr_udc0: &usbotg_hs {
pinctrl-0 = <&usb_otg_hs_dm_pa11 &usb_otg_hs_dp_pa12>;
pinctrl-names = "default";
clocks = <&rcc STM32_CLOCK_BUS_AHB2 0x0000c000>,
<&rcc STM32_SRC_HSE USBPHYC_SEL(0)>;
phys = <&usbphyc>;
status = "okay";
};
1 change: 1 addition & 0 deletions boards/st/nucleo_u5a5zj_q/nucleo_u5a5zj_q.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ supported:
- backup_sram
- dma
- rtc
- usb_device
ram: 2450
flash: 4096

0 comments on commit 1046eb4

Please sign in to comment.