From 036c8f6697214860518db8728d9a6a464256d040 Mon Sep 17 00:00:00 2001 From: Francois Ramu Date: Mon, 3 Jul 2023 17:33:20 +0200 Subject: [PATCH] boards: arm: stm32h563 nucleo board with USB bus Enables the USB bus on PA11/PA12 of the nucleo_stm32h563 board Signed-off-by: Francois Ramu --- boards/arm/nucleo_h563zi/doc/index.rst | 2 ++ boards/arm/nucleo_h563zi/nucleo_h563zi-common.dtsi | 6 ++++++ boards/arm/nucleo_h563zi/nucleo_h563zi.yaml | 2 ++ 3 files changed, 10 insertions(+) diff --git a/boards/arm/nucleo_h563zi/doc/index.rst b/boards/arm/nucleo_h563zi/doc/index.rst index 1c1acf62e0e..6ed79d8c7b9 100644 --- a/boards/arm/nucleo_h563zi/doc/index.rst +++ b/boards/arm/nucleo_h563zi/doc/index.rst @@ -173,6 +173,8 @@ The Zephyr nucleo_h563zi board configuration supports the following hardware fea +-----------+------------+-------------------------------------+ | WATCHDOG | on-chip | independent watchdog | +-----------+------------+-------------------------------------+ +| USB | on-chip | USB full-speed host/device bus | ++-----------+------------+-------------------------------------+ Other hardware features are not yet supported on this Zephyr port. diff --git a/boards/arm/nucleo_h563zi/nucleo_h563zi-common.dtsi b/boards/arm/nucleo_h563zi/nucleo_h563zi-common.dtsi index 6c9c9efec8d..6b72080177d 100644 --- a/boards/arm/nucleo_h563zi/nucleo_h563zi-common.dtsi +++ b/boards/arm/nucleo_h563zi/nucleo_h563zi-common.dtsi @@ -166,6 +166,12 @@ }; }; +zephyr_udc0: &usb { + pinctrl-0 = <&usb_dm_pa11 &usb_dp_pa12>; + pinctrl-names = "default"; + status = "okay"; +}; + &vref { status = "okay"; }; diff --git a/boards/arm/nucleo_h563zi/nucleo_h563zi.yaml b/boards/arm/nucleo_h563zi/nucleo_h563zi.yaml index 39ce37e4f77..1798cf41e59 100644 --- a/boards/arm/nucleo_h563zi/nucleo_h563zi.yaml +++ b/boards/arm/nucleo_h563zi/nucleo_h563zi.yaml @@ -19,3 +19,5 @@ supported: - pwm - counter - spi + - usb_device + - usb