72. USB subsystem (USBSS)

72.1 Overview

The USB subsystem includes two USB2 OTG high-speed ports and two channel configuration lines for Type-C and power delivery support. A high level block diagram is shown in Figure 973.

The USB2 OTG high-speed ports support Full Speed and Low Speed modes when acting as Host, and Full Speed mode when acting as Device.

The configuration channels support Type-C and power delivery features in applications where one of the USB2 port is connected to a Type-C receptacle.

Figure 973. USB subsystem overview

Figure 973. USB subsystem overview block diagram. The diagram shows three main sections: USB2 OTG HS Port 1, USB2 OTG HS Port 2, and Channel configuration pins for Type-C and Power Delivery support. Each section consists of a controller (OTG1, OTG2, or UCPD1 Type-C and Power Delivery Controller) connected via UTMI+ to a PHY (OTGPHY1, OTGPHY2, or UCPD PHY). The PHYs are then connected to various pins: OTG1_HSDP, OTG1_HSDM, OTG1_ID, OTG1_TXRTUNE for Port 1; OTG2_HSDP, OTG2_HSDM, OTG2_ID, OTG2_TXRTUNE for Port 2; and UCPD1_CC1, UCPD1_CC2 for the channel configuration pins. A vertical label 'MS56613V1' is on the right side.
graph LR
    subgraph Port1 [USB2 OTG HS Port 1]
        OTG1[OTG1] <-->|UTMI+| OTGPHY1[OTGPHY1]
        OTGPHY1 <--> OTG1_HSDP[OTG1_HSDP]
        OTGPHY1 <--> OTG1_HSDM[OTG1_HSDM]
        OTGPHY1 <--> OTG1_ID[OTG1_ID]
        OTGPHY1 <--> OTG1_TXRTUNE[OTG1_TXRTUNE]
    end

    subgraph Port2 [USB2 OTG HS Port 2]
        OTG2[OTG2] <-->|UTMI+| OTGPHY2[OTGPHY2]
        OTGPHY2 <--> OTG2_HSDP[OTG2_HSDP]
        OTGPHY2 <--> OTG2_HSDM[OTG2_HSDM]
        OTGPHY2 <--> OTG2_ID[OTG2_ID]
        OTGPHY2 <--> OTG2_TXRTUNE[OTG2_TXRTUNE]
    end

    subgraph Config [Channel configuration pins for Type-C and Power Delivery support]
        UCPD1[UCPD1 Type-C and Power Delivery Controller] <--> UCPD_PHY[UCPD PHY]
        UCPD_PHY <--> UCPD1_CC1[UCPD1_CC1]
        UCPD_PHY <--> UCPD1_CC2[UCPD1_CC2]
    end
Figure 973. USB subsystem overview block diagram. The diagram shows three main sections: USB2 OTG HS Port 1, USB2 OTG HS Port 2, and Channel configuration pins for Type-C and Power Delivery support. Each section consists of a controller (OTG1, OTG2, or UCPD1 Type-C and Power Delivery Controller) connected via UTMI+ to a PHY (OTGPHY1, OTGPHY2, or UCPD PHY). The PHYs are then connected to various pins: OTG1_HSDP, OTG1_HSDM, OTG1_ID, OTG1_TXRTUNE for Port 1; OTG2_HSDP, OTG2_HSDM, OTG2_ID, OTG2_TXRTUNE for Port 2; and UCPD1_CC1, UCPD1_CC2 for the channel configuration pins. A vertical label 'MS56613V1' is on the right side.

72.2 USB2 OTG high-speed Port 1

72.2.1 USB2 OTG high-speed Port 1 main features

The supported standards are:

72.2.2 USB2 OTG high-speed Port 1 functional description

Figure 974. USB2 OTG high-speed Port 1 block diagram

Block diagram of USB2 OTG high-speed Port 1 showing the SoC interconnect interfacing via AHB slave (RISUP_OTGHS1_1) to OTG1PHYCTL, AHB slave (RISUP_OTGHS1_0) to OTG1, and AHB master (RIMU_OTGHS1_0) to OTG1. OTG1 communicates with OTGPHY1 through Control and trimming, UTMI+ 8-bit, and Battery charging. OTG1 has a 4 Kbyte RAM, async_interrupt to EXTI1 (otg1_wkup), and interrupt to an OR block feeding M55 NVIC (otg1_gbl_sync_it). External signals from OTGPHY1 include OTG1_HSDP, OTG1_HSDM, OTG1_ID, and OTG1_TXRTUNE.
Block diagram of USB2 OTG high-speed Port 1 showing the SoC interconnect interfacing via AHB slave (RISUP_OTGHS1_1) to OTG1PHYCTL, AHB slave (RISUP_OTGHS1_0) to OTG1, and AHB master (RIMU_OTGHS1_0) to OTG1. OTG1 communicates with OTGPHY1 through Control and trimming, UTMI+ 8-bit, and Battery charging. OTG1 has a 4 Kbyte RAM, async_interrupt to EXTI1 (otg1_wkup), and interrupt to an OR block feeding M55 NVIC (otg1_gbl_sync_it). External signals from OTGPHY1 include OTG1_HSDP, OTG1_HSDM, OTG1_ID, and OTG1_TXRTUNE.

RISUP_OTGHS1_0 and RISUP_OTGHS1_1 correspond to the same RIFSC index, namely OTG1_HS. They are connected to the same sec/priv bits from the RIFSC, and their ilac outputs are OR-ed together, to go to the same IAC index.

USB2 OTG high-speed port pins and internal signals

Table 723. USB2 OTG high-speed Port 1 pins

Signal nameSignal typeDescription
OTG1_HSDP3V3 analogUSB D+ signal
OTG1_HSDMUSB D- signal
OTG1_ID1V8 analogUSB Mini-Receptacle Identifier. Differentiates a mini-A from a mini-B plug.
OTG1_TXRTUNETransmitter resistor tune pin. Connects to GND through an external 200±1% Ω resistor that adjusts the high-speed source impedance of OTGPHY1.
Table 724. USB2 OTG high-speed Port 1 internal signals
Signal nameSignal typeDescription
OTG1 AHB MasterDigitalAHB Master interface to the SoC interconnect for memory access.
AHBLite protocol, 32-bit data width.
OTG1 AHB SlaveDigitalAHB Slave interface to access OTG1 registers.
AHBLite protocol, 32-bit data width.
OTG1PHYCTL AHB SlaveDigitalAHB Slave interface for access to OTG1PHYCTL registers.
Figure 975. USB2 OTG high-speed Port 1 resets Figure 975. USB2 OTG high-speed Port 1 resets block diagram illustrating the reset interconnects from RCC, Reset sync blocks, HRESETN/RISUP/RIMU, OTG1, RAMs Wrapper, and OTGPHY1.
Figure 975. USB2 OTG high-speed Port 1 resets block diagram illustrating the reset interconnects from RCC, Reset sync blocks, HRESETN/RISUP/RIMU, OTG1, RAMs Wrapper, and OTGPHY1.

There are three resets for the USB2 OTG high-speed Port 1:

When configuring the USB2 OTG high-speed Port 1, the reset sequence is:

  1. 1. rst_n_otgphy1, rst_n_otg1 and rst_n_otg1phyctl resets are asserted
  2. 2. clocks coming from RCC and HSE are enabled
  3. 3. rst_n_otg1phyctl reset is released
  4. 4. the frequency of OTGPHY1 reference clock is selected in OTG1PHYCTL_CR register
  5. 5. OTGPHY1 trimming bits are programmed (if needed)
  6. 6. rst_n_otgphy1 is released
  7. 7. wait 50 μs (OTGPHY1 PLL lock time and start of generation of phyclock0)
  8. 8. rst_n_otg1 is released

Description of the USB2 OTG high-speed controller (OTG1)

Refer to Section 73: USB on-the-go high-speed (OTG).

Description of the OTGPHY1

OTGPHY1 is controlled by OTG1PHYCTL registers. Refer to Section 74: USB HS PHY controller (USBPHYC).

72.2.3 USB2 OTG high-speed Port 1 interrupts

The USB2 OTG high-speed Port 1 generates one interrupt and one wake-up event that can be used to take the system out of Stop mode.

Table 725. USB2 OTG high-speed Port 1 interrupt

OTG1 interruptIP pin nameCPU interrupt
OTG1_GBL_SYNC_ITOTG1/interruptOTG1_GBL_SYNC_IT

Table 726. USB2 OTG high-speed Port 1 wake-up events

OTG1 eventIP pin nameEXTI event
OTG1_WKUPOTG1/async_interruptOTG1_WKUP

72.2.4 Battery charging

The OTGPHY1 integrates the voltage and current sources, as well as the voltage comparators required to support Battery Charging v1.2. The relevant control bits are implemented in OTG_GCCFG register of the OTG1 controller.

The control sequence depends on whether the OTG HS port 1 is Host or Device.

Host case

If the application wants the Host port to behave as a Standard Downstream Port (SDP), the default values of H_CDPEN, H_CDPDETEN, H_VDMSRCEN bits in OTG_GCCFG register must be kept.

If the application wants the Host port to behave as a Charging Downstream Port (CDP), one of the following two control sequences must be implemented:

Control sequence 1:

Control sequence 2:

Device case

72.2.5 ID management

If IDPULLUP_DIS control bit in OTG_GCCFG register is 0, the ID information is captured on OTG1_ID pin and provided by the OTGPHY1 to the OTG1 controller. If the OTG1_ID pin is unused and left floating, PULLDOWN_EN bit in the OTG_GCCFG register of OTG1 can be used to control the pull-down resistors on OTG1_HSDP and OTG1_HSDM pins.

72.2.6 VBUS detection

OTGPHY1 is configured in VBUS external comparator mode. As a consequence:

72.3 USB2 OTG high-speed Port 2

72.3.1 USB2 OTG high-speed Port 2 main features

Features are identical to those of the USB2 OTG high-speed Port 1.

72.3.2 USB2 OTG high-speed Port 2 functional description

Figure 976. USB2 OTG high-speed Port 2 block diagram

USB2 OTG high-speed Port 2 block diagram

The diagram illustrates the functional blocks and interconnections of the USB2 OTG high-speed Port 2. A vertical double-headed arrow on the left represents the SoC interconnect. Three AHB interfaces connect to it: RISUP_OTGHS2_1 (AHB slave), RISUP_OTGHS2_0 (AHB slave), and RIMU_OTGHS2_0 (AHB master). RISUP_OTGHS2_1 connects to OTG2PHYCTL, which provides Control and trimming to OTGPHY2. RISUP_OTGHS2_0 connects to OTG2. RIMU_OTGHS2_0 connects to OTG2 as an AHB master. OTG2 is a central block with async_interrupt and interrupt outputs. It also connects to 4 Kbyte RAM and an OR gate. OTG2 has bidirectional data paths with OTGPHY2 for UTMI+ 8-bit and Battery charging. OTGPHY2 contains a PLL and connects to external pins: OTG2_HSDP, OTG2_HSDM, OTG2_ID, and OTG2_TXRTUNE. The async_interrupt from OTG2 goes to otg2_wkup in EXTI1. The interrupt from OTG2 and the output from otg2_wkup are combined by the OR gate, which then connects to otg2_gbl_sync_it in the M55 NVIC. The reference ID MS56615V1 is located in the bottom right corner.

USB2 OTG high-speed Port 2 block diagram

RISUP_OTGHS2_0 and RISUP_OTGHS2_1 correspond to the same RIFSC index (OTG2_HS). They are connected to the same sec/priv bits from the RIFSC, and their ilac outputs are OR-ed together, to go to the same IAC index.

Table 727. USB2 OTG high-speed Port 2 pins

Signal nameSignal typeDescription
OTG2_HSDP3V3 analogUSB D+ signal
OTG2_HSDMUSB D- signal
OTG2_ID1V8 analogUSB Mini-Receptacle identifier. Differentiates a mini-A from a mini-B plug.
OTG2_TXRTUNETransmitter resistor tune pin. Connects to GND through an external 200 200±1% Ω resistor that adjusts the high-speed source impedance of OTGPHY2.

Table 728. USB2 OTG high-speed Port 2 internal signals

Signal nameSignal typeDescription
OTG2 AHB MasterDigitalAHB Master interface to the SoC interconnect for memory access. AHBLite protocol, 32-bit data width.
Table 728. USB2 OTG high-speed Port 2 internal signals (continued)
Signal nameSignal typeDescription
OTG2 AHB SlaveDigitalAHB Slave interface for access to OTG2 registers.
AHBLite protocol, 32-bit data width.
OTG2PHYCTL AHB SlaveDigitalAHB Slave interface for access to OTG2PHYCTL registers.
Figure 977. USB2 OTG high-speed Port 2 resets Block diagram of USB2 OTG high-speed Port 2 resets showing RCC generating signals rst_n_otg2, rst_n_otg2phycti, rst_n_otgphy2, Reset sync blocks, RISUP_OTGHS2_0, RIMU_OTGHS2_0, OTGPHY2, RISUP_OTGHS2_1, OTG2PHY CTL, OTG2 block with prst_n and hreset_n inputs, and RAMs Wrapper.
Block diagram of USB2 OTG high-speed Port 2 resets showing RCC generating signals rst_n_otg2, rst_n_otg2phycti, rst_n_otgphy2, Reset sync blocks, RISUP_OTGHS2_0, RIMU_OTGHS2_0, OTGPHY2, RISUP_OTGHS2_1, OTG2PHY CTL, OTG2 block with prst_n and hreset_n inputs, and RAMs Wrapper.

There are three resets for the USB2 OTG high-speed Port 2:

When configuring the USB2 OTG high-speed Port 2, the reset sequence is:

  1. 1. rst_n_otgphy2, rst_n_otg2 and rst_n_otg2phyctl resets are asserted.
  2. 2. clocks coming from RCC and HSE are enabled.
  3. 3. rst_n_otg2phyctl reset is released
  4. 4. the frequency of OTGPHY2 reference clock is selected in OTG2PHYCTL_CR register.
  5. 5. OTGPHY2 trimming bits are programmed (if needed)
  6. 6. rst_n_otgphy2 is released
  7. 7. wait 50 µs (OTGPHY2 PLL lock time and start of generation of phyclock0)
  8. 8. rst_n_otg2 is released

Description of the USB2 OTG HS controller (OTG2)

Refer to Section 73: USB on-the-go high-speed (OTG).

Description of the OTGPHY2

OTGPHY2 is controlled by OTG2PHYCTL registers. Refer to Section 74: USB HS PHY controller (USBPHYC).

72.3.3 USB2 OTG high-speed Port 2 interrupts

The USB2 OTG high-speed Port 2 generates one interrupt and one wake-up event, which can be used to take the system out of Stop mode.

Table 729. USB2 OTG high-speed Port 2 interrupts

OTG2 interruptIP pin nameCPU interrupt
OTG2_GBL_SYNC_ITOTG2/interruptOTG2_GBL_SYNC_IT

Table 730. USB2 OTG high-speed Port 2 wake-up events

OTG2 eventIP pin nameEXTI event
OTG2_WKUPOTG2/async_interruptOTG2_WKUP

72.3.4 Battery charging

The OTGPHY2 integrates the voltage and current sources, as well as the voltage comparators required to support Battery Charging v1.2. The relevant control bits are implemented in OTG_GCCFG register of OTG2.

The control sequence is the same as for the USB2 OTG high-speed Port 1.

72.3.5 ID management

This is similar to the ID management for OTGPHY1. The control bits are in the OTG_GCCFG register of OTG2.

72.3.6 VBUS management

OTGPHY2 is configured in 'VBUS external comparator' mode. As a consequence:

The bits VBUSVLD and SESSVLD of OTG_GCCFG register must be ignored.

72.4 USB Type-C and power delivery interface

72.4.1 USB Type-C and power delivery interface main features

The standards supported are:

72.4.2 USB Type-C and power delivery interface implementation

Figure 978 gives an overview of how OTG HS Port 1 connects to a Type-C receptacle.

Figure 978. USB Type-C implementation: OTG HS Port 1 example

Block diagram of USB Type-C implementation for OTG HS Port 1 example. The diagram shows the internal components of the STM32N6 device and the external USB Type-C receptacle. Inside the STM32N6 device, there are EXTI1, UCPD1 controller, UCPDPHY, OTGPHY1, ADC, and GPIOs. The UCPD1 controller is connected to EXTI1 and UCPDPHY. UCPDPHY is connected to OTGPHY1 and two CC pins (UCPD_CC1 and UCPD_CC2). OTGPHY1 is connected to EXTI1 and the D+/D- pins. The ADC is connected to a GPIO and a Resistor bridge. The Resistor bridge is connected to the VBUS line. The VBUS line is connected to a VBUS switch and a VBUS source (for SRC and DRP platforms). The VBUS switch is connected to the D+/D- pins. The CC pins are connected to a TCPP02/03 block, which contains Overcurrent detection, Vconn switches, Over voltage protection, and VBUS connect. The TCPP02/03 block is connected to the CC1 and CC2 pins of the USB Type-C receptacle. The VBUS connect is connected to a GPIO. The D+/D- pins are connected to the USB Type-C receptacle. The RX1+/RX1-, RX2+/RX2-, TX1+/TX1-, and TX2+/TX2- pins are also shown on the USB Type-C receptacle. The diagram is labeled MS56619V1.
Block diagram of USB Type-C implementation for OTG HS Port 1 example. The diagram shows the internal components of the STM32N6 device and the external USB Type-C receptacle. Inside the STM32N6 device, there are EXTI1, UCPD1 controller, UCPDPHY, OTGPHY1, ADC, and GPIOs. The UCPD1 controller is connected to EXTI1 and UCPDPHY. UCPDPHY is connected to OTGPHY1 and two CC pins (UCPD_CC1 and UCPD_CC2). OTGPHY1 is connected to EXTI1 and the D+/D- pins. The ADC is connected to a GPIO and a Resistor bridge. The Resistor bridge is connected to the VBUS line. The VBUS line is connected to a VBUS switch and a VBUS source (for SRC and DRP platforms). The VBUS switch is connected to the D+/D- pins. The CC pins are connected to a TCPP02/03 block, which contains Overcurrent detection, Vconn switches, Over voltage protection, and VBUS connect. The TCPP02/03 block is connected to the CC1 and CC2 pins of the USB Type-C receptacle. The VBUS connect is connected to a GPIO. The D+/D- pins are connected to the USB Type-C receptacle. The RX1+/RX1-, RX2+/RX2-, TX1+/TX1-, and TX2+/TX2- pins are also shown on the USB Type-C receptacle. The diagram is labeled MS56619V1.

The CC IOs (UCPDPHY) integrate the Rp and Rd resistors, and the voltage threshold comparators needed to define the local port attributes and detect the attributes of the remote port being attached.

The UCPD digital controller handles Type-C level detection with de-bounce, CRC generation/checking, 4b5b encode/decode, BMC encode/decode.

If needed, VBUS detection must be managed by an ADC channel or an external comparator. It cannot be managed by OTGPHY1 since it is forced in external comparator mode and not connected to VBUS.

VBUS comparison with Vsafe0v and Vsafe5v thresholds is performed by an ADC. An external resistor bridge is required to scale down VBUS to the 1V8 range of the ADC channel input.

An external component is required to protect the CC lines from overvoltage condition and VBUS line from overvoltage and overcurrent conditions. TCPP02/03 is well suited for this purpose and also implements Vconn switches, Dead battery support, the control for VBUS switch and VBUS discharge.

A VBUS source is required in source (SRC) and DRP platforms.

In a SRC or DRP platform, the device can be woken up from Stop mode by the UCPD digital controller upon asynchronous detection of events on the CC lines. In a sink (SNK) platform, the device can be woken up from Stdb mode by the detection of VBUS connection performed in TCPP02/03 and routed to a GPIO (FLG_n signal in the figure above).

Note: The Type-C interface can be associated either to OTG HS Port 1 or to OTG HS Port 2. If an application requires two Type-C ports, an external Type-C controller is required.

72.4.3 USB Type-C and power delivery interface functional description

Figure 979. USB Type-C and power delivery block diagram

Figure 979. USB Type-C and power delivery block diagram showing connections between RCC, Device interconnect, UCPD controller, UCPDPHY, EXTI1, OR gate, M55 NVIC, and HPDMA.

The diagram illustrates the functional blocks and interconnections for the USB Type-C and power delivery interface. The UCPD controller connects to RCC (signals: ck_ker_req_ucpd, ck_ker_ucpd, ck_icn_p_ucpd, ClkReq, Usbpdclk, pclk), Device interconnect via APB slave, HPDMA via UCPD_RX (rxdmaack, rxdmareq) and UCPD_TX (txdmareq, txdmaack), UCPDPHY (with UCPDPHY1 and UCPDPHY2 connected to UCPD1_CC1 and UCPD1_CC2 pins; control signals: Trimming of resistor values, Activation of resistors, Status), alternate function signals afo_cc1frstx (UCPD1_FRSTX1) and afo_cc2frstx (UCPD1_FRSTX2), EXTI1 via IrqAsyn (ucpd1_wkup), OR gate combining EXTI1 and IrqAll to M55 NVIC as ucpd_gbl_sync_it.

Figure 979. USB Type-C and power delivery block diagram showing connections between RCC, Device interconnect, UCPD controller, UCPDPHY, EXTI1, OR gate, M55 NVIC, and HPDMA.

Note: afo_cc1frstx and afo_cc2frstx connect directly to the pad ring without being OR-ed together. Be careful when using these alternate functions to control external transistors: UCPD1_FRSTX1 is associated with CC1, while UCPD1_FRSTX2 is associated with CC2.

USB Type-C and power delivery pins and internal signals

Table 731. USB Type-C and power delivery pins

Signal nameSignal typeDescription
UCPD1_CC13V3 analog, 5V tolerantChannel configuration
UCPD1_CC2
UCPD1_FRSTX11V8 digitalAlternate function of GPIO
UCPD1_FRSTX2

Table 732. USB Type-C and power delivery internal signals

Signal nameSignal typeDescription
UCPD APB SlaveDigitalAPB Slave interface for access to the UCPD controller registers. 32-bit data width.
rxdmareqDigitalRequest of UCPD_RX DMA interface
Table 732. USB Type-C and power delivery internal signals (continued)
Signal nameSignal typeDescription
rxdmaackDigitalAcknowledge of UCPD_RX DMA interface
txdmareqDigitalRequest of UCPD_TX DMA interface
txdmaackDigitalAcknowledge of UCPD_TX DMA interface
Figure 980. USB Type-C and power delivery reset Block diagram of USB Type-C and power delivery reset. The RCC block contains the UCPD1RST signal, which is connected to the rstn_ucpd1 input of the Reset sync block. The Reset sync block also receives the ck_icn_p_ucpd1 clock signal. The output of the Reset sync block is connected to the presetrn input of the UCPD1 controller block. The diagram is labeled MS56617V1.
graph LR
    subgraph RCC
        UCPD1RST[UCPD1RST]
        ck_icn_p_ucpd1[ck_icn_p_ucpd1]
    end
    subgraph UCPD1_Controller [UCPD1 controller]
        Reset_sync[Reset sync]
        presetrn[presetrn]
    end
    UCPD1RST --> rstn_ucpd1
    rstn_ucpd1 --> Reset_sync
    ck_icn_p_ucpd1 --> Reset_sync
    Reset_sync --> presetrn
  
Block diagram of USB Type-C and power delivery reset. The RCC block contains the UCPD1RST signal, which is connected to the rstn_ucpd1 input of the Reset sync block. The Reset sync block also receives the ck_icn_p_ucpd1 clock signal. The output of the Reset sync block is connected to the presetrn input of the UCPD1 controller block. The diagram is labeled MS56617V1.

There is only one reset for the USB Type-C and power delivery interface:

Description of the USB Type-C and power delivery controller (UCPD1)

Refer to Section 75: USB Type-C®/USB Power Delivery interface (UCPD).

72.4.4 USB Type-C and power delivery interrupts

The USB Type-C and power delivery interface involves one interrupt and one event generated by the UCPD controller.

Table 733. USB Type-C and power delivery interrupt
USB Type-C and PD interruptUCPD1 pin nameCPU interrupt
UCPD_GBL_SYNC_ITIrqAllUCPD_GBL_SYNC_IT
Table 734. USB Type-C and power delivery events
USB Type-C and PD eventUCPD1 pin nameEXTI event
UCPD1_WKUPIrqAsynUCPD1_WKUP

When the system is in Stop mode, it can be woken up by the UCPD1 WAKEUP event, generated when the UCPD1 controller detects some activity on one of the CC lines.

When the system is in Stdb mode, it can be woken up by an EXTI event generated by a GPIO. This is meant for Sink platforms where an external component detects VBUS presence and wakes up the device.

72.5 Debug signals

Signals of the OTG high-speed Port 1 and Port 2 are multiplexed and routed to the hardware debug port (HDP). The SELOTGDBG bit in OTG2PHYCTL_CR register controls the multiplexer. These debug signals are tapped on the UTMI+ interface between the OTG controller (OTG1, OTG2) and the USB2 PHYs (OTGPHY1, OTGPHY2). The list of debug signals is described in the Hardware Debug Port User Specifications (table 3).

Figure 981. Multiplexing of debug signals in the USB subsystem

Block diagram showing the multiplexing of debug signals in the USB subsystem. OTG1 and OTG2 controllers are connected to OTGPHY1 and OTGPHY2 respectively via UTMI+ interfaces. Debug signals [13:0] are tapped from these interfaces and fed into a multiplexer. The multiplexer is controlled by the SELOTGDBG bit in the OTG2PHYCTL register and outputs USBSS_HDP[13:0].
graph TD
    OTG1[OTG1] <-->|UTMI+| OTGPHY1[OTGPHY1]
    OTG2[OTG2] <-->|UTMI+| OTGPHY2[OTGPHY2]
    OTGPHY1 -- "Debug signals [13:0]" --> MUX{MUX}
    OTGPHY2 -- "Debug signals [13:0]" --> MUX
    MUX -- "USBSS_HDP[13:0]" --> Output[USBSS_HDP[13:0]]
    OTG2PHYCTL[OTG2PHYCTL] -- "SELOTGDBG" --> MUX
  

The diagram illustrates the multiplexing of debug signals from two OTG ports to a single hardware debug port (HDP). OTG1 and OTG2 controllers are connected to OTGPHY1 and OTGPHY2 respectively via UTMI+ interfaces. Debug signals [13:0] are tapped from these interfaces and fed into a multiplexer. The multiplexer is controlled by the SELOTGDBG bit in the OTG2PHYCTL register and outputs USBSS_HDP[13:0].

Block diagram showing the multiplexing of debug signals in the USB subsystem. OTG1 and OTG2 controllers are connected to OTGPHY1 and OTGPHY2 respectively via UTMI+ interfaces. Debug signals [13:0] are tapped from these interfaces and fed into a multiplexer. The multiplexer is controlled by the SELOTGDBG bit in the OTG2PHYCTL register and outputs USBSS_HDP[13:0].