GNU Linux-libre 4.19.264-gnu1
[releases.git] / arch / arm / boot / dts / imx25.dtsi
1 // SPDX-License-Identifier: GPL-2.0+
2 //
3 // Copyright 2012 Sascha Hauer, Pengutronix <s.hauer@pengutronix.de>
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include "imx25-pinfunc.h"
7
8 / {
9         #address-cells = <1>;
10         #size-cells = <1>;
11         /*
12          * The decompressor and also some bootloaders rely on a
13          * pre-existing /chosen node to be available to insert the
14          * command line and merge other ATAGS info.
15          */
16         chosen {};
17
18         aliases {
19                 ethernet0 = &fec;
20                 gpio0 = &gpio1;
21                 gpio1 = &gpio2;
22                 gpio2 = &gpio3;
23                 gpio3 = &gpio4;
24                 i2c0 = &i2c1;
25                 i2c1 = &i2c2;
26                 i2c2 = &i2c3;
27                 mmc0 = &esdhc1;
28                 mmc1 = &esdhc2;
29                 pwm0 = &pwm1;
30                 pwm1 = &pwm2;
31                 pwm2 = &pwm3;
32                 pwm3 = &pwm4;
33                 serial0 = &uart1;
34                 serial1 = &uart2;
35                 serial2 = &uart3;
36                 serial3 = &uart4;
37                 serial4 = &uart5;
38                 spi0 = &spi1;
39                 spi1 = &spi2;
40                 spi2 = &spi3;
41                 usb0 = &usbotg;
42                 usb1 = &usbhost1;
43         };
44
45         cpus {
46                 #address-cells = <1>;
47                 #size-cells = <0>;
48
49                 cpu@0 {
50                         compatible = "arm,arm926ej-s";
51                         device_type = "cpu";
52                         reg = <0>;
53                 };
54         };
55
56         asic: asic-interrupt-controller@68000000 {
57                 compatible = "fsl,imx25-asic", "fsl,avic";
58                 interrupt-controller;
59                 #interrupt-cells = <1>;
60                 reg = <0x68000000 0x8000000>;
61         };
62
63         clocks {
64                 osc {
65                         compatible = "fsl,imx-osc", "fixed-clock";
66                         #clock-cells = <0>;
67                         clock-frequency = <24000000>;
68                 };
69         };
70
71         soc {
72                 #address-cells = <1>;
73                 #size-cells = <1>;
74                 compatible = "simple-bus";
75                 interrupt-parent = <&asic>;
76                 ranges;
77
78                 aips@43f00000 { /* AIPS1 */
79                         compatible = "fsl,aips-bus", "simple-bus";
80                         #address-cells = <1>;
81                         #size-cells = <1>;
82                         reg = <0x43f00000 0x100000>;
83                         ranges;
84
85                         aips1: bridge@43f00000 {
86                                 compatible = "fsl,imx25-aips";
87                                 reg = <0x43f00000 0x4000>;
88                         };
89
90                         i2c1: i2c@43f80000 {
91                                 #address-cells = <1>;
92                                 #size-cells = <0>;
93                                 compatible = "fsl,imx25-i2c", "fsl,imx21-i2c";
94                                 reg = <0x43f80000 0x4000>;
95                                 clocks = <&clks 48>;
96                                 clock-names = "";
97                                 interrupts = <3>;
98                                 status = "disabled";
99                         };
100
101                         i2c3: i2c@43f84000 {
102                                 #address-cells = <1>;
103                                 #size-cells = <0>;
104                                 compatible = "fsl,imx25-i2c", "fsl,imx21-i2c";
105                                 reg = <0x43f84000 0x4000>;
106                                 clocks = <&clks 48>;
107                                 clock-names = "";
108                                 interrupts = <10>;
109                                 status = "disabled";
110                         };
111
112                         can1: can@43f88000 {
113                                 compatible = "fsl,imx25-flexcan";
114                                 reg = <0x43f88000 0x4000>;
115                                 interrupts = <43>;
116                                 clocks = <&clks 75>, <&clks 75>;
117                                 clock-names = "ipg", "per";
118                                 status = "disabled";
119                         };
120
121                         can2: can@43f8c000 {
122                                 compatible = "fsl,imx25-flexcan";
123                                 reg = <0x43f8c000 0x4000>;
124                                 interrupts = <44>;
125                                 clocks = <&clks 76>, <&clks 76>;
126                                 clock-names = "ipg", "per";
127                                 status = "disabled";
128                         };
129
130                         uart1: serial@43f90000 {
131                                 compatible = "fsl,imx25-uart", "fsl,imx21-uart";
132                                 reg = <0x43f90000 0x4000>;
133                                 interrupts = <45>;
134                                 clocks = <&clks 120>, <&clks 57>;
135                                 clock-names = "ipg", "per";
136                                 status = "disabled";
137                         };
138
139                         uart2: serial@43f94000 {
140                                 compatible = "fsl,imx25-uart", "fsl,imx21-uart";
141                                 reg = <0x43f94000 0x4000>;
142                                 interrupts = <32>;
143                                 clocks = <&clks 121>, <&clks 57>;
144                                 clock-names = "ipg", "per";
145                                 status = "disabled";
146                         };
147
148                         i2c2: i2c@43f98000 {
149                                 #address-cells = <1>;
150                                 #size-cells = <0>;
151                                 compatible = "fsl,imx25-i2c", "fsl,imx21-i2c";
152                                 reg = <0x43f98000 0x4000>;
153                                 clocks = <&clks 48>;
154                                 clock-names = "";
155                                 interrupts = <4>;
156                                 status = "disabled";
157                         };
158
159                         owire@43f9c000 {
160                                 #address-cells = <1>;
161                                 #size-cells = <0>;
162                                 reg = <0x43f9c000 0x4000>;
163                                 clocks = <&clks 51>;
164                                 clock-names = "";
165                                 interrupts = <2>;
166                                 status = "disabled";
167                         };
168
169                         spi1: cspi@43fa4000 {
170                                 #address-cells = <1>;
171                                 #size-cells = <0>;
172                                 compatible = "fsl,imx25-cspi", "fsl,imx35-cspi";
173                                 reg = <0x43fa4000 0x4000>;
174                                 clocks = <&clks 78>, <&clks 78>;
175                                 clock-names = "ipg", "per";
176                                 interrupts = <14>;
177                                 status = "disabled";
178                         };
179
180                         kpp: kpp@43fa8000 {
181                                 #address-cells = <1>;
182                                 #size-cells = <0>;
183                                 compatible = "fsl,imx25-kpp", "fsl,imx21-kpp";
184                                 reg = <0x43fa8000 0x4000>;
185                                 clocks = <&clks 102>;
186                                 clock-names = "";
187                                 interrupts = <24>;
188                                 status = "disabled";
189                         };
190
191                         iomuxc: iomuxc@43fac000 {
192                                 compatible = "fsl,imx25-iomuxc";
193                                 reg = <0x43fac000 0x4000>;
194                         };
195
196                         audmux: audmux@43fb0000 {
197                                 compatible = "fsl,imx25-audmux", "fsl,imx31-audmux";
198                                 reg = <0x43fb0000 0x4000>;
199                                 status = "disabled";
200                         };
201                 };
202
203                 spba@50000000 {
204                         compatible = "fsl,spba-bus", "simple-bus";
205                         #address-cells = <1>;
206                         #size-cells = <1>;
207                         reg = <0x50000000 0x40000>;
208                         ranges;
209
210                         spi3: cspi@50004000 {
211                                 #address-cells = <1>;
212                                 #size-cells = <0>;
213                                 compatible = "fsl,imx25-cspi", "fsl,imx35-cspi";
214                                 reg = <0x50004000 0x4000>;
215                                 interrupts = <0>;
216                                 clocks = <&clks 80>, <&clks 80>;
217                                 clock-names = "ipg", "per";
218                                 status = "disabled";
219                         };
220
221                         uart4: serial@50008000 {
222                                 compatible = "fsl,imx25-uart", "fsl,imx21-uart";
223                                 reg = <0x50008000 0x4000>;
224                                 interrupts = <5>;
225                                 clocks = <&clks 123>, <&clks 57>;
226                                 clock-names = "ipg", "per";
227                                 status = "disabled";
228                         };
229
230                         uart3: serial@5000c000 {
231                                 compatible = "fsl,imx25-uart", "fsl,imx21-uart";
232                                 reg = <0x5000c000 0x4000>;
233                                 interrupts = <18>;
234                                 clocks = <&clks 122>, <&clks 57>;
235                                 clock-names = "ipg", "per";
236                                 status = "disabled";
237                         };
238
239                         spi2: cspi@50010000 {
240                                 #address-cells = <1>;
241                                 #size-cells = <0>;
242                                 compatible = "fsl,imx25-cspi", "fsl,imx35-cspi";
243                                 reg = <0x50010000 0x4000>;
244                                 clocks = <&clks 79>, <&clks 79>;
245                                 clock-names = "ipg", "per";
246                                 interrupts = <13>;
247                                 status = "disabled";
248                         };
249
250                         ssi2: ssi@50014000 {
251                                 #sound-dai-cells = <0>;
252                                 compatible = "fsl,imx25-ssi", "fsl,imx21-ssi";
253                                 reg = <0x50014000 0x4000>;
254                                 interrupts = <11>;
255                                 clocks = <&clks 118>;
256                                 clock-names = "ipg";
257                                 dmas = <&sdma 24 1 0>,
258                                        <&sdma 25 1 0>;
259                                 dma-names = "rx", "tx";
260                                 fsl,fifo-depth = <15>;
261                                 status = "disabled";
262                         };
263
264                         esai@50018000 {
265                                 reg = <0x50018000 0x4000>;
266                                 interrupts = <7>;
267                         };
268
269                         uart5: serial@5002c000 {
270                                 compatible = "fsl,imx25-uart", "fsl,imx21-uart";
271                                 reg = <0x5002c000 0x4000>;
272                                 interrupts = <40>;
273                                 clocks = <&clks 124>, <&clks 57>;
274                                 clock-names = "ipg", "per";
275                                 status = "disabled";
276                         };
277
278                         tscadc: tscadc@50030000 {
279                                 compatible = "fsl,imx25-tsadc";
280                                 reg = <0x50030000 0xc>;
281                                 interrupts = <46>;
282                                 clocks = <&clks 119>;
283                                 clock-names = "ipg";
284                                 interrupt-controller;
285                                 #interrupt-cells = <1>;
286                                 #address-cells = <1>;
287                                 #size-cells = <1>;
288                                 status = "disabled";
289                                 ranges;
290
291                                 adc: adc@50030800 {
292                                         compatible = "fsl,imx25-gcq";
293                                         reg = <0x50030800 0x60>;
294                                         interrupt-parent = <&tscadc>;
295                                         interrupts = <1>;
296                                         #address-cells = <1>;
297                                         #size-cells = <0>;
298                                         status = "disabled";
299                                 };
300
301                                 tsc: tcq@50030400 {
302                                         compatible = "fsl,imx25-tcq";
303                                         reg = <0x50030400 0x60>;
304                                         interrupt-parent = <&tscadc>;
305                                         interrupts = <0>;
306                                         fsl,wires = <4>;
307                                         status = "disabled";
308                                 };
309                         };
310
311                         ssi1: ssi@50034000 {
312                                 #sound-dai-cells = <0>;
313                                 compatible = "fsl,imx25-ssi", "fsl,imx21-ssi";
314                                 reg = <0x50034000 0x4000>;
315                                 interrupts = <12>;
316                                 clocks = <&clks 117>;
317                                 clock-names = "ipg";
318                                 dmas = <&sdma 28 1 0>,
319                                        <&sdma 29 1 0>;
320                                 dma-names = "rx", "tx";
321                                 fsl,fifo-depth = <15>;
322                                 status = "disabled";
323                         };
324
325                         fec: ethernet@50038000 {
326                                 compatible = "fsl,imx25-fec";
327                                 reg = <0x50038000 0x4000>;
328                                 interrupts = <57>;
329                                 clocks = <&clks 88>, <&clks 65>;
330                                 clock-names = "ipg", "ahb";
331                                 status = "disabled";
332                         };
333                 };
334
335                 aips@53f00000 { /* AIPS2 */
336                         compatible = "fsl,aips-bus", "simple-bus";
337                         #address-cells = <1>;
338                         #size-cells = <1>;
339                         reg = <0x53f00000 0x100000>;
340                         ranges;
341
342                         aips2: bridge@53f00000 {
343                                 compatible = "fsl,imx25-aips";
344                                 reg = <0x53f00000 0x4000>;
345                         };
346
347                         clks: ccm@53f80000 {
348                                 compatible = "fsl,imx25-ccm";
349                                 reg = <0x53f80000 0x4000>;
350                                 interrupts = <31>;
351                                 #clock-cells = <1>;
352                         };
353
354                         gpt4: timer@53f84000 {
355                                 compatible = "fsl,imx25-gpt", "fsl,imx31-gpt";
356                                 reg = <0x53f84000 0x4000>;
357                                 clocks = <&clks 95>, <&clks 47>;
358                                 clock-names = "ipg", "per";
359                                 interrupts = <1>;
360                         };
361
362                         gpt3: timer@53f88000 {
363                                 compatible = "fsl,imx25-gpt", "fsl,imx31-gpt";
364                                 reg = <0x53f88000 0x4000>;
365                                 clocks = <&clks 94>, <&clks 47>;
366                                 clock-names = "ipg", "per";
367                                 interrupts = <29>;
368                         };
369
370                         gpt2: timer@53f8c000 {
371                                 compatible = "fsl,imx25-gpt", "fsl,imx31-gpt";
372                                 reg = <0x53f8c000 0x4000>;
373                                 clocks = <&clks 93>, <&clks 47>;
374                                 clock-names = "ipg", "per";
375                                 interrupts = <53>;
376                         };
377
378                         gpt1: timer@53f90000 {
379                                 compatible = "fsl,imx25-gpt", "fsl,imx31-gpt";
380                                 reg = <0x53f90000 0x4000>;
381                                 clocks = <&clks 92>, <&clks 47>;
382                                 clock-names = "ipg", "per";
383                                 interrupts = <54>;
384                         };
385
386                         epit1: timer@53f94000 {
387                                 compatible = "fsl,imx25-epit";
388                                 reg = <0x53f94000 0x4000>;
389                                 interrupts = <28>;
390                         };
391
392                         epit2: timer@53f98000 {
393                                 compatible = "fsl,imx25-epit";
394                                 reg = <0x53f98000 0x4000>;
395                                 interrupts = <27>;
396                         };
397
398                         gpio4: gpio@53f9c000 {
399                                 compatible = "fsl,imx25-gpio", "fsl,imx35-gpio";
400                                 reg = <0x53f9c000 0x4000>;
401                                 interrupts = <23>;
402                                 gpio-controller;
403                                 #gpio-cells = <2>;
404                                 interrupt-controller;
405                                 #interrupt-cells = <2>;
406                         };
407
408                         pwm2: pwm@53fa0000 {
409                                 compatible = "fsl,imx25-pwm", "fsl,imx27-pwm";
410                                 #pwm-cells = <2>;
411                                 reg = <0x53fa0000 0x4000>;
412                                 clocks = <&clks 106>, <&clks 52>;
413                                 clock-names = "ipg", "per";
414                                 interrupts = <36>;
415                         };
416
417                         gpio3: gpio@53fa4000 {
418                                 compatible = "fsl,imx25-gpio", "fsl,imx35-gpio";
419                                 reg = <0x53fa4000 0x4000>;
420                                 interrupts = <16>;
421                                 gpio-controller;
422                                 #gpio-cells = <2>;
423                                 interrupt-controller;
424                                 #interrupt-cells = <2>;
425                         };
426
427                         pwm3: pwm@53fa8000 {
428                                 compatible = "fsl,imx25-pwm", "fsl,imx27-pwm";
429                                 #pwm-cells = <2>;
430                                 reg = <0x53fa8000 0x4000>;
431                                 clocks = <&clks 107>, <&clks 52>;
432                                 clock-names = "ipg", "per";
433                                 interrupts = <41>;
434                         };
435
436                         scc: crypto@53fac000 {
437                                 compatible = "fsl,imx25-scc";
438                                 reg = <0x53fac000 0x4000>;
439                                 clocks = <&clks 111>;
440                                 clock-names = "ipg";
441                                 interrupts = <49>, <50>;
442                                 interrupt-names = "scm", "smn";
443                         };
444
445                         rngb: rngb@53fb0000 {
446                                 compatible = "fsl,imx25-rngb";
447                                 reg = <0x53fb0000 0x4000>;
448                                 clocks = <&clks 109>;
449                                 interrupts = <22>;
450                         };
451
452                         esdhc1: esdhc@53fb4000 {
453                                 compatible = "fsl,imx25-esdhc";
454                                 reg = <0x53fb4000 0x4000>;
455                                 interrupts = <9>;
456                                 clocks = <&clks 86>, <&clks 63>, <&clks 45>;
457                                 clock-names = "ipg", "ahb", "per";
458                                 status = "disabled";
459                         };
460
461                         esdhc2: esdhc@53fb8000 {
462                                 compatible = "fsl,imx25-esdhc";
463                                 reg = <0x53fb8000 0x4000>;
464                                 interrupts = <8>;
465                                 clocks = <&clks 87>, <&clks 64>, <&clks 46>;
466                                 clock-names = "ipg", "ahb", "per";
467                                 status = "disabled";
468                         };
469
470                         lcdc: lcdc@53fbc000 {
471                                 compatible = "fsl,imx25-fb", "fsl,imx21-fb";
472                                 reg = <0x53fbc000 0x4000>;
473                                 interrupts = <39>;
474                                 clocks = <&clks 103>, <&clks 66>, <&clks 49>;
475                                 clock-names = "ipg", "ahb", "per";
476                                 status = "disabled";
477                         };
478
479                         slcdc@53fc0000 {
480                                 reg = <0x53fc0000 0x4000>;
481                                 interrupts = <38>;
482                                 status = "disabled";
483                         };
484
485                         pwm4: pwm@53fc8000 {
486                                 compatible = "fsl,imx25-pwm", "fsl,imx27-pwm";
487                                 #pwm-cells = <2>;
488                                 reg = <0x53fc8000 0x4000>;
489                                 clocks = <&clks 108>, <&clks 52>;
490                                 clock-names = "ipg", "per";
491                                 interrupts = <42>;
492                         };
493
494                         gpio1: gpio@53fcc000 {
495                                 compatible = "fsl,imx25-gpio", "fsl,imx35-gpio";
496                                 reg = <0x53fcc000 0x4000>;
497                                 interrupts = <52>;
498                                 gpio-controller;
499                                 #gpio-cells = <2>;
500                                 interrupt-controller;
501                                 #interrupt-cells = <2>;
502                         };
503
504                         gpio2: gpio@53fd0000 {
505                                 compatible = "fsl,imx25-gpio", "fsl,imx35-gpio";
506                                 reg = <0x53fd0000 0x4000>;
507                                 interrupts = <51>;
508                                 gpio-controller;
509                                 #gpio-cells = <2>;
510                                 interrupt-controller;
511                                 #interrupt-cells = <2>;
512                         };
513
514                         sdma: sdma@53fd4000 {
515                                 compatible = "fsl,imx25-sdma";
516                                 reg = <0x53fd4000 0x4000>;
517                                 clocks = <&clks 112>, <&clks 68>;
518                                 clock-names = "ipg", "ahb";
519                                 #dma-cells = <3>;
520                                 interrupts = <34>;
521                                 fsl,sdma-ram-script-name = "/*(DEBLOBBED)*/";
522                         };
523
524                         wdog@53fdc000 {
525                                 compatible = "fsl,imx25-wdt", "fsl,imx21-wdt";
526                                 reg = <0x53fdc000 0x4000>;
527                                 clocks = <&clks 126>;
528                                 clock-names = "";
529                                 interrupts = <55>;
530                         };
531
532                         pwm1: pwm@53fe0000 {
533                                 compatible = "fsl,imx25-pwm", "fsl,imx27-pwm";
534                                 #pwm-cells = <2>;
535                                 reg = <0x53fe0000 0x4000>;
536                                 clocks = <&clks 105>, <&clks 52>;
537                                 clock-names = "ipg", "per";
538                                 interrupts = <26>;
539                         };
540
541                         iim: iim@53ff0000 {
542                                 compatible = "fsl,imx25-iim", "fsl,imx27-iim";
543                                 reg = <0x53ff0000 0x4000>;
544                                 interrupts = <19>;
545                                 clocks = <&clks 99>;
546                         };
547
548                         usbotg: usb@53ff4000 {
549                                 compatible = "fsl,imx25-usb", "fsl,imx27-usb";
550                                 reg = <0x53ff4000 0x0200>;
551                                 interrupts = <37>;
552                                 clocks = <&clks 9>, <&clks 70>, <&clks 8>;
553                                 clock-names = "ipg", "ahb", "per";
554                                 fsl,usbmisc = <&usbmisc 0>;
555                                 fsl,usbphy = <&usbphy0>;
556                                 phy_type = "utmi";
557                                 dr_mode = "otg";
558                                 status = "disabled";
559                         };
560
561                         usbhost1: usb@53ff4400 {
562                                 compatible = "fsl,imx25-usb", "fsl,imx27-usb";
563                                 reg = <0x53ff4400 0x0200>;
564                                 interrupts = <35>;
565                                 clocks = <&clks 9>, <&clks 70>, <&clks 8>;
566                                 clock-names = "ipg", "ahb", "per";
567                                 fsl,usbmisc = <&usbmisc 1>;
568                                 fsl,usbphy = <&usbphy1>;
569                                 status = "disabled";
570                         };
571
572                         usbmisc: usbmisc@53ff4600 {
573                                 #index-cells = <1>;
574                                 compatible = "fsl,imx25-usbmisc";
575                                 reg = <0x53ff4600 0x00f>;
576                         };
577
578                         dryice@53ffc000 {
579                                 compatible = "fsl,imx25-dryice", "fsl,imx25-rtc";
580                                 reg = <0x53ffc000 0x4000>;
581                                 clocks = <&clks 81>;
582                                 clock-names = "ipg";
583                                 interrupts = <25 56>;
584                         };
585                 };
586
587                 iram: sram@78000000 {
588                         compatible = "mmio-sram";
589                         reg = <0x78000000 0x20000>;
590                 };
591
592                 emi@80000000 {
593                         compatible = "fsl,emi-bus", "simple-bus";
594                         #address-cells = <1>;
595                         #size-cells = <1>;
596                         reg = <0x80000000 0x3b002000>;
597                         ranges;
598
599                         nfc: nand@bb000000 {
600                                 #address-cells = <1>;
601                                 #size-cells = <1>;
602
603                                 compatible = "fsl,imx25-nand";
604                                 reg = <0xbb000000 0x2000>;
605                                 clocks = <&clks 50>;
606                                 clock-names = "";
607                                 interrupts = <33>;
608                                 status = "disabled";
609                         };
610                 };
611         };
612
613         usbphy {
614                 compatible = "simple-bus";
615                 #address-cells = <1>;
616                 #size-cells = <0>;
617
618                 usbphy0: usb-phy@0 {
619                         reg = <0>;
620                         compatible = "usb-nop-xceiv";
621                         #phy-cells = <0>;
622                 };
623
624                 usbphy1: usb-phy@1 {
625                         reg = <1>;
626                         compatible = "usb-nop-xceiv";
627                         #phy-cells = <0>;
628                 };
629         };
630 };