From a8ae1dcdcc455490c4addb123e165ed17a92af5a Mon Sep 17 00:00:00 2001 From: Guillaume Gautier Date: Fri, 17 May 2024 15:14:17 +0200 Subject: [PATCH] soc: st: stm32: n6: set vddio voltage Set VddIO 2 and 3 voltage to 1.8V Signed-off-by: Guillaume Gautier --- soc/st/stm32/stm32n6x/soc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/soc/st/stm32/stm32n6x/soc.c b/soc/st/stm32/stm32n6x/soc.c index c967404862c..fa06138ce67 100644 --- a/soc/st/stm32/stm32n6x/soc.c +++ b/soc/st/stm32/stm32n6x/soc.c @@ -59,4 +59,8 @@ void soc_early_init_hook(void) LL_PWR_EnableVddIO3(); LL_PWR_EnableVddIO4(); LL_PWR_EnableVddIO5(); + + /* Set Vdd IO2 and IO3 to 1.8V */ + LL_PWR_SetVddIO2VoltageRange(LL_PWR_VDDIO_VOLTAGE_RANGE_1V8); + LL_PWR_SetVddIO3VoltageRange(LL_PWR_VDDIO_VOLTAGE_RANGE_1V8); }