1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Device Tree for the ARM Integrator/AP platform 4 */ 5 6/dts-v1/; 7#include "integrator.dtsi" 8#include <dt-bindings/gpio/gpio.h> 9#include <dt-bindings/input/input.h> 10 11/ { 12 model = "ARM Integrator/AP"; 13 compatible = "arm,integrator-ap"; 14 15 cpus { 16 #address-cells = <1>; 17 #size-cells = <0>; 18 19 cpu@0 { 20 device_type = "cpu"; 21 /* 22 * Since the board has pluggable CPU modules, we 23 * cannot define a proper compatible here. Let the 24 * boot loader fill in the apropriate compatible 25 * string if necessary. 26 */ 27 /* compatible = "arm,arm926ej-s"; */ 28 reg = <0>; 29 /* 30 * The documentation in ARM DUI 0138E page 3-12 states 31 * that the maximum frequency for this clock is 200 MHz 32 * but painful trial-and-error has proved to me that it 33 * is actually just hanging the system above 71 MHz. 34 * Sad but true. 35 */ 36 /* kHz uV */ 37 operating-points = <71000 0 38 66000 0 39 60000 0 40 48000 0 41 36000 0 42 24000 0 43 12000 0>; 44 clocks = <&cmosc>; 45 clock-names = "cpu"; 46 clock-latency = <1000000>; /* 1 ms */ 47 }; 48 }; 49 50 aliases { 51 arm,timer-primary = &timer2; 52 arm,timer-secondary = &timer1; 53 }; 54 55 chosen { 56 bootargs = "root=/dev/ram0 console=ttyAM0,38400n8 earlyprintk"; 57 }; 58 59 /* 24 MHz chrystal on the Integrator/AP development board */ 60 xtal24mhz: pclk: clock-24000000 { 61 #clock-cells = <0>; 62 compatible = "fixed-clock"; 63 clock-frequency = <24000000>; 64 }; 65 66 /* The UART clock is 14.74 MHz divided by an ICS525 */ 67 uartclk: clock-14745600 { 68 #clock-cells = <0>; 69 compatible = "fixed-clock"; 70 clock-frequency = <14745600>; 71 clocks = <&xtal24mhz>; 72 }; 73 74 core-module@10000000 { 75 /* 24 MHz chrystal on the core module */ 76 cm24mhz: clock-24000000 { 77 #clock-cells = <0>; 78 compatible = "fixed-clock"; 79 clock-frequency = <24000000>; 80 }; 81 82 /* Oscillator on the core module, clocks the CPU core */ 83 cmosc: clock-controller@8 { 84 compatible = "arm,syscon-icst525-integratorap-cm"; 85 reg = <0x08 0x04>; 86 #clock-cells = <0>; 87 lock-offset = <0x14>; 88 vco-offset = <0x08>; 89 clocks = <&cm24mhz>; 90 }; 91 92 /* Auxilary oscillator on the core module, 32.369MHz at boot */ 93 auxosc: clock-controller@1c { 94 compatible = "arm,syscon-icst525"; 95 reg = <0x1c 0x04>; 96 #clock-cells = <0>; 97 lock-offset = <0x14>; 98 vco-offset = <0x1c>; 99 clocks = <&cm24mhz>; 100 }; 101 }; 102 103 syscon { 104 compatible = "arm,integrator-ap-syscon", "syscon"; 105 reg = <0x11000000 0x100>; 106 ranges = <0x0 0x11000000 0x100>; 107 #size-cells = <1>; 108 #address-cells = <1>; 109 110 /* 111 * SYSCLK clocks PCIv3 bridge, system controller and the 112 * logic modules. 113 */ 114 sysclk: clock-controller@4 { 115 compatible = "arm,syscon-icst525-integratorap-sys"; 116 reg = <0x04 0x04>; 117 #clock-cells = <0>; 118 lock-offset = <0x1c>; 119 vco-offset = <0x04>; 120 clocks = <&xtal24mhz>; 121 }; 122 123 /* One-bit control for the PCI bus clock (33 or 25 MHz) */ 124 pciclk: clock-controller@4,8 { 125 compatible = "arm,syscon-icst525-integratorap-pci"; 126 reg = <0x04 0x04>; 127 #clock-cells = <0>; 128 lock-offset = <0x1c>; 129 vco-offset = <0x04>; 130 clocks = <&xtal24mhz>; 131 }; 132 }; 133 134 timer0: timer@13000000 { 135 compatible = "arm,integrator-timer"; 136 clocks = <&xtal24mhz>; 137 }; 138 139 timer1: timer@13000100 { 140 compatible = "arm,integrator-timer"; 141 clocks = <&xtal24mhz>; 142 }; 143 144 timer2: timer@13000200 { 145 compatible = "arm,integrator-timer"; 146 clocks = <&xtal24mhz>; 147 }; 148 149 pic: pic@14000000 { 150 valid-mask = <0x003fffff>; 151 }; 152 153 pci: pci@62000000 { 154 compatible = "arm,integrator-ap-pci", "v3,v360epc-pci"; 155 device_type = "pci"; 156 #interrupt-cells = <1>; 157 #size-cells = <2>; 158 #address-cells = <3>; 159 /* Bridge registers and config access space */ 160 reg = <0x62000000 0x10000>, <0x61000000 0x01000000>; 161 interrupt-parent = <&pic>; 162 interrupts = <17>; /* Bus error IRQ */ 163 clocks = <&pciclk>; 164 bus-range = <0x00 0xff>; 165 ranges = <0x01000000 0 0x0000000 /* I/O space @00000000 */ 166 0x60000000 0 0x00010000 /* 64 KB @ LB 60000000 */ 167 0x02000000 0 0x40000000 /* non-prefectable memory @40000000 */ 168 0x40000000 0 0x10000000 /* 256 MiB @ LB 40000000 1:1 */ 169 0x42000000 0 0x50000000 /* prefetchable memory @50000000 */ 170 0x50000000 0 0x10000000>; /* 256 MiB @ LB 50000000 1:1 */ 171 dma-ranges = <0x02000000 0 0x20000000 /* EBI memory space */ 172 0x20000000 0 0x20000000 /* 512 MB @ LB 20000000 1:1 */ 173 0x02000000 0 0x80000000 /* Core module alias memory */ 174 0x80000000 0 0x40000000>; /* 1GB @ LB 80000000 */ 175 interrupt-map-mask = <0xf800 0 0 0x7>; 176 interrupt-map = < 177 /* IDSEL 9 */ 178 0x4800 0 0 1 &pic 13 /* INT A on slot 9 is irq 13 */ 179 0x4800 0 0 2 &pic 14 /* INT B on slot 9 is irq 14 */ 180 0x4800 0 0 3 &pic 15 /* INT C on slot 9 is irq 15 */ 181 0x4800 0 0 4 &pic 16 /* INT D on slot 9 is irq 16 */ 182 /* IDSEL 10 */ 183 0x5000 0 0 1 &pic 14 /* INT A on slot 10 is irq 14 */ 184 0x5000 0 0 2 &pic 15 /* INT B on slot 10 is irq 15 */ 185 0x5000 0 0 3 &pic 16 /* INT C on slot 10 is irq 16 */ 186 0x5000 0 0 4 &pic 13 /* INT D on slot 10 is irq 13 */ 187 /* IDSEL 11 */ 188 0x5800 0 0 1 &pic 15 /* INT A on slot 11 is irq 15 */ 189 0x5800 0 0 2 &pic 16 /* INT B on slot 11 is irq 16 */ 190 0x5800 0 0 3 &pic 13 /* INT C on slot 11 is irq 13 */ 191 0x5800 0 0 4 &pic 14 /* INT D on slot 11 is irq 14 */ 192 /* IDSEL 12 */ 193 0x6000 0 0 1 &pic 16 /* INT A on slot 12 is irq 16 */ 194 0x6000 0 0 2 &pic 13 /* INT B on slot 12 is irq 13 */ 195 0x6000 0 0 3 &pic 14 /* INT C on slot 12 is irq 14 */ 196 0x6000 0 0 4 &pic 15 /* INT D on slot 12 is irq 15 */ 197 >; 198 }; 199 200 fpga { 201 /* 202 * The Integator/AP predates the idea to have magic numbers 203 * identifying the PrimeCell in hardware, thus we have to 204 * supply these from the device tree. 205 */ 206 rtc: rtc@15000000 { 207 compatible = "arm,pl030", "arm,primecell"; 208 arm,primecell-periphid = <0x00041030>; 209 clocks = <&pclk>; 210 clock-names = "apb_pclk"; 211 }; 212 213 uart0: serial@16000000 { 214 compatible = "arm,pl010", "arm,primecell"; 215 arm,primecell-periphid = <0x00041010>; 216 clocks = <&uartclk>, <&pclk>; 217 clock-names = "uartclk", "apb_pclk"; 218 }; 219 220 uart1: serial@17000000 { 221 compatible = "arm,pl010", "arm,primecell"; 222 arm,primecell-periphid = <0x00041010>; 223 clocks = <&uartclk>, <&pclk>; 224 clock-names = "uartclk", "apb_pclk"; 225 }; 226 227 kmi0: kmi@18000000 { 228 compatible = "arm,pl050", "arm,primecell"; 229 arm,primecell-periphid = <0x00041050>; 230 clocks = <&xtal24mhz>, <&pclk>; 231 clock-names = "KMIREFCLK", "apb_pclk"; 232 }; 233 234 kmi1: kmi@19000000 { 235 compatible = "arm,pl050", "arm,primecell"; 236 arm,primecell-periphid = <0x00041050>; 237 clocks = <&xtal24mhz>, <&pclk>; 238 clock-names = "KMIREFCLK", "apb_pclk"; 239 }; 240 }; 241 242 /* 243 * Logic module bus, we support up to 4 logical modules 244 * They appear at 0xc0000000, 0xd0000000, 0xe0000000 and 0xf0000000 245 * and use interrupts 9, 10, 11 and 12 respectively. 246 */ 247 bus@c0000000 { 248 compatible = "arm,integrator-ap-lm"; 249 #address-cells = <1>; 250 #size-cells = <1>; 251 ranges = <0xc0000000 0xc0000000 0x40000000>; 252 dma-ranges; 253 254 lm0: bus@c0000000 { 255 compatible = "simple-bus"; 256 ranges = <0x00000000 0xc0000000 0x10000000>; 257 dma-ranges = <0x00000000 0xc0000000 0x10000000>; 258 reg = <0xc0000000 0x10000000>; 259 #address-cells = <1>; 260 #size-cells = <1>; 261 }; 262 lm1: bus@d0000000 { 263 compatible = "simple-bus"; 264 ranges = <0x00000000 0xd0000000 0x10000000>; 265 dma-ranges = <0x00000000 0xd0000000 0x10000000>; 266 reg = <0xd0000000 0x10000000>; 267 #address-cells = <1>; 268 #size-cells = <1>; 269 }; 270 lm2: bus@e0000000 { 271 compatible = "simple-bus"; 272 ranges = <0x00000000 0xe0000000 0x10000000>; 273 dma-ranges = <0x00000000 0xe0000000 0x10000000>; 274 reg = <0xe0000000 0x10000000>; 275 #address-cells = <1>; 276 #size-cells = <1>; 277 }; 278 lm3: bus@f0000000 { 279 compatible = "simple-bus"; 280 ranges = <0x00000000 0xf0000000 0x10000000>; 281 dma-ranges = <0x00000000 0xf0000000 0x10000000>; 282 reg = <0xf0000000 0x10000000>; 283 #address-cells = <1>; 284 #size-cells = <1>; 285 }; 286 }; 287}; 288