blob: 6f16d09dc5a4142037bdb7a7439f1049a0ab2370 [file] [log] [blame]
Linus Walleij4980f9b2012-09-06 09:08:24 +01001/*
2 * Device Tree for the ARM Integrator/AP platform
3 */
4
5/dts-v1/;
6/include/ "integrator.dtsi"
7
8/ {
9 model = "ARM Integrator/AP";
10 compatible = "arm,integrator-ap";
Linus Walleije6dc1952014-02-14 10:26:15 +010011 dma-ranges = <0x80000000 0x0 0x80000000>;
Linus Walleij4980f9b2012-09-06 09:08:24 +010012
13 aliases {
14 arm,timer-primary = &timer2;
15 arm,timer-secondary = &timer1;
16 };
17
18 chosen {
19 bootargs = "root=/dev/ram0 console=ttyAM0,38400n8 earlyprintk";
20 };
21
Linus Walleij257417ec2016-08-04 16:17:08 +020022 /* 24 MHz chrystal on the Integrator/AP development board */
Linus Walleijb7929852014-01-10 15:56:05 +010023 xtal24mhz: xtal24mhz@24M {
24 #clock-cells = <0>;
25 compatible = "fixed-clock";
26 clock-frequency = <24000000>;
27 };
28
29 pclk: pclk@0 {
30 #clock-cells = <0>;
31 compatible = "fixed-factor-clock";
32 clock-div = <1>;
33 clock-mult = <1>;
34 clocks = <&xtal24mhz>;
35 };
36
37 /* The UART clock is 14.74 MHz divided by an ICS525 */
38 uartclk: uartclk@14.74M {
39 #clock-cells = <0>;
40 compatible = "fixed-clock";
41 clock-frequency = <14745600>;
Linus Walleije272b7e2016-08-22 11:16:02 +020042 clocks = <&xtal24mhz>;
Linus Walleijb7929852014-01-10 15:56:05 +010043 };
44
Linus Walleij257417ec2016-08-04 16:17:08 +020045 core-module@10000000 {
46 /* 24 MHz chrystal on the core module */
47 cm24mhz: cm24mhz@24M {
48 #clock-cells = <0>;
49 compatible = "fixed-clock";
50 clock-frequency = <24000000>;
51 };
52
53 /* Oscillator on the core module, clocks the CPU core */
54 cmosc: cmosc@24M {
55 compatible = "arm,syscon-icst525-integratorap-cm";
56 #clock-cells = <0>;
57 lock-offset = <0x14>;
58 vco-offset = <0x08>;
59 clocks = <&cm24mhz>;
60 };
61
62 /* Auxilary oscillator on the core module, 32.369MHz at boot */
63 auxosc: auxosc@24M {
64 compatible = "arm,syscon-icst525";
65 #clock-cells = <0>;
66 lock-offset = <0x14>;
67 vco-offset = <0x1c>;
68 clocks = <&cm24mhz>;
69 };
Linus Walleij4980f9b2012-09-06 09:08:24 +010070 };
71
Linus Walleije67ae6b2012-11-02 01:31:10 +010072 syscon {
Linus Walleijf2b54192016-08-10 11:38:12 +020073 compatible = "arm,integrator-ap-syscon", "syscon";
Linus Walleije67ae6b2012-11-02 01:31:10 +010074 reg = <0x11000000 0x100>;
Linus Walleija6720252013-06-15 23:56:32 +020075 interrupt-parent = <&pic>;
76 /* These are the logical module IRQs */
77 interrupts = <9>, <10>, <11>, <12>;
Linus Walleij49eb1ef2016-08-22 11:16:57 +020078
79 /*
80 * SYSCLK clocks PCIv3 bridge, system controller and the
81 * logic modules.
82 */
83 sysclk: apsys@24M {
84 compatible = "arm,syscon-icst525-integratorap-sys";
85 #clock-cells = <0>;
86 lock-offset = <0x1c>;
87 vco-offset = <0x04>;
88 clocks = <&xtal24mhz>;
89 };
90
91 /* One-bit control for the PCI bus clock (33 or 25 MHz) */
92 pciclk: pciclk@24M {
93 compatible = "arm,syscon-icst525-integratorap-pci";
94 #clock-cells = <0>;
95 lock-offset = <0x1c>;
96 vco-offset = <0x04>;
97 clocks = <&xtal24mhz>;
98 };
Linus Walleije67ae6b2012-11-02 01:31:10 +010099 };
100
Linus Walleij4980f9b2012-09-06 09:08:24 +0100101 timer0: timer@13000000 {
102 compatible = "arm,integrator-timer";
Linus Walleijb7929852014-01-10 15:56:05 +0100103 clocks = <&xtal24mhz>;
Linus Walleij4980f9b2012-09-06 09:08:24 +0100104 };
105
106 timer1: timer@13000100 {
107 compatible = "arm,integrator-timer";
Linus Walleijb7929852014-01-10 15:56:05 +0100108 clocks = <&xtal24mhz>;
Linus Walleij4980f9b2012-09-06 09:08:24 +0100109 };
110
111 timer2: timer@13000200 {
112 compatible = "arm,integrator-timer";
Linus Walleijb7929852014-01-10 15:56:05 +0100113 clocks = <&xtal24mhz>;
Linus Walleij4980f9b2012-09-06 09:08:24 +0100114 };
115
116 pic: pic@14000000 {
117 valid-mask = <0x003fffff>;
118 };
Linus Walleij4672cdd2012-09-06 09:08:47 +0100119
Linus Walleijf55b2b52013-03-01 02:20:55 +0100120 pci: pciv3@62000000 {
121 compatible = "v3,v360epc-pci";
122 #interrupt-cells = <1>;
123 #size-cells = <2>;
124 #address-cells = <3>;
125 reg = <0x62000000 0x10000>;
126 interrupt-parent = <&pic>;
127 interrupts = <17>; /* Bus error IRQ */
128 ranges = <0x00000000 0 0x61000000 /* config space */
129 0x61000000 0 0x00100000 /* 16 MiB @ 61000000 */
Linus Walleij56ce3ff2013-06-26 01:05:38 +0200130 0x01000000 0 0x0 /* I/O space */
Linus Walleijf55b2b52013-03-01 02:20:55 +0100131 0x60000000 0 0x00100000 /* 16 MiB @ 60000000 */
Linus Walleij56ce3ff2013-06-26 01:05:38 +0200132 0x02000000 0 0x00000000 /* non-prefectable memory */
Linus Walleijf55b2b52013-03-01 02:20:55 +0100133 0x40000000 0 0x10000000 /* 256 MiB @ 40000000 */
Linus Walleij56ce3ff2013-06-26 01:05:38 +0200134 0x42000000 0 0x10000000 /* prefetchable memory */
Linus Walleijf55b2b52013-03-01 02:20:55 +0100135 0x50000000 0 0x10000000>; /* 256 MiB @ 50000000 */
136 interrupt-map-mask = <0xf800 0 0 0x7>;
137 interrupt-map = <
138 /* IDSEL 9 */
139 0x4800 0 0 1 &pic 13 /* INT A on slot 9 is irq 13 */
140 0x4800 0 0 2 &pic 14 /* INT B on slot 9 is irq 14 */
141 0x4800 0 0 3 &pic 15 /* INT C on slot 9 is irq 15 */
142 0x4800 0 0 4 &pic 16 /* INT D on slot 9 is irq 16 */
143 /* IDSEL 10 */
144 0x5000 0 0 1 &pic 14 /* INT A on slot 10 is irq 14 */
145 0x5000 0 0 2 &pic 15 /* INT B on slot 10 is irq 15 */
146 0x5000 0 0 3 &pic 16 /* INT C on slot 10 is irq 16 */
147 0x5000 0 0 4 &pic 13 /* INT D on slot 10 is irq 13 */
148 /* IDSEL 11 */
149 0x5800 0 0 1 &pic 15 /* INT A on slot 11 is irq 15 */
150 0x5800 0 0 2 &pic 16 /* INT B on slot 11 is irq 16 */
151 0x5800 0 0 3 &pic 13 /* INT C on slot 11 is irq 13 */
152 0x5800 0 0 4 &pic 14 /* INT D on slot 11 is irq 14 */
153 /* IDSEL 12 */
154 0x6000 0 0 1 &pic 16 /* INT A on slot 12 is irq 16 */
155 0x6000 0 0 2 &pic 13 /* INT B on slot 12 is irq 13 */
156 0x6000 0 0 3 &pic 14 /* INT C on slot 12 is irq 14 */
157 0x6000 0 0 4 &pic 15 /* INT D on slot 12 is irq 15 */
158 >;
159 };
160
Linus Walleij4672cdd2012-09-06 09:08:47 +0100161 fpga {
162 /*
163 * The Integator/AP predates the idea to have magic numbers
164 * identifying the PrimeCell in hardware, thus we have to
165 * supply these from the device tree.
166 */
167 rtc: rtc@15000000 {
168 compatible = "arm,pl030", "arm,primecell";
169 arm,primecell-periphid = <0x00041030>;
Linus Walleijb7929852014-01-10 15:56:05 +0100170 clocks = <&pclk>;
171 clock-names = "apb_pclk";
Linus Walleij4672cdd2012-09-06 09:08:47 +0100172 };
173
174 uart0: uart@16000000 {
175 compatible = "arm,pl010", "arm,primecell";
176 arm,primecell-periphid = <0x00041010>;
Linus Walleijb7929852014-01-10 15:56:05 +0100177 clocks = <&uartclk>, <&pclk>;
178 clock-names = "uartclk", "apb_pclk";
Linus Walleij4672cdd2012-09-06 09:08:47 +0100179 };
180
181 uart1: uart@17000000 {
182 compatible = "arm,pl010", "arm,primecell";
183 arm,primecell-periphid = <0x00041010>;
Linus Walleijb7929852014-01-10 15:56:05 +0100184 clocks = <&uartclk>, <&pclk>;
185 clock-names = "uartclk", "apb_pclk";
Linus Walleij4672cdd2012-09-06 09:08:47 +0100186 };
187
188 kmi0: kmi@18000000 {
189 compatible = "arm,pl050", "arm,primecell";
190 arm,primecell-periphid = <0x00041050>;
Linus Walleijb7929852014-01-10 15:56:05 +0100191 clocks = <&xtal24mhz>, <&pclk>;
192 clock-names = "KMIREFCLK", "apb_pclk";
Linus Walleij4672cdd2012-09-06 09:08:47 +0100193 };
194
195 kmi1: kmi@19000000 {
196 compatible = "arm,pl050", "arm,primecell";
197 arm,primecell-periphid = <0x00041050>;
Linus Walleijb7929852014-01-10 15:56:05 +0100198 clocks = <&xtal24mhz>, <&pclk>;
199 clock-names = "KMIREFCLK", "apb_pclk";
Linus Walleij4672cdd2012-09-06 09:08:47 +0100200 };
201 };
Linus Walleij4980f9b2012-09-06 09:08:24 +0100202};