File tree Expand file tree Collapse file tree 4 files changed +67
-0
lines changed Expand file tree Collapse file tree 4 files changed +67
-0
lines changed Original file line number Diff line number Diff line change
1
+ # ART-Pi2 board configuration
2
+ #
3
+ # Copyright (c) 2025 Shan Pen <
[email protected] >
4
+ #
5
+ # SPDX-License-Identifier: Apache-2.0
6
+
7
+ if DISK_DRIVER_SDMMC
8
+
9
+ config SDMMC_STM32_CLOCK_CHECK
10
+ default n
11
+
12
+ endif # DISK_DRIVER_SDMMC
Original file line number Diff line number Diff line change 80
80
status = "okay";
81
81
};
82
82
83
+ &pll2 {
84
+ div-m = <2>;
85
+ mul-n = <50>;
86
+ div-p = <2>;
87
+ div-q = <2>;
88
+ div-r = <2>;
89
+ div-s = <4>;
90
+ div-t = <2>;
91
+ clocks = <&clk_hse>;
92
+ status = "okay";
93
+ };
94
+
83
95
&rcc {
84
96
clocks = <&pll>;
85
97
clock-frequency = <DT_FREQ_M(250)>;
98
110
status = "okay";
99
111
};
100
112
113
+ &sdmmc1 {
114
+ pinctrl-0 = <&sdmmc1_d0_pc8 &sdmmc1_d1_pc9
115
+ &sdmmc1_d2_pc10 &sdmmc1_d3_pc11
116
+ &sdmmc1_ck_pc12 &sdmmc1_cmd_pd2>;
117
+ pinctrl-names = "default";
118
+ clk-div = <13>;
119
+ bus-width = <4>;
120
+ cd-gpios = <&gpion 7 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
121
+ disk-name = "SD";
122
+ status = "okay";
123
+ };
124
+
101
125
&rng {
102
126
status = "okay";
103
127
};
Original file line number Diff line number Diff line change @@ -31,4 +31,11 @@ config STM32_LTDC_FB_USE_SHARED_MULTI_HEAP
31
31
default y
32
32
endif # DISPLAY
33
33
34
+ if DISK_DRIVER_SDMMC
35
+
36
+ config SDMMC_STM32_CLOCK_CHECK
37
+ default n
38
+
39
+ endif # DISK_DRIVER_SDMMC
40
+
34
41
endif # BOARD_STM32H7S78_DK
Original file line number Diff line number Diff line change 109
109
status = "okay";
110
110
};
111
111
112
+ &pll2 {
113
+ div-m = <2>;
114
+ mul-n = <50>;
115
+ div-p = <2>;
116
+ div-q = <2>;
117
+ div-r = <2>;
118
+ div-s = <4>;
119
+ div-t = <2>;
120
+ clocks = <&clk_hse>;
121
+ status = "okay";
122
+ };
123
+
112
124
&pll3 {
113
125
div-m = <12>;
114
126
mul-n = <25>;
@@ -351,3 +363,15 @@ zephyr_udc0: &usb2 {};
351
363
def-back-color-green = <0xFF>;
352
364
def-back-color-blue = <0xFF>;
353
365
};
366
+
367
+ &sdmmc1 {
368
+ pinctrl-0 = <&sdmmc1_d0_pc8 &sdmmc1_d1_pc9
369
+ &sdmmc1_d2_pc10 &sdmmc1_d3_pc11
370
+ &sdmmc1_ck_pc12 &sdmmc1_cmd_pd2>;
371
+ pinctrl-names = "default";
372
+ clk-div = <13>;
373
+ bus-width = <4>;
374
+ cd-gpios = <&gpiom 14 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
375
+ disk-name = "SD";
376
+ status = "okay";
377
+ };
You can’t perform that action at this time.
0 commit comments