]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - arch/arm/boot/dts/stm32f746.dtsi
Merge branches 'pm-domains', 'pm-sleep' and 'pm-cpufreq'
[karo-tx-linux.git] / arch / arm / boot / dts / stm32f746.dtsi
1 /*
2  * Copyright 2015 - Maxime Coquelin <mcoquelin.stm32@gmail.com>
3  *
4  * This file is dual-licensed: you can use it either under the terms
5  * of the GPL or the X11 license, at your option. Note that this dual
6  * licensing only applies to this file, and not this project as a
7  * whole.
8  *
9  *  a) This file is free software; you can redistribute it and/or
10  *     modify it under the terms of the GNU General Public License as
11  *     published by the Free Software Foundation; either version 2 of the
12  *     License, or (at your option) any later version.
13  *
14  *     This file is distributed in the hope that it will be useful,
15  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
16  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  *     GNU General Public License for more details.
18  *
19  * Or, alternatively,
20  *
21  *  b) Permission is hereby granted, free of charge, to any person
22  *     obtaining a copy of this software and associated documentation
23  *     files (the "Software"), to deal in the Software without
24  *     restriction, including without limitation the rights to use,
25  *     copy, modify, merge, publish, distribute, sublicense, and/or
26  *     sell copies of the Software, and to permit persons to whom the
27  *     Software is furnished to do so, subject to the following
28  *     conditions:
29  *
30  *     The above copyright notice and this permission notice shall be
31  *     included in all copies or substantial portions of the Software.
32  *
33  *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34  *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35  *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36  *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37  *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38  *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39  *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40  *     OTHER DEALINGS IN THE SOFTWARE.
41  */
42
43 #include "skeleton.dtsi"
44 #include "armv7-m.dtsi"
45 #include <dt-bindings/pinctrl/stm32f746-pinfunc.h>
46 #include <dt-bindings/clock/stm32fx-clock.h>
47 #include <dt-bindings/mfd/stm32f7-rcc.h>
48
49 / {
50         clocks {
51                 clk_hse: clk-hse {
52                         #clock-cells = <0>;
53                         compatible = "fixed-clock";
54                         clock-frequency = <0>;
55                 };
56
57                 clk-lse {
58                         #clock-cells = <0>;
59                         compatible = "fixed-clock";
60                         clock-frequency = <32768>;
61                 };
62
63                 clk-lsi {
64                         #clock-cells = <0>;
65                         compatible = "fixed-clock";
66                         clock-frequency = <32000>;
67                 };
68
69                 clk_i2s_ckin: clk-i2s-ckin {
70                         #clock-cells = <0>;
71                         compatible = "fixed-clock";
72                         clock-frequency = <48000000>;
73                 };
74         };
75
76         soc {
77                 timer2: timer@40000000 {
78                         compatible = "st,stm32-timer";
79                         reg = <0x40000000 0x400>;
80                         interrupts = <28>;
81                         clocks = <&rcc 0 STM32F7_APB1_CLOCK(TIM2)>;
82                         status = "disabled";
83                 };
84
85                 timer3: timer@40000400 {
86                         compatible = "st,stm32-timer";
87                         reg = <0x40000400 0x400>;
88                         interrupts = <29>;
89                         clocks = <&rcc 0 STM32F7_APB1_CLOCK(TIM3)>;
90                         status = "disabled";
91                 };
92
93                 timer4: timer@40000800 {
94                         compatible = "st,stm32-timer";
95                         reg = <0x40000800 0x400>;
96                         interrupts = <30>;
97                         clocks = <&rcc 0 STM32F7_APB1_CLOCK(TIM4)>;
98                         status = "disabled";
99                 };
100
101                 timer5: timer@40000c00 {
102                         compatible = "st,stm32-timer";
103                         reg = <0x40000c00 0x400>;
104                         interrupts = <50>;
105                         clocks = <&rcc 0 STM32F7_APB1_CLOCK(TIM5)>;
106                 };
107
108                 timer6: timer@40001000 {
109                         compatible = "st,stm32-timer";
110                         reg = <0x40001000 0x400>;
111                         interrupts = <54>;
112                         clocks = <&rcc 0 STM32F7_APB1_CLOCK(TIM6)>;
113                         status = "disabled";
114                 };
115
116                 timer7: timer@40001400 {
117                         compatible = "st,stm32-timer";
118                         reg = <0x40001400 0x400>;
119                         interrupts = <55>;
120                         clocks = <&rcc 0 STM32F7_APB1_CLOCK(TIM7)>;
121                         status = "disabled";
122                 };
123
124                 rtc: rtc@40002800 {
125                         compatible = "st,stm32-rtc";
126                         reg = <0x40002800 0x400>;
127                         clocks = <&rcc 1 CLK_RTC>;
128                         clock-names = "ck_rtc";
129                         assigned-clocks = <&rcc 1 CLK_RTC>;
130                         assigned-clock-parents = <&rcc 1 CLK_LSE>;
131                         interrupt-parent = <&exti>;
132                         interrupts = <17 1>;
133                         interrupt-names = "alarm";
134                         st,syscfg = <&pwrcfg>;
135                         status = "disabled";
136                 };
137
138                 usart2: serial@40004400 {
139                         compatible = "st,stm32f7-usart", "st,stm32f7-uart";
140                         reg = <0x40004400 0x400>;
141                         interrupts = <38>;
142                         clocks = <&rcc 1 CLK_USART2>;
143                         status = "disabled";
144                 };
145
146                 usart3: serial@40004800 {
147                         compatible = "st,stm32f7-usart", "st,stm32f7-uart";
148                         reg = <0x40004800 0x400>;
149                         interrupts = <39>;
150                         clocks = <&rcc 1 CLK_USART3>;
151                         status = "disabled";
152                 };
153
154                 usart4: serial@40004c00 {
155                         compatible = "st,stm32f7-uart";
156                         reg = <0x40004c00 0x400>;
157                         interrupts = <52>;
158                         clocks = <&rcc 1 CLK_UART4>;
159                         status = "disabled";
160                 };
161
162                 usart5: serial@40005000 {
163                         compatible = "st,stm32f7-uart";
164                         reg = <0x40005000 0x400>;
165                         interrupts = <53>;
166                         clocks = <&rcc 1 CLK_UART5>;
167                         status = "disabled";
168                 };
169
170                 usart7: serial@40007800 {
171                         compatible = "st,stm32f7-usart", "st,stm32f7-uart";
172                         reg = <0x40007800 0x400>;
173                         interrupts = <82>;
174                         clocks = <&rcc 1 CLK_UART7>;
175                         status = "disabled";
176                 };
177
178                 usart8: serial@40007c00 {
179                         compatible = "st,stm32f7-usart", "st,stm32f7-uart";
180                         reg = <0x40007c00 0x400>;
181                         interrupts = <83>;
182                         clocks = <&rcc 1 CLK_UART8>;
183                         status = "disabled";
184                 };
185
186                 usart1: serial@40011000 {
187                         compatible = "st,stm32f7-usart", "st,stm32f7-uart";
188                         reg = <0x40011000 0x400>;
189                         interrupts = <37>;
190                         clocks = <&rcc 1 CLK_USART1>;
191                         status = "disabled";
192                 };
193
194                 usart6: serial@40011400 {
195                         compatible = "st,stm32f7-usart", "st,stm32f7-uart";
196                         reg = <0x40011400 0x400>;
197                         interrupts = <71>;
198                         clocks = <&rcc 1 CLK_USART6>;
199                         status = "disabled";
200                 };
201
202                 syscfg: system-config@40013800 {
203                         compatible = "syscon";
204                         reg = <0x40013800 0x400>;
205                 };
206
207                 exti: interrupt-controller@40013c00 {
208                         compatible = "st,stm32-exti";
209                         interrupt-controller;
210                         #interrupt-cells = <2>;
211                         reg = <0x40013C00 0x400>;
212                         interrupts = <1>, <2>, <3>, <6>, <7>, <8>, <9>, <10>, <23>, <40>, <41>, <42>, <62>, <76>;
213                 };
214
215                 pwrcfg: power-config@40007000 {
216                         compatible = "syscon";
217                         reg = <0x40007000 0x400>;
218                 };
219
220                 pin-controller {
221                         #address-cells = <1>;
222                         #size-cells = <1>;
223                         compatible = "st,stm32f746-pinctrl";
224                         ranges = <0 0x40020000 0x3000>;
225                         interrupt-parent = <&exti>;
226                         st,syscfg = <&syscfg 0x8>;
227                         pins-are-numbered;
228
229                         gpioa: gpio@40020000 {
230                                 gpio-controller;
231                                 #gpio-cells = <2>;
232                                 reg = <0x0 0x400>;
233                                 clocks = <&rcc 0 STM32F7_AHB1_CLOCK(GPIOA)>;
234                                 st,bank-name = "GPIOA";
235                         };
236
237                         gpiob: gpio@40020400 {
238                                 gpio-controller;
239                                 #gpio-cells = <2>;
240                                 reg = <0x400 0x400>;
241                                 clocks = <&rcc 0 STM32F7_AHB1_CLOCK(GPIOB)>;
242                                 st,bank-name = "GPIOB";
243                         };
244
245                         gpioc: gpio@40020800 {
246                                 gpio-controller;
247                                 #gpio-cells = <2>;
248                                 reg = <0x800 0x400>;
249                                 clocks = <&rcc 0 STM32F7_AHB1_CLOCK(GPIOC)>;
250                                 st,bank-name = "GPIOC";
251                         };
252
253                         gpiod: gpio@40020c00 {
254                                 gpio-controller;
255                                 #gpio-cells = <2>;
256                                 reg = <0xc00 0x400>;
257                                 clocks = <&rcc 0 STM32F7_AHB1_CLOCK(GPIOD)>;
258                                 st,bank-name = "GPIOD";
259                         };
260
261                         gpioe: gpio@40021000 {
262                                 gpio-controller;
263                                 #gpio-cells = <2>;
264                                 reg = <0x1000 0x400>;
265                                 clocks = <&rcc 0 STM32F7_AHB1_CLOCK(GPIOE)>;
266                                 st,bank-name = "GPIOE";
267                         };
268
269                         gpiof: gpio@40021400 {
270                                 gpio-controller;
271                                 #gpio-cells = <2>;
272                                 reg = <0x1400 0x400>;
273                                 clocks = <&rcc 0 STM32F7_AHB1_CLOCK(GPIOF)>;
274                                 st,bank-name = "GPIOF";
275                         };
276
277                         gpiog: gpio@40021800 {
278                                 gpio-controller;
279                                 #gpio-cells = <2>;
280                                 reg = <0x1800 0x400>;
281                                 clocks = <&rcc 0 STM32F7_AHB1_CLOCK(GPIOG)>;
282                                 st,bank-name = "GPIOG";
283                         };
284
285                         gpioh: gpio@40021c00 {
286                                 gpio-controller;
287                                 #gpio-cells = <2>;
288                                 reg = <0x1c00 0x400>;
289                                 clocks = <&rcc 0 STM32F7_AHB1_CLOCK(GPIOH)>;
290                                 st,bank-name = "GPIOH";
291                         };
292
293                         gpioi: gpio@40022000 {
294                                 gpio-controller;
295                                 #gpio-cells = <2>;
296                                 reg = <0x2000 0x400>;
297                                 clocks = <&rcc 0 STM32F7_AHB1_CLOCK(GPIOI)>;
298                                 st,bank-name = "GPIOI";
299                         };
300
301                         gpioj: gpio@40022400 {
302                                 gpio-controller;
303                                 #gpio-cells = <2>;
304                                 reg = <0x2400 0x400>;
305                                 clocks = <&rcc 0 STM32F7_AHB1_CLOCK(GPIOJ)>;
306                                 st,bank-name = "GPIOJ";
307                         };
308
309                         gpiok: gpio@40022800 {
310                                 gpio-controller;
311                                 #gpio-cells = <2>;
312                                 reg = <0x2800 0x400>;
313                                 clocks = <&rcc 0 STM32F7_AHB1_CLOCK(GPIOK)>;
314                                 st,bank-name = "GPIOK";
315                         };
316
317                         usart1_pins_a: usart1@0 {
318                                 pins1 {
319                                         pinmux = <STM32F746_PA9_FUNC_USART1_TX>;
320                                         bias-disable;
321                                         drive-push-pull;
322                                         slew-rate = <0>;
323                                 };
324                                 pins2 {
325                                         pinmux = <STM32F746_PA10_FUNC_USART1_RX>;
326                                         bias-disable;
327                                 };
328                         };
329                 };
330
331                 crc: crc@40023000 {
332                         compatible = "st,stm32f7-crc";
333                         reg = <0x40023000 0x400>;
334                         clocks = <&rcc 0 12>;
335                         status = "disabled";
336                 };
337
338                 rcc: rcc@40023800 {
339                         #clock-cells = <2>;
340                         compatible = "st,stm32f746-rcc", "st,stm32-rcc";
341                         reg = <0x40023800 0x400>;
342                         clocks = <&clk_hse>, <&clk_i2s_ckin>;
343                         st,syscfg = <&pwrcfg>;
344                         assigned-clocks = <&rcc 1 CLK_HSE_RTC>;
345                         assigned-clock-rates = <1000000>;
346                 };
347         };
348 };
349
350 &systick {
351         clocks = <&rcc 1 0>;
352         status = "okay";
353 };