Skip to content

Commit 7044876

Browse files
FRASTMkartben
authored andcommitted
dts: arm: stm32f412 device has a clock 48MHz multiplexer
Add a clk48Mhz node to the stm32f412 serie. This clock is sourced by PLL_Q (default) or PLLI2S_Q That 48MHz clock is used by the USB /SDMMC/RNG peripherals. The sdmmc/SDIO clock is sourced by this CK48 (default) or by the SYSCLOCK. Signed-off-by: Francois Ramu <[email protected]>
1 parent fcc5f9d commit 7044876

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

dts/arm/st/f4/stm32f412.dtsi

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@
1616
compatible = "st,stm32f411-plli2s-clock";
1717
status = "disabled";
1818
};
19+
20+
clk48: clk48 {
21+
#clock-cells = <0>;
22+
compatible = "st,stm32-clock-mux";
23+
clocks = <&rcc STM32_SRC_PLL_Q CK48M_SEL(0)>;
24+
status = "disabled";
25+
};
1926
};
2027

2128
soc {
@@ -202,7 +209,7 @@
202209

203210
sdmmc1: sdmmc@40012c00 {
204211
clocks = <&rcc STM32_CLOCK(APB2, 11U)>,
205-
<&rcc STM32_SRC_SYSCLK SDIO_SEL(1)>;
212+
<&rcc STM32_SRC_CK48 SDIO_SEL(0)>;
206213
};
207214

208215
quadspi: quadspi@a0001000 {

0 commit comments

Comments
 (0)