cancel
Showing results for 
Search instead for 
Did you mean: 

STM32MP131F pin assignments for USB type-C CC1 and CC2

N2M
Associate

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

1 ACCEPTED SOLUTION

Accepted Solutions
PatrickF
ST Employee

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

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.

View solution in original post

2 REPLIES 2
PatrickF
ST Employee

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

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.
N2M
Associate

Hi @PatrickF,

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

best regards