Skip to main content
Explorer
May 7, 2025
Solved

STM32MP131F pin assignments for USB type-C CC1 and CC2

  • May 7, 2025
  • 2 replies
  • 461 views

Hi,

I'm looking for information on the MP131F pin assignments for USB type-C signals CC1 and CC2. I'm working on a custom board that uses a USB type-C for power only as is done on the MP157D-DK1 board. 

thanks and best regards

    This topic has been closed for replies.
    Best answer by PatrickF

    Hi @N2M 

    in most cases, when only need to supply, you don't need to connect CC lines to STM32MP.

    Just 5.1k pull downs on CC1 and CC2 to ensure the power supply will detect the board and enable VBUS (as per USB Type-C standard requirement).

    On STM32MP157D-DK1, we connected CC lines to ADC to being able to check if supply is showing as 5V/3A in the way it is done as per Type-C standard (if I remember, we could distinguish between 0.5, 0.9, 1.5 and 3A)

    If you are consuming less than 5V/500mA or you don't matter to have issue if supplies is too weak, no need that.

    Otherwise, you could connect to any ADC inputs as on STM32MP157D-DK1 (with 47k to get some current limitation when STM32MP is OFF) and define those in Device Tree (e.g. https://github.com/STMicroelectronics/u-boot/blob/v2023.10-stm32mp/arch/arm/dts/stm32mp157a-dk1-u-boot.dtsi#L18 ).

     

    Regards

    2 replies

    PatrickFAnswer
    Technical Moderator
    May 7, 2025

    Hi @N2M 

    in most cases, when only need to supply, you don't need to connect CC lines to STM32MP.

    Just 5.1k pull downs on CC1 and CC2 to ensure the power supply will detect the board and enable VBUS (as per USB Type-C standard requirement).

    On STM32MP157D-DK1, we connected CC lines to ADC to being able to check if supply is showing as 5V/3A in the way it is done as per Type-C standard (if I remember, we could distinguish between 0.5, 0.9, 1.5 and 3A)

    If you are consuming less than 5V/500mA or you don't matter to have issue if supplies is too weak, no need that.

    Otherwise, you could connect to any ADC inputs as on STM32MP157D-DK1 (with 47k to get some current limitation when STM32MP is OFF) and define those in Device Tree (e.g. https://github.com/STMicroelectronics/u-boot/blob/v2023.10-stm32mp/arch/arm/dts/stm32mp157a-dk1-u-boot.dtsi#L18 ).

     

    Regards

    N2MAuthor
    Explorer
    May 7, 2025

    Hi @PatrickF,

    Thanks for the quick answer and the reference to the Linux u-boot details!

    best regards