Linus Walleij | 4980f9b | 2012-09-06 09:08:24 +0100 | [diff] [blame] | 1 | /* |
| 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 Walleij | e6dc195 | 2014-02-14 10:26:15 +0100 | [diff] [blame] | 11 | dma-ranges = <0x80000000 0x0 0x80000000>; |
Linus Walleij | 4980f9b | 2012-09-06 09:08:24 +0100 | [diff] [blame] | 12 | |
| 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 Walleij | 257417ec | 2016-08-04 16:17:08 +0200 | [diff] [blame] | 22 | /* 24 MHz chrystal on the Integrator/AP development board */ |
Linus Walleij | b792985 | 2014-01-10 15:56:05 +0100 | [diff] [blame] | 23 | 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 Walleij | e272b7e | 2016-08-22 11:16:02 +0200 | [diff] [blame] | 42 | clocks = <&xtal24mhz>; |
Linus Walleij | b792985 | 2014-01-10 15:56:05 +0100 | [diff] [blame] | 43 | }; |
| 44 | |
Linus Walleij | 257417ec | 2016-08-04 16:17:08 +0200 | [diff] [blame] | 45 | 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 Walleij | 4980f9b | 2012-09-06 09:08:24 +0100 | [diff] [blame] | 70 | }; |
| 71 | |
Linus Walleij | e67ae6b | 2012-11-02 01:31:10 +0100 | [diff] [blame] | 72 | syscon { |
Linus Walleij | f2b5419 | 2016-08-10 11:38:12 +0200 | [diff] [blame] | 73 | compatible = "arm,integrator-ap-syscon", "syscon"; |
Linus Walleij | e67ae6b | 2012-11-02 01:31:10 +0100 | [diff] [blame] | 74 | reg = <0x11000000 0x100>; |
Linus Walleij | a672025 | 2013-06-15 23:56:32 +0200 | [diff] [blame] | 75 | interrupt-parent = <&pic>; |
| 76 | /* These are the logical module IRQs */ |
| 77 | interrupts = <9>, <10>, <11>, <12>; |
Linus Walleij | 49eb1ef | 2016-08-22 11:16:57 +0200 | [diff] [blame] | 78 | |
| 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 Walleij | e67ae6b | 2012-11-02 01:31:10 +0100 | [diff] [blame] | 99 | }; |
| 100 | |
Linus Walleij | 4980f9b | 2012-09-06 09:08:24 +0100 | [diff] [blame] | 101 | timer0: timer@13000000 { |
| 102 | compatible = "arm,integrator-timer"; |
Linus Walleij | b792985 | 2014-01-10 15:56:05 +0100 | [diff] [blame] | 103 | clocks = <&xtal24mhz>; |
Linus Walleij | 4980f9b | 2012-09-06 09:08:24 +0100 | [diff] [blame] | 104 | }; |
| 105 | |
| 106 | timer1: timer@13000100 { |
| 107 | compatible = "arm,integrator-timer"; |
Linus Walleij | b792985 | 2014-01-10 15:56:05 +0100 | [diff] [blame] | 108 | clocks = <&xtal24mhz>; |
Linus Walleij | 4980f9b | 2012-09-06 09:08:24 +0100 | [diff] [blame] | 109 | }; |
| 110 | |
| 111 | timer2: timer@13000200 { |
| 112 | compatible = "arm,integrator-timer"; |
Linus Walleij | b792985 | 2014-01-10 15:56:05 +0100 | [diff] [blame] | 113 | clocks = <&xtal24mhz>; |
Linus Walleij | 4980f9b | 2012-09-06 09:08:24 +0100 | [diff] [blame] | 114 | }; |
| 115 | |
| 116 | pic: pic@14000000 { |
| 117 | valid-mask = <0x003fffff>; |
| 118 | }; |
Linus Walleij | 4672cdd | 2012-09-06 09:08:47 +0100 | [diff] [blame] | 119 | |
Linus Walleij | f55b2b5 | 2013-03-01 02:20:55 +0100 | [diff] [blame] | 120 | 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 Walleij | 56ce3ff | 2013-06-26 01:05:38 +0200 | [diff] [blame] | 130 | 0x01000000 0 0x0 /* I/O space */ |
Linus Walleij | f55b2b5 | 2013-03-01 02:20:55 +0100 | [diff] [blame] | 131 | 0x60000000 0 0x00100000 /* 16 MiB @ 60000000 */ |
Linus Walleij | 56ce3ff | 2013-06-26 01:05:38 +0200 | [diff] [blame] | 132 | 0x02000000 0 0x00000000 /* non-prefectable memory */ |
Linus Walleij | f55b2b5 | 2013-03-01 02:20:55 +0100 | [diff] [blame] | 133 | 0x40000000 0 0x10000000 /* 256 MiB @ 40000000 */ |
Linus Walleij | 56ce3ff | 2013-06-26 01:05:38 +0200 | [diff] [blame] | 134 | 0x42000000 0 0x10000000 /* prefetchable memory */ |
Linus Walleij | f55b2b5 | 2013-03-01 02:20:55 +0100 | [diff] [blame] | 135 | 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 Walleij | 4672cdd | 2012-09-06 09:08:47 +0100 | [diff] [blame] | 161 | 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 Walleij | b792985 | 2014-01-10 15:56:05 +0100 | [diff] [blame] | 170 | clocks = <&pclk>; |
| 171 | clock-names = "apb_pclk"; |
Linus Walleij | 4672cdd | 2012-09-06 09:08:47 +0100 | [diff] [blame] | 172 | }; |
| 173 | |
| 174 | uart0: uart@16000000 { |
| 175 | compatible = "arm,pl010", "arm,primecell"; |
| 176 | arm,primecell-periphid = <0x00041010>; |
Linus Walleij | b792985 | 2014-01-10 15:56:05 +0100 | [diff] [blame] | 177 | clocks = <&uartclk>, <&pclk>; |
| 178 | clock-names = "uartclk", "apb_pclk"; |
Linus Walleij | 4672cdd | 2012-09-06 09:08:47 +0100 | [diff] [blame] | 179 | }; |
| 180 | |
| 181 | uart1: uart@17000000 { |
| 182 | compatible = "arm,pl010", "arm,primecell"; |
| 183 | arm,primecell-periphid = <0x00041010>; |
Linus Walleij | b792985 | 2014-01-10 15:56:05 +0100 | [diff] [blame] | 184 | clocks = <&uartclk>, <&pclk>; |
| 185 | clock-names = "uartclk", "apb_pclk"; |
Linus Walleij | 4672cdd | 2012-09-06 09:08:47 +0100 | [diff] [blame] | 186 | }; |
| 187 | |
| 188 | kmi0: kmi@18000000 { |
| 189 | compatible = "arm,pl050", "arm,primecell"; |
| 190 | arm,primecell-periphid = <0x00041050>; |
Linus Walleij | b792985 | 2014-01-10 15:56:05 +0100 | [diff] [blame] | 191 | clocks = <&xtal24mhz>, <&pclk>; |
| 192 | clock-names = "KMIREFCLK", "apb_pclk"; |
Linus Walleij | 4672cdd | 2012-09-06 09:08:47 +0100 | [diff] [blame] | 193 | }; |
| 194 | |
| 195 | kmi1: kmi@19000000 { |
| 196 | compatible = "arm,pl050", "arm,primecell"; |
| 197 | arm,primecell-periphid = <0x00041050>; |
Linus Walleij | b792985 | 2014-01-10 15:56:05 +0100 | [diff] [blame] | 198 | clocks = <&xtal24mhz>, <&pclk>; |
| 199 | clock-names = "KMIREFCLK", "apb_pclk"; |
Linus Walleij | 4672cdd | 2012-09-06 09:08:47 +0100 | [diff] [blame] | 200 | }; |
| 201 | }; |
Linus Walleij | 4980f9b | 2012-09-06 09:08:24 +0100 | [diff] [blame] | 202 | }; |