Skip to content

Commit 7162afe

Browse files
mathieuchopstmjhedberg
authored andcommitted
boards: st: stm32mp157c_dk2: provide HSE clock frequency in DTS
Provide the HSE clock frequency by enabling and configuring its Device Tree node in the board's DTS instead of using Kconfig. Signed-off-by: Mathieu Choplain <[email protected]>
1 parent 00f7559 commit 7162afe

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

boards/st/stm32mp157c_dk2/Kconfig.defconfig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,4 @@ config SPI_STM32_INTERRUPT
99
default y
1010
depends on SPI
1111

12-
config CLOCK_STM32_HSE_CLOCK
13-
default 24000000
14-
1512
endif # BOARD_STM32MP157_Dk2

boards/st/stm32mp157c_dk2/stm32mp157c_dk2.dts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@
5757
clock-frequency = <DT_FREQ_M(209)>;
5858
};
5959

60+
&clk_hse {
61+
clock-frequency = <DT_FREQ_M(24)>;
62+
status = "okay";
63+
};
64+
6065
&spi4_miso_pe13 {
6166
slew-rate = "very-high-speed";
6267
};

0 commit comments

Comments
 (0)