diff --git a/boards/arm/nucleo_l053r8/nucleo_l053r8.dts b/boards/arm/nucleo_l053r8/nucleo_l053r8.dts index 464b1abe9e9..414b305848b 100644 --- a/boards/arm/nucleo_l053r8/nucleo_l053r8.dts +++ b/boards/arm/nucleo_l053r8/nucleo_l053r8.dts @@ -43,6 +43,28 @@ }; }; +&clk_hse{ + status = "okay"; + clock-frequency = ; + hse-bypass; +}; + +&pll { + clocks = <&clk_hse>; + mul = <8>; + div = <2>; + status = "okay"; +}; + +&rcc { + clocks = <&pll>; + clock-frequency = ; + ahb-prescaler = <1>; + apb1-prescaler = <1>; + apb2-prescaler = <1>; +}; + + /* Due to limited available memory, don't enable gpiod and gpiof */ /* (Test cases fail due to 'SRAM' region overflow) */ &gpiod {status = "disabled";}; diff --git a/boards/arm/nucleo_l053r8/nucleo_l053r8_defconfig b/boards/arm/nucleo_l053r8/nucleo_l053r8_defconfig index 0f7af17aeb9..4d062b0466b 100644 --- a/boards/arm/nucleo_l053r8/nucleo_l053r8_defconfig +++ b/boards/arm/nucleo_l053r8/nucleo_l053r8_defconfig @@ -6,9 +6,6 @@ CONFIG_SOC_SERIES_STM32L0X=y # Platform Configuration CONFIG_SOC_STM32L053XX=y -# General Kernel Options -CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=32000000 - # Enable MPU CONFIG_ARM_MPU=y @@ -33,20 +30,5 @@ CONFIG_PINMUX=y # GPIO Controller CONFIG_GPIO=y -# Clock configuration +# Clock controller CONFIG_CLOCK_CONTROL=y -# SYSCLK selection -CONFIG_CLOCK_STM32_SYSCLK_SRC_PLL=y -# HSE configuration -CONFIG_CLOCK_STM32_HSE_CLOCK=8000000 -# however, the board does not have an external oscillator, so just use -# the 8MHz clock signal coming from integrated STLink -CONFIG_CLOCK_STM32_HSE_BYPASS=y -# PLL configuration -CONFIG_CLOCK_STM32_PLL_SRC_HSE=y -# produce 32MHz clock at PLL output -CONFIG_CLOCK_STM32_PLL_MULTIPLIER=8 -CONFIG_CLOCK_STM32_PLL_DIVISOR=2 -CONFIG_CLOCK_STM32_AHB_PRESCALER=1 -CONFIG_CLOCK_STM32_APB1_PRESCALER=1 -CONFIG_CLOCK_STM32_APB2_PRESCALER=1