Linux 5.6.13
[linux/fpc-iii.git] / arch / arm / boot / dts / imx50.dtsi
blob0bfe7c91d0eb291a395f355ba461048c13c9fd6e
1 // SPDX-License-Identifier: GPL-2.0+
2 //
3 // Copyright 2013 Greg Ungerer <gerg@uclinux.org>
4 // Copyright 2011 Freescale Semiconductor, Inc.
5 // Copyright 2011 Linaro Ltd.
7 #include "imx50-pinfunc.h"
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/clock/imx5-clock.h>
11 / {
12         #address-cells = <1>;
13         #size-cells = <1>;
14         /*
15          * The decompressor and also some bootloaders rely on a
16          * pre-existing /chosen node to be available to insert the
17          * command line and merge other ATAGS info.
18          */
19         chosen {};
21         aliases {
22                 ethernet0 = &fec;
23                 gpio0 = &gpio1;
24                 gpio1 = &gpio2;
25                 gpio2 = &gpio3;
26                 gpio3 = &gpio4;
27                 gpio4 = &gpio5;
28                 gpio5 = &gpio6;
29                 i2c0 = &i2c1;
30                 i2c1 = &i2c2;
31                 i2c2 = &i2c3;
32                 mmc0 = &esdhc1;
33                 mmc1 = &esdhc2;
34                 mmc2 = &esdhc3;
35                 mmc3 = &esdhc4;
36                 serial0 = &uart1;
37                 serial1 = &uart2;
38                 serial2 = &uart3;
39                 serial3 = &uart4;
40                 serial4 = &uart5;
41                 spi0 = &ecspi1;
42                 spi1 = &ecspi2;
43                 spi2 = &cspi;
44         };
46         cpus {
47                 #address-cells = <1>;
48                 #size-cells = <0>;
49                 cpu@0 {
50                         device_type = "cpu";
51                         compatible = "arm,cortex-a8";
52                         reg = <0x0>;
53                 };
54         };
56         tzic: tz-interrupt-controller@fffc000 {
57                 compatible = "fsl,imx50-tzic", "fsl,imx53-tzic", "fsl,tzic";
58                 interrupt-controller;
59                 #interrupt-cells = <1>;
60                 reg = <0x0fffc000 0x4000>;
61         };
63         clocks {
64                 ckil {
65                         compatible = "fsl,imx-ckil", "fixed-clock";
66                         #clock-cells = <0>;
67                         clock-frequency = <32768>;
68                 };
70                 ckih1 {
71                         compatible = "fsl,imx-ckih1", "fixed-clock";
72                         #clock-cells = <0>;
73                         clock-frequency = <22579200>;
74                 };
76                 ckih2 {
77                         compatible = "fsl,imx-ckih2", "fixed-clock";
78                         #clock-cells = <0>;
79                         clock-frequency = <0>;
80                 };
82                 osc {
83                         compatible = "fsl,imx-osc", "fixed-clock";
84                         #clock-cells = <0>;
85                         clock-frequency = <24000000>;
86                 };
87         };
89         usbphy0: usbphy-0 {
90                 compatible = "usb-nop-xceiv";
91                 clocks = <&clks IMX5_CLK_USB_PHY1_GATE>;
92                 clock-names = "main_clk";
93                 #phy-cells = <0>;
94                 status = "okay";
95         };
97         soc {
98                 #address-cells = <1>;
99                 #size-cells = <1>;
100                 compatible = "simple-bus";
101                 interrupt-parent = <&tzic>;
102                 ranges;
104                 aips@50000000 { /* AIPS1 */
105                         compatible = "fsl,aips-bus", "simple-bus";
106                         #address-cells = <1>;
107                         #size-cells = <1>;
108                         reg = <0x50000000 0x10000000>;
109                         ranges;
111                         spba@50000000 {
112                                 compatible = "fsl,spba-bus", "simple-bus";
113                                 #address-cells = <1>;
114                                 #size-cells = <1>;
115                                 reg = <0x50000000 0x40000>;
116                                 ranges;
118                                 esdhc1: esdhc@50004000 {
119                                         compatible = "fsl,imx50-esdhc", "fsl,imx53-esdhc";
120                                         reg = <0x50004000 0x4000>;
121                                         interrupts = <1>;
122                                         clocks = <&clks IMX5_CLK_ESDHC1_IPG_GATE>,
123                                                  <&clks IMX5_CLK_DUMMY>,
124                                                  <&clks IMX5_CLK_ESDHC1_PER_GATE>;
125                                         clock-names = "ipg", "ahb", "per";
126                                         bus-width = <4>;
127                                         status = "disabled";
128                                 };
130                                 esdhc2: esdhc@50008000 {
131                                         compatible = "fsl,imx50-esdhc", "fsl,imx53-esdhc";
132                                         reg = <0x50008000 0x4000>;
133                                         interrupts = <2>;
134                                         clocks = <&clks IMX5_CLK_ESDHC2_IPG_GATE>,
135                                                  <&clks IMX5_CLK_DUMMY>,
136                                                  <&clks IMX5_CLK_ESDHC2_PER_GATE>;
137                                         clock-names = "ipg", "ahb", "per";
138                                         bus-width = <4>;
139                                         status = "disabled";
140                                 };
142                                 uart3: serial@5000c000 {
143                                         compatible = "fsl,imx50-uart", "fsl,imx21-uart";
144                                         reg = <0x5000c000 0x4000>;
145                                         interrupts = <33>;
146                                         clocks = <&clks IMX5_CLK_UART3_IPG_GATE>,
147                                                  <&clks IMX5_CLK_UART3_PER_GATE>;
148                                         clock-names = "ipg", "per";
149                                         status = "disabled";
150                                 };
152                                 ecspi1: spi@50010000 {
153                                         #address-cells = <1>;
154                                         #size-cells = <0>;
155                                         compatible = "fsl,imx50-ecspi", "fsl,imx51-ecspi";
156                                         reg = <0x50010000 0x4000>;
157                                         interrupts = <36>;
158                                         clocks = <&clks IMX5_CLK_ECSPI1_IPG_GATE>,
159                                                  <&clks IMX5_CLK_ECSPI1_PER_GATE>;
160                                         clock-names = "ipg", "per";
161                                         status = "disabled";
162                                 };
164                                 ssi2: ssi@50014000 {
165                                         #sound-dai-cells = <0>;
166                                         compatible = "fsl,imx50-ssi",
167                                                         "fsl,imx51-ssi",
168                                                         "fsl,imx21-ssi";
169                                         reg = <0x50014000 0x4000>;
170                                         interrupts = <30>;
171                                         clocks = <&clks IMX5_CLK_SSI2_IPG_GATE>;
172                                         dmas = <&sdma 24 1 0>,
173                                                <&sdma 25 1 0>;
174                                         dma-names = "rx", "tx";
175                                         fsl,fifo-depth = <15>;
176                                         status = "disabled";
177                                 };
179                                 esdhc3: esdhc@50020000 {
180                                         compatible = "fsl,imx50-esdhc", "fsl,imx53-esdhc";
181                                         reg = <0x50020000 0x4000>;
182                                         interrupts = <3>;
183                                         clocks = <&clks IMX5_CLK_ESDHC3_IPG_GATE>,
184                                                  <&clks IMX5_CLK_DUMMY>,
185                                                  <&clks IMX5_CLK_ESDHC3_PER_GATE>;
186                                         clock-names = "ipg", "ahb", "per";
187                                         bus-width = <4>;
188                                         status = "disabled";
189                                 };
191                                 esdhc4: esdhc@50024000 {
192                                         compatible = "fsl,imx50-esdhc", "fsl,imx53-esdhc";
193                                         reg = <0x50024000 0x4000>;
194                                         interrupts = <4>;
195                                         clocks = <&clks IMX5_CLK_ESDHC4_IPG_GATE>,
196                                                  <&clks IMX5_CLK_DUMMY>,
197                                                  <&clks IMX5_CLK_ESDHC4_PER_GATE>;
198                                         clock-names = "ipg", "ahb", "per";
199                                         bus-width = <4>;
200                                         status = "disabled";
201                                 };
202                         };
204                         usbotg: usb@53f80000 {
205                                 compatible = "fsl,imx50-usb", "fsl,imx27-usb";
206                                 reg = <0x53f80000 0x0200>;
207                                 interrupts = <18>;
208                                 clocks = <&clks IMX5_CLK_USBOH3_GATE>;
209                                 fsl,usbphy = <&usbphy0>;
210                                 status = "disabled";
211                         };
213                         usbh1: usb@53f80200 {
214                                 compatible = "fsl,imx50-usb", "fsl,imx27-usb";
215                                 reg = <0x53f80200 0x0200>;
216                                 interrupts = <14>;
217                                 clocks = <&clks IMX5_CLK_USB_PHY2_GATE>;
218                                 dr_mode = "host";
219                                 status = "disabled";
220                         };
222                         gpio1: gpio@53f84000 {
223                                 compatible = "fsl,imx50-gpio", "fsl,imx35-gpio";
224                                 reg = <0x53f84000 0x4000>;
225                                 interrupts = <50 51>;
226                                 gpio-controller;
227                                 #gpio-cells = <2>;
228                                 interrupt-controller;
229                                 #interrupt-cells = <2>;
230                                 gpio-ranges = <&iomuxc 0 151 28>;
231                         };
233                         gpio2: gpio@53f88000 {
234                                 compatible = "fsl,imx50-gpio", "fsl,imx35-gpio";
235                                 reg = <0x53f88000 0x4000>;
236                                 interrupts = <52 53>;
237                                 gpio-controller;
238                                 #gpio-cells = <2>;
239                                 interrupt-controller;
240                                 #interrupt-cells = <2>;
241                                 gpio-ranges = <&iomuxc  0 75 8>, <&iomuxc 8 100 8>,
242                                               <&iomuxc 16 83 1>, <&iomuxc 17 85 1>,
243                                               <&iomuxc 18 87 1>, <&iomuxc 19 84 1>,
244                                               <&iomuxc 20 88 1>, <&iomuxc 21 86 1>;
245                         };
247                         gpio3: gpio@53f8c000 {
248                                 compatible = "fsl,imx50-gpio", "fsl,imx35-gpio";
249                                 reg = <0x53f8c000 0x4000>;
250                                 interrupts = <54 55>;
251                                 gpio-controller;
252                                 #gpio-cells = <2>;
253                                 interrupt-controller;
254                                 #interrupt-cells = <2>;
255                                 gpio-ranges = <&iomuxc 0 108 32>;
256                         };
258                         gpio4: gpio@53f90000 {
259                                 compatible = "fsl,imx50-gpio", "fsl,imx35-gpio";
260                                 reg = <0x53f90000 0x4000>;
261                                 interrupts = <56 57>;
262                                 gpio-controller;
263                                 #gpio-cells = <2>;
264                                 interrupt-controller;
265                                 #interrupt-cells = <2>;
266                                 gpio-ranges = <&iomuxc  0   8  8>, <&iomuxc 8 45 12>,
267                                               <&iomuxc 20 140 11>;
268                         };
270                         wdog1: wdog@53f98000 {
271                                 compatible = "fsl,imx50-wdt", "fsl,imx21-wdt";
272                                 reg = <0x53f98000 0x4000>;
273                                 interrupts = <58>;
274                                 clocks = <&clks IMX5_CLK_DUMMY>;
275                         };
277                         gpt: timer@53fa0000 {
278                                 compatible = "fsl,imx50-gpt", "fsl,imx31-gpt";
279                                 reg = <0x53fa0000 0x4000>;
280                                 interrupts = <39>;
281                                 clocks = <&clks IMX5_CLK_GPT_IPG_GATE>,
282                                          <&clks IMX5_CLK_GPT_HF_GATE>;
283                                 clock-names = "ipg", "per";
284                         };
286                         iomuxc: iomuxc@53fa8000 {
287                                 compatible = "fsl,imx50-iomuxc", "fsl,imx53-iomuxc";
288                                 reg = <0x53fa8000 0x4000>;
289                         };
291                         gpr: iomuxc-gpr@53fa8000 {
292                                 compatible = "fsl,imx50-iomuxc-gpr", "syscon";
293                                 reg = <0x53fa8000 0xc>;
294                         };
296                         pwm1: pwm@53fb4000 {
297                                 #pwm-cells = <2>;
298                                 compatible = "fsl,imx50-pwm", "fsl,imx27-pwm";
299                                 reg = <0x53fb4000 0x4000>;
300                                 clocks = <&clks IMX5_CLK_PWM1_IPG_GATE>,
301                                          <&clks IMX5_CLK_PWM1_HF_GATE>;
302                                 clock-names = "ipg", "per";
303                                 interrupts = <61>;
304                         };
306                         pwm2: pwm@53fb8000 {
307                                 #pwm-cells = <2>;
308                                 compatible = "fsl,imx50-pwm", "fsl,imx27-pwm";
309                                 reg = <0x53fb8000 0x4000>;
310                                 clocks = <&clks IMX5_CLK_PWM2_IPG_GATE>,
311                                          <&clks IMX5_CLK_PWM2_HF_GATE>;
312                                 clock-names = "ipg", "per";
313                                 interrupts = <94>;
314                         };
316                         uart1: serial@53fbc000 {
317                                 compatible = "fsl,imx50-uart", "fsl,imx21-uart";
318                                 reg = <0x53fbc000 0x4000>;
319                                 interrupts = <31>;
320                                 clocks = <&clks IMX5_CLK_UART1_IPG_GATE>,
321                                          <&clks IMX5_CLK_UART1_PER_GATE>;
322                                 clock-names = "ipg", "per";
323                                 status = "disabled";
324                         };
326                         uart2: serial@53fc0000 {
327                                 compatible = "fsl,imx50-uart", "fsl,imx21-uart";
328                                 reg = <0x53fc0000 0x4000>;
329                                 interrupts = <32>;
330                                 clocks = <&clks IMX5_CLK_UART2_IPG_GATE>,
331                                          <&clks IMX5_CLK_UART2_PER_GATE>;
332                                 clock-names = "ipg", "per";
333                                 status = "disabled";
334                         };
336                         src: src@53fd0000 {
337                                 compatible = "fsl,imx50-src", "fsl,imx51-src";
338                                 reg = <0x53fd0000 0x4000>;
339                                 #reset-cells = <1>;
340                         };
342                         clks: ccm@53fd4000{
343                                 compatible = "fsl,imx50-ccm";
344                                 reg = <0x53fd4000 0x4000>;
345                                 interrupts = <0 71 0x04 0 72 0x04>;
346                                 #clock-cells = <1>;
347                         };
349                         gpio5: gpio@53fdc000 {
350                                 compatible = "fsl,imx50-gpio", "fsl,imx35-gpio";
351                                 reg = <0x53fdc000 0x4000>;
352                                 interrupts = <103 104>;
353                                 gpio-controller;
354                                 #gpio-cells = <2>;
355                                 interrupt-controller;
356                                 #interrupt-cells = <2>;
357                                 gpio-ranges = <&iomuxc 0 57 18>, <&iomuxc 18 89 11>;
358                         };
360                         gpio6: gpio@53fe0000 {
361                                 compatible = "fsl,imx50-gpio", "fsl,imx35-gpio";
362                                 reg = <0x53fe0000 0x4000>;
363                                 interrupts = <105 106>;
364                                 gpio-controller;
365                                 #gpio-cells = <2>;
366                                 interrupt-controller;
367                                 #interrupt-cells = <2>;
368                                 gpio-ranges = <&iomuxc 0 27 18>, <&iomuxc 18 16 11>;
369                         };
371                         i2c3: i2c@53fec000 {
372                                 #address-cells = <1>;
373                                 #size-cells = <0>;
374                                 compatible = "fsl,imx50-i2c", "fsl,imx21-i2c";
375                                 reg = <0x53fec000 0x4000>;
376                                 interrupts = <64>;
377                                 clocks = <&clks IMX5_CLK_I2C3_GATE>;
378                                 status = "disabled";
379                         };
381                         uart4: serial@53ff0000 {
382                                 compatible = "fsl,imx50-uart", "fsl,imx21-uart";
383                                 reg = <0x53ff0000 0x4000>;
384                                 interrupts = <13>;
385                                 clocks = <&clks IMX5_CLK_UART4_IPG_GATE>,
386                                          <&clks IMX5_CLK_UART4_PER_GATE>;
387                                 clock-names = "ipg", "per";
388                                 status = "disabled";
389                         };
390                 };
392                 aips@60000000 { /* AIPS2 */
393                         compatible = "fsl,aips-bus", "simple-bus";
394                         #address-cells = <1>;
395                         #size-cells = <1>;
396                         reg = <0x60000000 0x10000000>;
397                         ranges;
399                         uart5: serial@63f90000 {
400                                 compatible = "fsl,imx50-uart", "fsl,imx21-uart";
401                                 reg = <0x63f90000 0x4000>;
402                                 interrupts = <86>;
403                                 clocks = <&clks IMX5_CLK_UART5_IPG_GATE>,
404                                          <&clks IMX5_CLK_UART5_PER_GATE>;
405                                 clock-names = "ipg", "per";
406                                 status = "disabled";
407                         };
409                         owire: owire@63fa4000 {
410                                 compatible = "fsl,imx50-owire", "fsl,imx21-owire";
411                                 reg = <0x63fa4000 0x4000>;
412                                 clocks = <&clks IMX5_CLK_OWIRE_GATE>;
413                                 status = "disabled";
414                         };
416                         ecspi2: spi@63fac000 {
417                                 #address-cells = <1>;
418                                 #size-cells = <0>;
419                                 compatible = "fsl,imx50-ecspi", "fsl,imx51-ecspi";
420                                 reg = <0x63fac000 0x4000>;
421                                 interrupts = <37>;
422                                 clocks = <&clks IMX5_CLK_ECSPI2_IPG_GATE>,
423                                          <&clks IMX5_CLK_ECSPI2_PER_GATE>;
424                                 clock-names = "ipg", "per";
425                                 status = "disabled";
426                         };
428                         sdma: sdma@63fb0000 {
429                                 compatible = "fsl,imx50-sdma", "fsl,imx35-sdma";
430                                 reg = <0x63fb0000 0x4000>;
431                                 interrupts = <6>;
432                                 clocks = <&clks IMX5_CLK_SDMA_GATE>,
433                                          <&clks IMX5_CLK_AHB>;
434                                 clock-names = "ipg", "ahb";
435                                 #dma-cells = <3>;
436                                 fsl,sdma-ram-script-name = "imx/sdma/sdma-imx50.bin";
437                         };
439                         cspi: spi@63fc0000 {
440                                 #address-cells = <1>;
441                                 #size-cells = <0>;
442                                 compatible = "fsl,imx50-cspi", "fsl,imx35-cspi";
443                                 reg = <0x63fc0000 0x4000>;
444                                 interrupts = <38>;
445                                 clocks = <&clks IMX5_CLK_CSPI_IPG_GATE>,
446                                          <&clks IMX5_CLK_CSPI_IPG_GATE>;
447                                 clock-names = "ipg", "per";
448                                 status = "disabled";
449                         };
451                         i2c2: i2c@63fc4000 {
452                                 #address-cells = <1>;
453                                 #size-cells = <0>;
454                                 compatible = "fsl,imx50-i2c", "fsl,imx21-i2c";
455                                 reg = <0x63fc4000 0x4000>;
456                                 interrupts = <63>;
457                                 clocks = <&clks IMX5_CLK_I2C2_GATE>;
458                                 status = "disabled";
459                         };
461                         i2c1: i2c@63fc8000 {
462                                 #address-cells = <1>;
463                                 #size-cells = <0>;
464                                 compatible = "fsl,imx50-i2c", "fsl,imx21-i2c";
465                                 reg = <0x63fc8000 0x4000>;
466                                 interrupts = <62>;
467                                 clocks = <&clks IMX5_CLK_I2C1_GATE>;
468                                 status = "disabled";
469                         };
471                         ssi1: ssi@63fcc000 {
472                                 #sound-dai-cells = <0>;
473                                 compatible = "fsl,imx50-ssi", "fsl,imx51-ssi",
474                                                         "fsl,imx21-ssi";
475                                 reg = <0x63fcc000 0x4000>;
476                                 interrupts = <29>;
477                                 clocks = <&clks IMX5_CLK_SSI1_IPG_GATE>;
478                                 dmas = <&sdma 28 0 0>,
479                                        <&sdma 29 0 0>;
480                                 dma-names = "rx", "tx";
481                                 fsl,fifo-depth = <15>;
482                                 status = "disabled";
483                         };
485                         audmux: audmux@63fd0000 {
486                                 compatible = "fsl,imx50-audmux", "fsl,imx31-audmux";
487                                 reg = <0x63fd0000 0x4000>;
488                                 status = "disabled";
489                         };
491                         fec: ethernet@63fec000 {
492                                 compatible = "fsl,imx53-fec", "fsl,imx25-fec";
493                                 reg = <0x63fec000 0x4000>;
494                                 interrupts = <87>;
495                                 clocks = <&clks IMX5_CLK_FEC_GATE>,
496                                          <&clks IMX5_CLK_FEC_GATE>,
497                                          <&clks IMX5_CLK_FEC_GATE>;
498                                 clock-names = "ipg", "ahb", "ptp";
499                                 status = "disabled";
500                         };
501                 };
502         };