diff --git a/boards/arm/nucleo_h743zi/nucleo_h743zi.dts b/boards/arm/nucleo_h743zi/nucleo_h743zi.dts index 44fd7d11799..0b03c2e34ee 100644 --- a/boards/arm/nucleo_h743zi/nucleo_h743zi.dts +++ b/boards/arm/nucleo_h743zi/nucleo_h743zi.dts @@ -58,6 +58,33 @@ }; }; +&clk_hse { + hse-bypass; + clock-frequency = ; /* STLink 8MHz clock */ + status = "okay"; +}; + +&pll { + div-m = <1>; + mul-n = <24>; + div-p = <2>; + div-q = <4>; + div-r = <2>; + clocks = <&clk_hse>; + status = "okay"; +}; + +&rcc { + clocks = <&pll>; + clock-frequency = ; + d1cpre = <1>; + hpre = <1>; + d1ppre = <1>; + d2ppre1 = <1>; + d2ppre2 = <1>; + d3ppre = <1>; +}; + &usart3 { pinctrl-0 = <&usart3_tx_pd8 &usart3_rx_pd9>; current-speed = <115200>; diff --git a/boards/arm/nucleo_h743zi/nucleo_h743zi_defconfig b/boards/arm/nucleo_h743zi/nucleo_h743zi_defconfig index f8fbb544692..fb77550d728 100644 --- a/boards/arm/nucleo_h743zi/nucleo_h743zi_defconfig +++ b/boards/arm/nucleo_h743zi/nucleo_h743zi_defconfig @@ -2,8 +2,6 @@ CONFIG_SOC_SERIES_STM32H7X=y CONFIG_SOC_STM32H743XX=y -# 96MHz system clock (CubeMX Defaults) -CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=96000000 # Enable MPU CONFIG_ARM_MPU=y @@ -24,21 +22,5 @@ CONFIG_PINMUX=y # Enable GPIO CONFIG_GPIO=y -# Clock Configuration +# Enable clocks CONFIG_CLOCK_CONTROL=y - -# STLINK provides 8MHz clock input -CONFIG_CLOCK_STM32_HSE_CLOCK=8000000 -CONFIG_CLOCK_STM32_SYSCLK_SRC_PLL=y -# Use HSE as PLL input -CONFIG_CLOCK_STM32_PLL_SRC_HSE=y -# Nucleo-144 boards do not have an external oscillator, so just use -# the 8MHz clock signal coming from integrated STLink -CONFIG_CLOCK_STM32_HSE_BYPASS=y - -# Produce 96MHz clock at PLL output -CONFIG_CLOCK_STM32_PLL_M_DIVISOR=1 -CONFIG_CLOCK_STM32_PLL_N_MULTIPLIER=24 -CONFIG_CLOCK_STM32_PLL_P_DIVISOR=2 -CONFIG_CLOCK_STM32_PLL_Q_DIVISOR=4 -CONFIG_CLOCK_STM32_PLL_R_DIVISOR=2