1 // SPDX-License-Identifier: GPL-2.0+
3 #include <dt-bindings/memory/stm32-sdram.h>
32 compatible = "st,stm32h7-fmc";
33 reg = <0x52004000 0x1000>;
34 clocks = <&rcc FMC_CK>;
36 pinctrl-0 = <&fmc_pins>;
37 pinctrl-names = "default";
41 * Memory configuration from sdram datasheet IS42S32800G-6BLI
42 * firsct bank is bank@0
43 * second bank is bank@1
46 st,sdram-control = /bits/ 8 <NO_COL_9 NO_ROW_12 MWIDTH_32 BANKS_4
47 CAS_2 SDCLK_3 RD_BURST_EN RD_PIPE_DL_0>;
48 st,sdram-timing = /bits/ 8 <TMRD_1 TXSR_1 TRAS_1 TRC_6 TRP_2
50 st,sdram-refcount = <1539>;
54 sdmmc1: sdmmc@52007000 {
55 compatible = "st,stm32-sdmmc2";
56 reg = <0x52007000 0x1000>;
58 clocks = <&rcc SDMMC1_CK>;
59 resets = <&rcc STM32H7_AHB3_RESET(SDMMC1)>;
139 pinmux = <STM32H7_PD0_FUNC_FMC_D2_FMC_DA2>,
140 <STM32H7_PD1_FUNC_FMC_D3_FMC_DA3>,
141 <STM32H7_PD8_FUNC_FMC_D13_FMC_DA13>,
142 <STM32H7_PD9_FUNC_FMC_D14_FMC_DA14>,
143 <STM32H7_PD10_FUNC_FMC_D15_FMC_DA15>,
144 <STM32H7_PD14_FUNC_FMC_D0_FMC_DA0>,
145 <STM32H7_PD15_FUNC_FMC_D1_FMC_DA1>,
147 <STM32H7_PE0_FUNC_FMC_NBL0>,
148 <STM32H7_PE1_FUNC_FMC_NBL1>,
149 <STM32H7_PE7_FUNC_FMC_D4_FMC_DA4>,
150 <STM32H7_PE8_FUNC_FMC_D5_FMC_DA5>,
151 <STM32H7_PE9_FUNC_FMC_D6_FMC_DA6>,
152 <STM32H7_PE10_FUNC_FMC_D7_FMC_DA7>,
153 <STM32H7_PE11_FUNC_FMC_D8_FMC_DA8>,
154 <STM32H7_PE12_FUNC_FMC_D9_FMC_DA9>,
155 <STM32H7_PE13_FUNC_FMC_D10_FMC_DA10>,
156 <STM32H7_PE14_FUNC_FMC_D11_FMC_DA11>,
157 <STM32H7_PE15_FUNC_FMC_D12_FMC_DA12>,
159 <STM32H7_PF0_FUNC_FMC_A0>,
160 <STM32H7_PF1_FUNC_FMC_A1>,
161 <STM32H7_PF2_FUNC_FMC_A2>,
162 <STM32H7_PF3_FUNC_FMC_A3>,
163 <STM32H7_PF4_FUNC_FMC_A4>,
164 <STM32H7_PF5_FUNC_FMC_A5>,
165 <STM32H7_PF11_FUNC_FMC_SDNRAS>,
166 <STM32H7_PF12_FUNC_FMC_A6>,
167 <STM32H7_PF13_FUNC_FMC_A7>,
168 <STM32H7_PF14_FUNC_FMC_A8>,
169 <STM32H7_PF15_FUNC_FMC_A9>,
171 <STM32H7_PG0_FUNC_FMC_A10>,
172 <STM32H7_PG1_FUNC_FMC_A11>,
173 <STM32H7_PG2_FUNC_FMC_A12>,
174 <STM32H7_PG4_FUNC_FMC_A14_FMC_BA0>,
175 <STM32H7_PG5_FUNC_FMC_A15_FMC_BA1>,
176 <STM32H7_PG8_FUNC_FMC_SDCLK>,
177 <STM32H7_PG15_FUNC_FMC_SDNCAS>,
179 <STM32H7_PH5_FUNC_FMC_SDNWE>,
180 <STM32H7_PH6_FUNC_FMC_SDNE1>,
181 <STM32H7_PH7_FUNC_FMC_SDCKE1>,
182 <STM32H7_PH8_FUNC_FMC_D16>,
183 <STM32H7_PH9_FUNC_FMC_D17>,
184 <STM32H7_PH10_FUNC_FMC_D18>,
185 <STM32H7_PH11_FUNC_FMC_D19>,
186 <STM32H7_PH12_FUNC_FMC_D20>,
187 <STM32H7_PH13_FUNC_FMC_D21>,
188 <STM32H7_PH14_FUNC_FMC_D22>,
189 <STM32H7_PH15_FUNC_FMC_D23>,
191 <STM32H7_PI0_FUNC_FMC_D24>,
192 <STM32H7_PI1_FUNC_FMC_D25>,
193 <STM32H7_PI2_FUNC_FMC_D26>,
194 <STM32H7_PI3_FUNC_FMC_D27>,
195 <STM32H7_PI4_FUNC_FMC_NBL2>,
196 <STM32H7_PI5_FUNC_FMC_NBL3>,
197 <STM32H7_PI6_FUNC_FMC_D28>,
198 <STM32H7_PI7_FUNC_FMC_D29>,
199 <STM32H7_PI9_FUNC_FMC_D30>,
200 <STM32H7_PI10_FUNC_FMC_D31>;
206 pinctrl_sdmmc1_level_shifter: sdmmc0_ls@0 {
208 pinmux = <STM32H7_PB8_FUNC_SDMMC1_CKIN>,
209 <STM32H7_PB9_FUNC_SDMMC1_CDIR>,
210 <STM32H7_PC6_FUNC_SDMMC1_D0DIR>,
211 <STM32H7_PC7_FUNC_SDMMC1_D123DIR>;
217 sdmmc1_pins: sdmmc@0 {
219 pinmux = <STM32H7_PC8_FUNC_SDMMC1_D0>,
220 <STM32H7_PC9_FUNC_SDMMC1_D1>,
221 <STM32H7_PC10_FUNC_SDMMC1_D2>,
222 <STM32H7_PC11_FUNC_SDMMC1_D3>,
223 <STM32H7_PC12_FUNC_SDMMC1_CK>,
224 <STM32H7_PD2_FUNC_SDMMC1_CMD>;