Skip to content

Commit 7c61c6d

Browse files
committed
boards: st: stm32h7s78_dk: Add PLL2 configuration and SDMMC1 node
Configure SDMMC1 with 4-bit bus width and card detection. Use PLL2S as kernel peripheral clock (150MHz) divided by 15 to achieve 10MHz SDMMC clock with clk-div = <13>. Signed-off-by: Shan Pen <[email protected]>
1 parent ad68c37 commit 7c61c6d

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

boards/st/stm32h7s78_dk/stm32h7s78_dk.dts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,18 @@
107107
status = "okay";
108108
};
109109

110+
&pll2 {
111+
div-m = <2>;
112+
mul-n = <50>;
113+
div-p = <2>;
114+
div-q = <2>;
115+
div-r = <2>;
116+
div-s = <4>;
117+
div-t = <2>;
118+
clocks = <&clk_hse>;
119+
status = "okay";
120+
};
121+
110122
&rcc {
111123
clocks = <&pll>;
112124
clock-frequency = <DT_FREQ_M(250)>;
@@ -303,3 +315,15 @@ usb2: &usbotg_fs {
303315
};
304316

305317
zephyr_udc0: &usb2 {};
318+
319+
&sdmmc1 {
320+
pinctrl-0 = <&sdmmc1_d0_pc8 &sdmmc1_d1_pc9
321+
&sdmmc1_d2_pc10 &sdmmc1_d3_pc11
322+
&sdmmc1_ck_pc12 &sdmmc1_cmd_pd2>;
323+
pinctrl-names = "default";
324+
clk-div = <13>;
325+
bus-width = <4>;
326+
cd-gpios = <&gpiom 14 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
327+
disk-name = "SD";
328+
status = "okay";
329+
};

0 commit comments

Comments
 (0)