Skip to content

Commit 752e1fe

Browse files
marwaiehm-stkartben
authored andcommitted
boards: st: stm32n6570_dk: Enable OTG HS peripheral
Enable the USB OTG HS node of the stm32n6570_dk board Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <marwa.ibenelhadjmessaoud-ext@st.com>
1 parent 5816fe0 commit 752e1fe

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed

boards/st/stm32n6570_dk/doc/index.rst

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,36 @@ Supported Features
6666

6767
.. zephyr:board-supported-hw::
6868
69+
USB
70+
===
71+
72+
The USB pin assignments on the STM32N657XX microcontroller are immutable. This means that the specific
73+
pins designated for USB functionality are fixed and cannot be changed or reassigned to other functions,
74+
ensuring consistent and reliable USB communication.
75+
76+
USB PIN (IOs)
77+
=============
78+
79+
+------------------+--------------------------------------+
80+
| Name | Description |
81+
+==================+======================================+
82+
| OTG1_HSDM | USB OTG1 High-Speed Data- (negative) |
83+
+------------------+--------------------------------------+
84+
| OTG1_HSDP | USB OTG1 High-Speed Data+ (positive) |
85+
+------------------+--------------------------------------+
86+
| OTG1_ID | USB OTG1 ID Pin |
87+
+------------------+--------------------------------------+
88+
| OTG1_TXRTUNE | USB OTG1 Transmit Retune |
89+
+------------------+--------------------------------------+
90+
| OTG2_HSDM | USB OTG2 High-Speed Data- (negative) |
91+
+------------------+--------------------------------------+
92+
| OTG2_HSDP | USB OTG2 High-Speed Data+ (positive) |
93+
+------------------+--------------------------------------+
94+
| OTG2_ID | USB OTG2 ID Pin |
95+
+------------------+--------------------------------------+
96+
| OTG2_TXRTUNE | USB OTG2 Transmit Retune |
97+
+------------------+--------------------------------------+
98+
6999
Connections and IOs
70100
===================
71101

boards/st/stm32n6570_dk/stm32n6570_dk_common.dtsi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@
4545
};
4646
};
4747

48+
&clk_hse {
49+
hse-div2;
50+
clock-frequency = <DT_FREQ_M(48)>;
51+
status = "okay";
52+
};
53+
4854
&clk_hsi {
4955
hsi-div = <1>;
5056
status = "okay";
@@ -191,6 +197,9 @@
191197
pinctrl-0 = <&usart2_tx_pd5 &usart2_rx_pf6>;
192198
pinctrl-names = "default";
193199
current-speed = <115200>;
200+
};
201+
202+
zephyr_udc0: &usbotg_hs1 {
194203
status = "okay";
195204
};
196205

boards/st/stm32n6570_dk/twister.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ supported:
1616
- memc
1717
- spi
1818
- uart
19+
- usb_device
1920
variants:
2021
stm32n6570_dk/stm32n657xx:
2122
twister: false

0 commit comments

Comments
 (0)