cancel
Showing results for 
Search instead for 
Did you mean: 

Can USB3DR be used with PCI Express if USB3DR is configured as 2.0 e.g Hi-Speed?

DMårt
Lead

I know that USB3DR cannot be used with PCI Express if USB3DR is configured as SuperSpeed.

But can USB3DR be used with PCI Express if USB3DR is configured as 2.0 e.g Hi-Speed?

STM32MP151AAC3 custom board with STM32-OS as operating system: https://github.com/DanielMartensson/STM32-Computer

STM32MP257FAK3 custom board with STM64-OS as operating system: https://github.com/DanielMartensson/STM64-Computer
1 ACCEPTED SOLUTION

Accepted Solutions
AScha.3
Super User

USB3DR and PCI Express (PCIe) Mutual Exclusivity

When considering the use of USB3DR and PCI Express (PCIe) on STM32 devices, the key factor is the configuration of the USB3DR interface and its dependency on the ComboPHY:

  • USB3DR and PCIe cannot be used simultaneously if USB3DR is configured for SuperSpeed (USB 3.0). This is because both interfaces require the use of the ComboPHY, and the hardware design only allows one to be active at a time. The assignment of the ComboPHY is exclusive and must be defined during the product configuration phase.

USB3DR in USB 2.0 (Hi-Speed) Mode

  • When USB3DR is configured as USB 2.0 Hi-Speed only, it does not require the ComboPHY. Instead, it uses the USB2PHY, which is separate from the ComboPHY. In this configuration, the ComboPHY remains available and can be assigned to the PCIe controller.

  • Therefore, USB3DR (in USB 2.0 mode) and PCIe can be used simultaneously on STM32 devices, as long as USB3DR is not configured for SuperSpeed operation.

Device Tree and Peripheral Configuration

  • The device tree and peripheral configuration must reflect this exclusivity. If USB3DR is set to USB 2.0 only, the PCIe controller can be enabled and mapped to the ComboPHY. If USB3DR is set to SuperSpeed, PCIe must be disabled or not mapped to the ComboPHY.

Summary

  • Yes, USB3DR can be used with PCI Express if USB3DR is configured as 2.0 (Hi-Speed) only. The mutual exclusivity with PCIe applies only when USB3DR is configured for SuperSpeed (USB 3.0), as both would then require the ComboPHY. In USB 2.0 mode, USB3DR uses the USB2PHY, leaving the ComboPHY available for PCIe.
If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

3 REPLIES 3
AScha.3
Super User

USB3DR and PCI Express (PCIe) Mutual Exclusivity

When considering the use of USB3DR and PCI Express (PCIe) on STM32 devices, the key factor is the configuration of the USB3DR interface and its dependency on the ComboPHY:

  • USB3DR and PCIe cannot be used simultaneously if USB3DR is configured for SuperSpeed (USB 3.0). This is because both interfaces require the use of the ComboPHY, and the hardware design only allows one to be active at a time. The assignment of the ComboPHY is exclusive and must be defined during the product configuration phase.

USB3DR in USB 2.0 (Hi-Speed) Mode

  • When USB3DR is configured as USB 2.0 Hi-Speed only, it does not require the ComboPHY. Instead, it uses the USB2PHY, which is separate from the ComboPHY. In this configuration, the ComboPHY remains available and can be assigned to the PCIe controller.

  • Therefore, USB3DR (in USB 2.0 mode) and PCIe can be used simultaneously on STM32 devices, as long as USB3DR is not configured for SuperSpeed operation.

Device Tree and Peripheral Configuration

  • The device tree and peripheral configuration must reflect this exclusivity. If USB3DR is set to USB 2.0 only, the PCIe controller can be enabled and mapped to the ComboPHY. If USB3DR is set to SuperSpeed, PCIe must be disabled or not mapped to the ComboPHY.

Summary

  • Yes, USB3DR can be used with PCI Express if USB3DR is configured as 2.0 (Hi-Speed) only. The mutual exclusivity with PCIe applies only when USB3DR is configured for SuperSpeed (USB 3.0), as both would then require the ComboPHY. In USB 2.0 mode, USB3DR uses the USB2PHY, leaving the ComboPHY available for PCIe.
If you feel a post has answered your question, please click "Accept as Solution".
PatrickF
ST Employee

HI @DMårt 

that's the case on STM32MP257F-EV1 board.

You will have docs, schematics and DTS ready and working.

Regards.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
NEW ! Sidekick STM32 AI agent, see here

@PatrickF 

Yes, but they are using from a USB Hub 2.0.

I'm talking about USB3DR pins when they are configured as 2.0 (whithout a hub).

I have already implemented USB3DR onto my PCI Express Mini slot. Looking forward to test it!

STM32MP151AAC3 custom board with STM32-OS as operating system: https://github.com/DanielMartensson/STM32-Computer

STM32MP257FAK3 custom board with STM64-OS as operating system: https://github.com/DanielMartensson/STM64-Computer