Skip to content

Commit 5816fe0

Browse files
marwaiehm-stkartben
authored andcommitted
boards: st: nucleo_n657x0_q: Enable OTG HS peripheral
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>
1 parent a3c08e0 commit 5816fe0

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed

boards/st/nucleo_n657x0_q/doc/index.rst

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

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

boards/st/nucleo_n657x0_q/nucleo_n657x0_q_common.dtsi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@
5656
};
5757
};
5858

59+
&clk_hse {
60+
hse-div2;
61+
clock-frequency = <DT_FREQ_M(48)>;
62+
status = "okay";
63+
};
64+
5965
&clk_hsi {
6066
hsi-div = <1>;
6167
status = "okay";
@@ -174,6 +180,9 @@
174180
pinctrl-0 = <&usart3_tx_pd8 &usart3_rx_pd9>;
175181
pinctrl-names = "default";
176182
current-speed = <115200>;
183+
};
184+
185+
zephyr_udc0: &usbotg_hs1 {
177186
status = "okay";
178187
};
179188

boards/st/nucleo_n657x0_q/twister.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ supported:
1414
- gpio
1515
- spi
1616
- uart
17+
- usb_device
1718
vendor: st
1819
variants:
1920
nucleo_n657x0_q/stm32n657xx:

0 commit comments

Comments
 (0)