Skip to content

Commit bce1665

Browse files
boards: st: nucleo_wba65ri: add support for USB
Configure and enable the USB controller on Nucleo-WBA65RI. Signed-off-by: Mathieu Choplain <[email protected]>
1 parent 50f8530 commit bce1665

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

boards/st/nucleo_wba65ri/nucleo_wba65ri.dts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,3 +174,17 @@ stm32_lp_tick_source: &lptim1 {
174174
};
175175
};
176176
};
177+
178+
zephyr_udc0: &usbotg_hs {
179+
clocks = <&rcc STM32_CLOCK(AHB2, 14)>,
180+
<&rcc STM32_SRC_HSE OTGHS_SEL(0)>;
181+
pinctrl-0 = <&usb_otg_hs_dm_pd7 &usb_otg_hs_dp_pd6>;
182+
pinctrl-names = "default";
183+
status = "okay";
184+
};
185+
186+
&otghs_phy {
187+
/* OTG HS clock source is 32 MHz HSE */
188+
clock-reference = "SYSCFG_OTG_HS_PHY_CLK_32MHz";
189+
status = "okay";
190+
};

boards/st/nucleo_wba65ri/nucleo_wba65ri.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ supported:
1111
- spi
1212
- adc
1313
- rng
14+
- usbd
1415
- arduino_gpio
1516
- arduino_i2c
1617
- arduino_spi

0 commit comments

Comments
 (0)