blob: b10e6351da53f229a93488b34b832ea928531875 [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";
11
12 aliases {
13 arm,timer-primary = &timer2;
14 arm,timer-secondary = &timer1;
15 };
16
17 chosen {
18 bootargs = "root=/dev/ram0 console=ttyAM0,38400n8 earlyprintk";
19 };
20
Linus Walleijb7929852014-01-10 15:56:05 +010021 /* 24 MHz chrystal on the core module */
22 xtal24mhz: xtal24mhz@24M {
23 #clock-cells = <0>;
24 compatible = "fixed-clock";
25 clock-frequency = <24000000>;
26 };
27
28 pclk: pclk@0 {
29 #clock-cells = <0>;
30 compatible = "fixed-factor-clock";
31 clock-div = <1>;
32 clock-mult = <1>;
33 clocks = <&xtal24mhz>;
34 };
35
36 /* The UART clock is 14.74 MHz divided by an ICS525 */
37 uartclk: uartclk@14.74M {
38 #clock-cells = <0>;
39 compatible = "fixed-clock";
40 clock-frequency = <14745600>;
41 };
42
Linus Walleije67ae6b2012-11-02 01:31:10 +010043 syscon {
Linus Walleijdf366802013-10-10 18:24:58 +020044 compatible = "arm,integrator-ap-syscon";
Linus Walleije67ae6b2012-11-02 01:31:10 +010045 reg = <0x11000000 0x100>;
Linus Walleija6720252013-06-15 23:56:32 +020046 interrupt-parent = <&pic>;
47 /* These are the logical module IRQs */
48 interrupts = <9>, <10>, <11>, <12>;
Linus Walleije67ae6b2012-11-02 01:31:10 +010049 };
50
Linus Walleij4980f9b2012-09-06 09:08:24 +010051 timer0: timer@13000000 {
52 compatible = "arm,integrator-timer";
Linus Walleijb7929852014-01-10 15:56:05 +010053 clocks = <&xtal24mhz>;
Linus Walleij4980f9b2012-09-06 09:08:24 +010054 };
55
56 timer1: timer@13000100 {
57 compatible = "arm,integrator-timer";
Linus Walleijb7929852014-01-10 15:56:05 +010058 clocks = <&xtal24mhz>;
Linus Walleij4980f9b2012-09-06 09:08:24 +010059 };
60
61 timer2: timer@13000200 {
62 compatible = "arm,integrator-timer";
Linus Walleijb7929852014-01-10 15:56:05 +010063 clocks = <&xtal24mhz>;
Linus Walleij4980f9b2012-09-06 09:08:24 +010064 };
65
66 pic: pic@14000000 {
67 valid-mask = <0x003fffff>;
68 };
Linus Walleij4672cdd2012-09-06 09:08:47 +010069
Linus Walleijf55b2b52013-03-01 02:20:55 +010070 pci: pciv3@62000000 {
71 compatible = "v3,v360epc-pci";
72 #interrupt-cells = <1>;
73 #size-cells = <2>;
74 #address-cells = <3>;
75 reg = <0x62000000 0x10000>;
76 interrupt-parent = <&pic>;
77 interrupts = <17>; /* Bus error IRQ */
78 ranges = <0x00000000 0 0x61000000 /* config space */
79 0x61000000 0 0x00100000 /* 16 MiB @ 61000000 */
Linus Walleij56ce3ff2013-06-26 01:05:38 +020080 0x01000000 0 0x0 /* I/O space */
Linus Walleijf55b2b52013-03-01 02:20:55 +010081 0x60000000 0 0x00100000 /* 16 MiB @ 60000000 */
Linus Walleij56ce3ff2013-06-26 01:05:38 +020082 0x02000000 0 0x00000000 /* non-prefectable memory */
Linus Walleijf55b2b52013-03-01 02:20:55 +010083 0x40000000 0 0x10000000 /* 256 MiB @ 40000000 */
Linus Walleij56ce3ff2013-06-26 01:05:38 +020084 0x42000000 0 0x10000000 /* prefetchable memory */
Linus Walleijf55b2b52013-03-01 02:20:55 +010085 0x50000000 0 0x10000000>; /* 256 MiB @ 50000000 */
86 interrupt-map-mask = <0xf800 0 0 0x7>;
87 interrupt-map = <
88 /* IDSEL 9 */
89 0x4800 0 0 1 &pic 13 /* INT A on slot 9 is irq 13 */
90 0x4800 0 0 2 &pic 14 /* INT B on slot 9 is irq 14 */
91 0x4800 0 0 3 &pic 15 /* INT C on slot 9 is irq 15 */
92 0x4800 0 0 4 &pic 16 /* INT D on slot 9 is irq 16 */
93 /* IDSEL 10 */
94 0x5000 0 0 1 &pic 14 /* INT A on slot 10 is irq 14 */
95 0x5000 0 0 2 &pic 15 /* INT B on slot 10 is irq 15 */
96 0x5000 0 0 3 &pic 16 /* INT C on slot 10 is irq 16 */
97 0x5000 0 0 4 &pic 13 /* INT D on slot 10 is irq 13 */
98 /* IDSEL 11 */
99 0x5800 0 0 1 &pic 15 /* INT A on slot 11 is irq 15 */
100 0x5800 0 0 2 &pic 16 /* INT B on slot 11 is irq 16 */
101 0x5800 0 0 3 &pic 13 /* INT C on slot 11 is irq 13 */
102 0x5800 0 0 4 &pic 14 /* INT D on slot 11 is irq 14 */
103 /* IDSEL 12 */
104 0x6000 0 0 1 &pic 16 /* INT A on slot 12 is irq 16 */
105 0x6000 0 0 2 &pic 13 /* INT B on slot 12 is irq 13 */
106 0x6000 0 0 3 &pic 14 /* INT C on slot 12 is irq 14 */
107 0x6000 0 0 4 &pic 15 /* INT D on slot 12 is irq 15 */
108 >;
109 };
110
Linus Walleij4672cdd2012-09-06 09:08:47 +0100111 fpga {
112 /*
113 * The Integator/AP predates the idea to have magic numbers
114 * identifying the PrimeCell in hardware, thus we have to
115 * supply these from the device tree.
116 */
117 rtc: rtc@15000000 {
118 compatible = "arm,pl030", "arm,primecell";
119 arm,primecell-periphid = <0x00041030>;
Linus Walleijb7929852014-01-10 15:56:05 +0100120 clocks = <&pclk>;
121 clock-names = "apb_pclk";
Linus Walleij4672cdd2012-09-06 09:08:47 +0100122 };
123
124 uart0: uart@16000000 {
125 compatible = "arm,pl010", "arm,primecell";
126 arm,primecell-periphid = <0x00041010>;
Linus Walleijb7929852014-01-10 15:56:05 +0100127 clocks = <&uartclk>, <&pclk>;
128 clock-names = "uartclk", "apb_pclk";
Linus Walleij4672cdd2012-09-06 09:08:47 +0100129 };
130
131 uart1: uart@17000000 {
132 compatible = "arm,pl010", "arm,primecell";
133 arm,primecell-periphid = <0x00041010>;
Linus Walleijb7929852014-01-10 15:56:05 +0100134 clocks = <&uartclk>, <&pclk>;
135 clock-names = "uartclk", "apb_pclk";
Linus Walleij4672cdd2012-09-06 09:08:47 +0100136 };
137
138 kmi0: kmi@18000000 {
139 compatible = "arm,pl050", "arm,primecell";
140 arm,primecell-periphid = <0x00041050>;
Linus Walleijb7929852014-01-10 15:56:05 +0100141 clocks = <&xtal24mhz>, <&pclk>;
142 clock-names = "KMIREFCLK", "apb_pclk";
Linus Walleij4672cdd2012-09-06 09:08:47 +0100143 };
144
145 kmi1: kmi@19000000 {
146 compatible = "arm,pl050", "arm,primecell";
147 arm,primecell-periphid = <0x00041050>;
Linus Walleijb7929852014-01-10 15:56:05 +0100148 clocks = <&xtal24mhz>, <&pclk>;
149 clock-names = "KMIREFCLK", "apb_pclk";
Linus Walleij4672cdd2012-09-06 09:08:47 +0100150 };
151 };
Linus Walleij4980f9b2012-09-06 09:08:24 +0100152};