blob: 0ec7ecb783ef7fa09bd797d182a9ee75d74fdce7 [file] [log] [blame]
Yann Gautier66386952018-07-05 16:49:51 +02001// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
2/*
3 * Copyright (C) STMicroelectronics 2017 - All Rights Reserved
4 * Author: Ludovic Barre <ludovic.barre@st.com> for STMicroelectronics.
5 */
Yann Gautier7b7e4bf2019-01-17 19:16:03 +01006#include <dt-bindings/interrupt-controller/arm-gic.h>
Yann Gautier66386952018-07-05 16:49:51 +02007#include <dt-bindings/clock/stm32mp1-clks.h>
8#include <dt-bindings/reset/stm32mp1-resets.h>
9
10/ {
11 #address-cells = <1>;
12 #size-cells = <1>;
13
Yann Gautier7b7e4bf2019-01-17 19:16:03 +010014 intc: interrupt-controller@a0021000 {
15 compatible = "arm,cortex-a7-gic";
16 #interrupt-cells = <3>;
17 interrupt-controller;
18 reg = <0xa0021000 0x1000>,
19 <0xa0022000 0x2000>;
Yann Gautier66386952018-07-05 16:49:51 +020020 };
21
22 clocks {
23 clk_hse: clk-hse {
24 #clock-cells = <0>;
25 compatible = "fixed-clock";
26 clock-frequency = <24000000>;
27 };
28
29 clk_hsi: clk-hsi {
30 #clock-cells = <0>;
31 compatible = "fixed-clock";
32 clock-frequency = <64000000>;
33 };
34
35 clk_lse: clk-lse {
36 #clock-cells = <0>;
37 compatible = "fixed-clock";
38 clock-frequency = <32768>;
39 };
40
41 clk_lsi: clk-lsi {
42 #clock-cells = <0>;
43 compatible = "fixed-clock";
44 clock-frequency = <32000>;
45 };
46
47 clk_csi: clk-csi {
48 #clock-cells = <0>;
49 compatible = "fixed-clock";
50 clock-frequency = <4000000>;
51 };
52
53 clk_i2s_ckin: i2s_ckin {
54 #clock-cells = <0>;
55 compatible = "fixed-clock";
Yann Gautier7b7e4bf2019-01-17 19:16:03 +010056 clock-frequency = <0>;
Yann Gautier66386952018-07-05 16:49:51 +020057 };
58
59 clk_dsi_phy: ck_dsi_phy {
60 #clock-cells = <0>;
61 compatible = "fixed-clock";
62 clock-frequency = <0>;
63 };
Yann Gautier66386952018-07-05 16:49:51 +020064 };
65
66 soc {
67 compatible = "simple-bus";
68 #address-cells = <1>;
69 #size-cells = <1>;
Yann Gautier7b7e4bf2019-01-17 19:16:03 +010070 interrupt-parent = <&intc>;
Yann Gautier66386952018-07-05 16:49:51 +020071 ranges;
72
73 usart2: serial@4000e000 {
Yann Gautier7b7e4bf2019-01-17 19:16:03 +010074 compatible = "st,stm32h7-uart";
Yann Gautier66386952018-07-05 16:49:51 +020075 reg = <0x4000e000 0x400>;
76 clocks = <&rcc USART2_K>;
Yann Gautier7b7e4bf2019-01-17 19:16:03 +010077 resets = <&rcc USART2_R>;
Yann Gautier66386952018-07-05 16:49:51 +020078 status = "disabled";
79 };
80
81 usart3: serial@4000f000 {
Yann Gautier7b7e4bf2019-01-17 19:16:03 +010082 compatible = "st,stm32h7-uart";
Yann Gautier66386952018-07-05 16:49:51 +020083 reg = <0x4000f000 0x400>;
84 clocks = <&rcc USART3_K>;
Yann Gautier7b7e4bf2019-01-17 19:16:03 +010085 resets = <&rcc USART3_R>;
Yann Gautier66386952018-07-05 16:49:51 +020086 status = "disabled";
87 };
88
89 uart4: serial@40010000 {
90 compatible = "st,stm32h7-uart";
91 reg = <0x40010000 0x400>;
92 clocks = <&rcc UART4_K>;
Yann Gautier7b7e4bf2019-01-17 19:16:03 +010093 resets = <&rcc UART4_R>;
Yann Gautier66386952018-07-05 16:49:51 +020094 status = "disabled";
95 };
96
97 uart5: serial@40011000 {
98 compatible = "st,stm32h7-uart";
99 reg = <0x40011000 0x400>;
100 clocks = <&rcc UART5_K>;
Yann Gautier7b7e4bf2019-01-17 19:16:03 +0100101 resets = <&rcc UART5_R>;
Yann Gautier66386952018-07-05 16:49:51 +0200102 status = "disabled";
103 };
104
105
106 uart7: serial@40018000 {
107 compatible = "st,stm32h7-uart";
108 reg = <0x40018000 0x400>;
109 clocks = <&rcc UART7_K>;
Yann Gautier7b7e4bf2019-01-17 19:16:03 +0100110 resets = <&rcc UART7_R>;
Yann Gautier66386952018-07-05 16:49:51 +0200111 status = "disabled";
112 };
113
114 uart8: serial@40019000 {
115 compatible = "st,stm32h7-uart";
116 reg = <0x40019000 0x400>;
117 clocks = <&rcc UART8_K>;
Yann Gautier7b7e4bf2019-01-17 19:16:03 +0100118 resets = <&rcc UART8_R>;
Yann Gautier66386952018-07-05 16:49:51 +0200119 status = "disabled";
120 };
121
122 usart6: serial@44003000 {
Yann Gautier7b7e4bf2019-01-17 19:16:03 +0100123 compatible = "st,stm32h7-uart";
Yann Gautier66386952018-07-05 16:49:51 +0200124 reg = <0x44003000 0x400>;
125 clocks = <&rcc USART6_K>;
Yann Gautier7b7e4bf2019-01-17 19:16:03 +0100126 resets = <&rcc USART6_R>;
Yann Gautier66386952018-07-05 16:49:51 +0200127 status = "disabled";
128 };
129
130 sdmmc3: sdmmc@48004000 {
131 compatible = "st,stm32-sdmmc2";
132 reg = <0x48004000 0x400>, <0x48005000 0x400>;
Yann Gautier66386952018-07-05 16:49:51 +0200133 clocks = <&rcc SDMMC3_K>;
Yann Gautier7b7e4bf2019-01-17 19:16:03 +0100134 clock-names = "apb_pclk";
Yann Gautier66386952018-07-05 16:49:51 +0200135 resets = <&rcc SDMMC3_R>;
136 cap-sd-highspeed;
137 cap-mmc-highspeed;
138 max-frequency = <120000000>;
139 status = "disabled";
140 };
141
142 rcc: rcc@50000000 {
Yann Gautier7b7e4bf2019-01-17 19:16:03 +0100143 compatible = "st,stm32mp1-rcc", "syscon";
144 reg = <0x50000000 0x1000>;
Yann Gautier66386952018-07-05 16:49:51 +0200145 #clock-cells = <1>;
146 #reset-cells = <1>;
Yann Gautier7b7e4bf2019-01-17 19:16:03 +0100147 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
Yann Gautier66386952018-07-05 16:49:51 +0200148 };
149
Yann Gautier7b7e4bf2019-01-17 19:16:03 +0100150 pwr: pwr@50001000 {
151 compatible = "st,stm32mp1-pwr", "syscon", "simple-mfd";
152 reg = <0x50001000 0x400>;
Yann Gautier66386952018-07-05 16:49:51 +0200153 };
154
Yann Gautier7b7e4bf2019-01-17 19:16:03 +0100155 exti: interrupt-controller@5000d000 {
156 compatible = "st,stm32mp1-exti", "syscon";
157 interrupt-controller;
158 #interrupt-cells = <2>;
159 reg = <0x5000d000 0x400>;
160
161 /* exti_pwr is an extra interrupt controller used for
162 * EXTI 55 to 60. It's mapped on pwr interrupt
163 * controller.
164 */
165 exti_pwr: exti-pwr {
166 interrupt-controller;
167 #interrupt-cells = <2>;
168 interrupt-parent = <&pwr>;
169 st,irq-number = <6>;
170 };
171 };
172
Yann Gautier66386952018-07-05 16:49:51 +0200173 rng1: rng@54003000 {
174 compatible = "st,stm32-rng";
175 reg = <0x54003000 0x400>;
176 clocks = <&rcc RNG1_K>;
177 resets = <&rcc RNG1_R>;
178 status = "disabled";
179 };
180
Yann Gautier7b7e4bf2019-01-17 19:16:03 +0100181 fmc: nand-controller@58002000 {
182 compatible = "st,stm32mp15-fmc2";
Yann Gautier66386952018-07-05 16:49:51 +0200183 reg = <0x58002000 0x1000>,
Yann Gautier7b7e4bf2019-01-17 19:16:03 +0100184 <0x80000000 0x1000>,
185 <0x88010000 0x1000>,
186 <0x88020000 0x1000>,
187 <0x81000000 0x1000>,
188 <0x89010000 0x1000>,
189 <0x89020000 0x1000>;
Yann Gautier66386952018-07-05 16:49:51 +0200190 clocks = <&rcc FMC_K>;
191 resets = <&rcc FMC_R>;
192 status = "disabled";
193 };
194
195 qspi: qspi@58003000 {
196 compatible = "st,stm32f469-qspi";
197 reg = <0x58003000 0x1000>, <0x70000000 0x10000000>;
Yann Gautier7b7e4bf2019-01-17 19:16:03 +0100198 reg-names = "qspi", "qspi_mm";
Yann Gautier66386952018-07-05 16:49:51 +0200199 clocks = <&rcc QSPI_K>;
Yann Gautier7b7e4bf2019-01-17 19:16:03 +0100200 resets = <&rcc QSPI_R>;
Yann Gautier66386952018-07-05 16:49:51 +0200201 status = "disabled";
202 };
203
204 sdmmc1: sdmmc@58005000 {
205 compatible = "st,stm32-sdmmc2";
206 reg = <0x58005000 0x1000>, <0x58006000 0x1000>;
Yann Gautier66386952018-07-05 16:49:51 +0200207 clocks = <&rcc SDMMC1_K>;
Yann Gautier7b7e4bf2019-01-17 19:16:03 +0100208 clock-names = "apb_pclk";
Yann Gautier66386952018-07-05 16:49:51 +0200209 resets = <&rcc SDMMC1_R>;
210 cap-sd-highspeed;
211 cap-mmc-highspeed;
212 max-frequency = <120000000>;
213 status = "disabled";
214 };
215
216 sdmmc2: sdmmc@58007000 {
217 compatible = "st,stm32-sdmmc2";
218 reg = <0x58007000 0x1000>, <0x58008000 0x1000>;
Yann Gautier66386952018-07-05 16:49:51 +0200219 clocks = <&rcc SDMMC2_K>;
Yann Gautier7b7e4bf2019-01-17 19:16:03 +0100220 clock-names = "apb_pclk";
Yann Gautier66386952018-07-05 16:49:51 +0200221 resets = <&rcc SDMMC2_R>;
222 cap-sd-highspeed;
223 cap-mmc-highspeed;
224 max-frequency = <120000000>;
225 status = "disabled";
226 };
227
Yann Gautier7b7e4bf2019-01-17 19:16:03 +0100228 iwdg2: watchdog@5a002000 {
Yann Gautier66386952018-07-05 16:49:51 +0200229 compatible = "st,stm32mp1-iwdg";
230 reg = <0x5a002000 0x400>;
231 clocks = <&rcc IWDG2>, <&rcc CK_LSI>;
232 clock-names = "pclk", "lsi";
233 status = "disabled";
234 };
235
236 usart1: serial@5c000000 {
Yann Gautier7b7e4bf2019-01-17 19:16:03 +0100237 compatible = "st,stm32h7-uart";
Yann Gautier66386952018-07-05 16:49:51 +0200238 reg = <0x5c000000 0x400>;
Yann Gautier7b7e4bf2019-01-17 19:16:03 +0100239 interrupt-names = "event", "wakeup";
240 interrupts-extended = <&intc GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>,
241 <&exti 26 1>;
Yann Gautier66386952018-07-05 16:49:51 +0200242 clocks = <&rcc USART1_K>;
Yann Gautier7b7e4bf2019-01-17 19:16:03 +0100243 resets = <&rcc USART1_R>;
Yann Gautier66386952018-07-05 16:49:51 +0200244 status = "disabled";
245 };
246
Yann Gautier7b7e4bf2019-01-17 19:16:03 +0100247 spi6: spi@5c001000 {
248 #address-cells = <1>;
249 #size-cells = <0>;
250 compatible = "st,stm32h7-spi";
251 reg = <0x5c001000 0x400>;
252 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
253 clocks = <&rcc SPI6_K>;
254 resets = <&rcc SPI6_R>;
255 status = "disabled";
256 };
257
Yann Gautier66386952018-07-05 16:49:51 +0200258 i2c4: i2c@5c002000 {
259 compatible = "st,stm32f7-i2c";
260 reg = <0x5c002000 0x400>;
Yann Gautier7b7e4bf2019-01-17 19:16:03 +0100261 interrupt-names = "event", "error", "wakeup";
262 interrupts-extended = <&intc GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>,
263 <&intc GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>,
264 <&exti 24 1>;
Yann Gautier66386952018-07-05 16:49:51 +0200265 clocks = <&rcc I2C4_K>;
266 resets = <&rcc I2C4_R>;
267 #address-cells = <1>;
268 #size-cells = <0>;
269 status = "disabled";
270 };
271
272 rtc: rtc@5c004000 {
273 compatible = "st,stm32mp1-rtc";
274 reg = <0x5c004000 0x400>;
275 clocks = <&rcc RTCAPB>, <&rcc RTC>;
276 clock-names = "pclk", "rtc_ck";
Yann Gautier7b7e4bf2019-01-17 19:16:03 +0100277 interrupts-extended = <&intc GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>,
278 <&exti 19 1>;
279 status = "disabled";
280 };
281
282 bsec: nvmem@5c005000 {
283 compatible = "st,stm32mp15-bsec";
284 reg = <0x5c005000 0x400>;
285 #address-cells = <1>;
286 #size-cells = <1>;
287 ts_cal1: calib@5c {
288 reg = <0x5c 0x2>;
289 };
290 ts_cal2: calib@5e {
291 reg = <0x5e 0x2>;
292 };
293 };
294
295 i2c6: i2c@5c009000 {
296 compatible = "st,stm32f7-i2c";
297 reg = <0x5c009000 0x400>;
298 interrupt-names = "event", "error", "wakeup";
299 interrupts-extended = <&intc GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH>,
300 <&intc GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>,
301 <&exti 54 1>;
302 clocks = <&rcc I2C6_K>;
303 resets = <&rcc I2C6_R>;
304 #address-cells = <1>;
305 #size-cells = <0>;
306 status = "disabled";
Yann Gautier66386952018-07-05 16:49:51 +0200307 };
308 };
309};