Skip to content

Commit 9e30ab5

Browse files
FRASTMnashif
authored andcommitted
soc: arm: stm32l5 with USB-C PD cannot use CC1 and CC2 pins by default
With this patch, the UCPD1 _CC1 and _CC2 pins are disabling the USB Type-C and Power Delivery Dead Battery. Signed-off-by: Francois Ramu <[email protected]>
1 parent 931c9dc commit 9e30ab5

File tree

1 file changed

+3
-0
lines changed
  • soc/arm/st_stm32/stm32l5

1 file changed

+3
-0
lines changed

soc/arm/st_stm32/stm32l5/soc.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ static int stm32l5_init(const struct device *arg)
4747
LL_APB1_GRP1_EnableClock(LL_APB1_GRP1_PERIPH_PWR);
4848
LL_PWR_SetRegulVoltageScaling(LL_PWR_REGU_VOLTAGE_SCALE0);
4949

50+
/* Disable USB Type-C dead battery pull-down behavior */
51+
LL_PWR_DisableUCPDDeadBattery();
52+
5053
return 0;
5154
}
5255

0 commit comments

Comments
 (0)