boards: nucleo_h743zi: Use dts for clocks configuration
Convert board to use of device tree for clocks configuration. Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
parent
39a58dd6e6
commit
3e6666d53d
|
@ -58,6 +58,33 @@
|
|||
};
|
||||
};
|
||||
|
||||
&clk_hse {
|
||||
hse-bypass;
|
||||
clock-frequency = <DT_FREQ_M(8)>; /* 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 = <DT_FREQ_M(96)>;
|
||||
d1cpre = <1>;
|
||||
hpre = <1>;
|
||||
d1ppre = <1>;
|
||||
d2ppre1 = <1>;
|
||||
d2ppre2 = <1>;
|
||||
d3ppre = <1>;
|
||||
};
|
||||
|
||||
&usart3 {
|
||||
pinctrl-0 = <&usart3_tx_pd8 &usart3_rx_pd9>;
|
||||
current-speed = <115200>;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue