Skip to main content
Associate
Nov 10, 2026 8:35 AM UTC
Solved

STM32MP257 PCIe clock

Hello,
I would support PCIe on STM32MP253/257 devices. 

Do you have a specific application note?

I need details about clock requirements.
I read the STM can support both internal and external clock.

When using internal, I suppose I shall use the clock on CLKOUT pins to feed PCIe device REFCLK.
What is the physical specification of CLKOUT? Is is LVDS or HCSL? Is a buffer needed?

When using external, an oscillator (at 100 MHz?) shall be connected to PCI_CLKIN. 
What is the physical specification of CLKIN? Is is LVDS or HCSL?
In this case, the clock to the PCIe device shall be sourced from CLKOUT or from the oscillator separately?
I mean, the STM act also as a buffer between CLKIN and CLKOUT?

Could you clarify what is the best solution: internal or external?

Thanks

Andrea

 

 

ZAKARIA_C1Best answer
ST Employee
Nov 10, 2026 2:15 PM UTC

Hello ​@andpas-qas,

Do you have a specific application note?
Refer to AN5489 (Getting started with STM32MP23/25xx MPUs hardware development), specifically Section 8.14 (PCI Express).
Additional specifications are available in the RM0457 Reference Manual (COMBOPHY and PCIe chapters), the STM32MP253/257 Datasheets (DS14284 / DS14285), and the STM32MP257F-EV1 evaluation board schematics (MB1936, Sheet 11 USB_PCIe).

I need details about clock requirements. I read the STM can support both internal and external clock. When using internal, I suppose I shall use the clock on CLKOUT pins to feed PCIe device REFCLK.
Yes, the STM32MP25 supports both internal and external 100 MHz PCIe reference clock modes:

  • In Internal Clock Mode, the 100 MHz reference clock is generated internally by the STM32MP25 (REFGEN) and output on the dedicated PCIE_CLKOUTP / PCIE_CLKOUTN differential pins to directly feed the PCIe endpoint's REFCLK+ / REFCLK- inputs (with 2 x 100 nF AC-coupling capacitors as shown in AN5489). In this mode, the unused PCIE_CLKINP / PCIE_CLKINN input pins must be tied to VSS.
  • In External Clock Mode, an external multi-output 100 MHz PCIe clock generator feeds both the STM32MP25's dedicated PCIE_CLKINP / PCIE_CLKINN differential input pins (using 49.9 Ω termination resistors to GND and 2 x 100 nF AC-coupling capacitors as shown in AN5489) and the PCIe endpoint's REFCLK+ / REFCLK- inputs separately from individual clock outputs, while PCIE_CLKOUTP / PCIE_CLKOUTN is left open.

What is the physical specification of CLKOUT? Is it LVDS or HCSL? Is a buffer needed?

  • Physical / Electrical Specification: PCIE_CLKOUTP / PCIE_CLKOUTN complies with the standard PCIe 100 MHz HCSL (High-Speed Current Steering Logic) differential specification.

  • Is a buffer needed?

    • Single standard PCIe device (HCSL input): No buffer is needed.
      PCIE_CLKOUTP/N can be connected directly to the PCIe device's REFCLK input following standard 90 Ω differential routing guidelines.

    • Device requiring LVDS (such as an FPGA) or multiple loads:
      Yes, a differential buffer or level translator is required. Because HCSL is electrically incompatible with LVDS, a direct connection is not possible without level adaptation.

When using external, an oscillator (at 100 MHz?) shall be connected to PCI_CLKIN. What is the physical specification of CLKIN? Is it LVDS or HCSL?

  • Frequency & Electrical Specification: Yes, a 100 MHz HCSL differential clock compliant with PCIe Gen1/Gen2 jitter requirements must be connected to PCIE_CLKINP / PCIE_CLKINN (using 49.9 Ω termination resistors to GND and 2 x 100 nF AC-coupling capacitors as shown in AN5489).

  • Software Configuration Note (AN5489): When PCIE_CLKINP/N is used as the PCIe clock source, the PCIE_CLKREQN pin must be driven low by software (configured as open-drain with output low) in order to complete internal PCIe initialization.

In this case, the clock to the PCIe device shall be sourced from CLKOUT or from the oscillator separately? I mean, does the STM act also as a buffer between CLKIN and CLKOUT?

  • No, the STM32MP25 does not act as a buffer between PCIE_CLKINP/N and PCIE_CLKOUTP/N.

  • In External Clock Mode, the reference clock must be sourced separately to both devices from an external dual-output (or multi-output) 100 MHz PCIe clock generator (as shown in AN5489 Section 8.14):

    • Output 1 feeds the STM32MP25 (PCIE_CLKINP / PCIE_CLKINN).

    • Output 2 feeds the PCIe endpoint (REFCLK+ / REFCLK-).

    • PCIE_CLKOUTP / PCIE_CLKOUTN is left open in this mode. (Note: In the AN5489 diagram and on the STM32MP257F-EV1 reference board, both paths are drawn with "or" / 0 Ω resistor assembly options so that either Internal or External mode can be selected on the same PCB).

Could you clarify what is the best solution: internal or external?

  • Internal Clock (PCIE_CLKOUTP/N): Best for optimizing BOM cost and PCB area in point-to-point designs with a single standard PCIe endpoint that natively accepts an HCSL reference clock (such as a standard Wi-Fi or NVMe module).

  • External Multi-Output Clock Generator (PCIE_CLKINP/N): The most robust and flexible solution in terms of jitter margin and signal integrity.
    It is the recommended choice when clocking multiple PCIe devices or when interfacing with an endpoint that requires a different electrical standard (such as an FPGA requiring LVDS), at the expense of additional BOM cost.

Here is a schematic example for internal clock mode.
 


For external clock mode, please check the STM32MP25-EV1 evaluation board schematics on st.com as a reference.

Best Regards,
Zakaria

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.

1 reply

ZAKARIA_C1Best answer
ST Employee
Nov 10, 2026 2:15 PM UTC

Hello ​@andpas-qas,

Do you have a specific application note?
Refer to AN5489 (Getting started with STM32MP23/25xx MPUs hardware development), specifically Section 8.14 (PCI Express).
Additional specifications are available in the RM0457 Reference Manual (COMBOPHY and PCIe chapters), the STM32MP253/257 Datasheets (DS14284 / DS14285), and the STM32MP257F-EV1 evaluation board schematics (MB1936, Sheet 11 USB_PCIe).

I need details about clock requirements. I read the STM can support both internal and external clock. When using internal, I suppose I shall use the clock on CLKOUT pins to feed PCIe device REFCLK.
Yes, the STM32MP25 supports both internal and external 100 MHz PCIe reference clock modes:

  • In Internal Clock Mode, the 100 MHz reference clock is generated internally by the STM32MP25 (REFGEN) and output on the dedicated PCIE_CLKOUTP / PCIE_CLKOUTN differential pins to directly feed the PCIe endpoint's REFCLK+ / REFCLK- inputs (with 2 x 100 nF AC-coupling capacitors as shown in AN5489). In this mode, the unused PCIE_CLKINP / PCIE_CLKINN input pins must be tied to VSS.
  • In External Clock Mode, an external multi-output 100 MHz PCIe clock generator feeds both the STM32MP25's dedicated PCIE_CLKINP / PCIE_CLKINN differential input pins (using 49.9 Ω termination resistors to GND and 2 x 100 nF AC-coupling capacitors as shown in AN5489) and the PCIe endpoint's REFCLK+ / REFCLK- inputs separately from individual clock outputs, while PCIE_CLKOUTP / PCIE_CLKOUTN is left open.

What is the physical specification of CLKOUT? Is it LVDS or HCSL? Is a buffer needed?

  • Physical / Electrical Specification: PCIE_CLKOUTP / PCIE_CLKOUTN complies with the standard PCIe 100 MHz HCSL (High-Speed Current Steering Logic) differential specification.

  • Is a buffer needed?

    • Single standard PCIe device (HCSL input): No buffer is needed.
      PCIE_CLKOUTP/N can be connected directly to the PCIe device's REFCLK input following standard 90 Ω differential routing guidelines.

    • Device requiring LVDS (such as an FPGA) or multiple loads:
      Yes, a differential buffer or level translator is required. Because HCSL is electrically incompatible with LVDS, a direct connection is not possible without level adaptation.

When using external, an oscillator (at 100 MHz?) shall be connected to PCI_CLKIN. What is the physical specification of CLKIN? Is it LVDS or HCSL?

  • Frequency & Electrical Specification: Yes, a 100 MHz HCSL differential clock compliant with PCIe Gen1/Gen2 jitter requirements must be connected to PCIE_CLKINP / PCIE_CLKINN (using 49.9 Ω termination resistors to GND and 2 x 100 nF AC-coupling capacitors as shown in AN5489).

  • Software Configuration Note (AN5489): When PCIE_CLKINP/N is used as the PCIe clock source, the PCIE_CLKREQN pin must be driven low by software (configured as open-drain with output low) in order to complete internal PCIe initialization.

In this case, the clock to the PCIe device shall be sourced from CLKOUT or from the oscillator separately? I mean, does the STM act also as a buffer between CLKIN and CLKOUT?

  • No, the STM32MP25 does not act as a buffer between PCIE_CLKINP/N and PCIE_CLKOUTP/N.

  • In External Clock Mode, the reference clock must be sourced separately to both devices from an external dual-output (or multi-output) 100 MHz PCIe clock generator (as shown in AN5489 Section 8.14):

    • Output 1 feeds the STM32MP25 (PCIE_CLKINP / PCIE_CLKINN).

    • Output 2 feeds the PCIe endpoint (REFCLK+ / REFCLK-).

    • PCIE_CLKOUTP / PCIE_CLKOUTN is left open in this mode. (Note: In the AN5489 diagram and on the STM32MP257F-EV1 reference board, both paths are drawn with "or" / 0 Ω resistor assembly options so that either Internal or External mode can be selected on the same PCB).

Could you clarify what is the best solution: internal or external?

  • Internal Clock (PCIE_CLKOUTP/N): Best for optimizing BOM cost and PCB area in point-to-point designs with a single standard PCIe endpoint that natively accepts an HCSL reference clock (such as a standard Wi-Fi or NVMe module).

  • External Multi-Output Clock Generator (PCIE_CLKINP/N): The most robust and flexible solution in terms of jitter margin and signal integrity.
    It is the recommended choice when clocking multiple PCIe devices or when interfacing with an endpoint that requires a different electrical standard (such as an FPGA requiring LVDS), at the expense of additional BOM cost.

Here is a schematic example for internal clock mode.
 


For external clock mode, please check the STM32MP25-EV1 evaluation board schematics on st.com as a reference.

Best Regards,
Zakaria

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.