Skip to content

Commit 5f1ced7

Browse files
mathieuchopstmjhedberg
authored andcommitted
boards: oct: osd32mp1_brk: 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 7162afe commit 5f1ced7

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

boards/oct/osd32mp1_brk/Kconfig.defconfig

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

10-
config CLOCK_STM32_HSE_CLOCK
11-
default 24000000
12-
1310
endif # BOARD_OSD32MP1_BRK

boards/oct/osd32mp1_brk/osd32mp1_brk.dts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@
5252
};
5353
};
5454

55+
&clk_hse {
56+
clock-frequency = <DT_FREQ_M(24)>;
57+
status = "okay";
58+
};
59+
5560
&spi4_miso_pe13 {
5661
slew-rate = "very-high-speed";
5762
};

0 commit comments

Comments
 (0)