]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - arch/arm/boot/dts/bcm-cygnus.dtsi
ARM: dts: Move all Cygnus peripherals into axi bus
[karo-tx-linux.git] / arch / arm / boot / dts / bcm-cygnus.dtsi
1 /*
2  *  BSD LICENSE
3  *
4  *  Copyright(c) 2014 Broadcom Corporation.  All rights reserved.
5  *
6  *  Redistribution and use in source and binary forms, with or without
7  *  modification, are permitted provided that the following conditions
8  *  are met:
9  *
10  *    * Redistributions of source code must retain the above copyright
11  *      notice, this list of conditions and the following disclaimer.
12  *    * Redistributions in binary form must reproduce the above copyright
13  *      notice, this list of conditions and the following disclaimer in
14  *      the documentation and/or other materials provided with the
15  *      distribution.
16  *    * Neither the name of Broadcom Corporation nor the names of its
17  *      contributors may be used to endorse or promote products derived
18  *      from this software without specific prior written permission.
19  *
20  *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21  *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22  *  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23  *  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24  *  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25  *  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26  *  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27  *  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28  *  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29  *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  */
32
33 #include <dt-bindings/interrupt-controller/arm-gic.h>
34 #include <dt-bindings/interrupt-controller/irq.h>
35
36 #include "skeleton.dtsi"
37
38 / {
39         compatible = "brcm,cygnus";
40         model = "Broadcom Cygnus SoC";
41         interrupt-parent = <&gic>;
42
43         aliases {
44                 serial0 = &uart3;
45         };
46
47         cpus {
48                 #address-cells = <1>;
49                 #size-cells = <0>;
50
51                 cpu@0 {
52                         device_type = "cpu";
53                         compatible = "arm,cortex-a9";
54                         next-level-cache = <&L2>;
55                         reg = <0x0>;
56                 };
57         };
58
59         /include/ "bcm-cygnus-clock.dtsi"
60
61         core {
62                 compatible = "simple-bus";
63                 ranges = <0x00000000 0x19000000 0x1000000>;
64                 #address-cells = <1>;
65                 #size-cells = <1>;
66
67                 timer@20200 {
68                         compatible = "arm,cortex-a9-global-timer";
69                         reg = <0x20200 0x100>;
70                         interrupts = <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH>;
71                         clocks = <&periph_clk>;
72                 };
73
74                 gic: interrupt-controller@21000 {
75                         compatible = "arm,cortex-a9-gic";
76                         #interrupt-cells = <3>;
77                         #address-cells = <0>;
78                         interrupt-controller;
79                         reg = <0x21000 0x1000>,
80                               <0x20100 0x100>;
81                 };
82
83                 L2: l2-cache {
84                         compatible = "arm,pl310-cache";
85                         reg = <0x22000 0x1000>;
86                         cache-unified;
87                         cache-level = <2>;
88                 };
89         };
90
91         axi {
92                 compatible = "simple-bus";
93                 ranges;
94                 #address-cells = <1>;
95                 #size-cells = <1>;
96
97                 pinctrl: pinctrl@0x0301d0c8 {
98                         compatible = "brcm,cygnus-pinmux";
99                         reg = <0x0301d0c8 0x30>,
100                               <0x0301d24c 0x2c>;
101                 };
102
103                 gpio_crmu: gpio@03024800 {
104                         compatible = "brcm,cygnus-crmu-gpio";
105                         reg = <0x03024800 0x50>,
106                               <0x03024008 0x18>;
107                         #gpio-cells = <2>;
108                         gpio-controller;
109                 };
110
111                 gpio_ccm: gpio@1800a000 {
112                         compatible = "brcm,cygnus-ccm-gpio";
113                         reg = <0x1800a000 0x50>,
114                               <0x0301d164 0x20>;
115                         #gpio-cells = <2>;
116                         gpio-controller;
117                         interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
118                         interrupt-controller;
119                 };
120
121                 gpio_asiu: gpio@180a5000 {
122                         compatible = "brcm,cygnus-asiu-gpio";
123                         reg = <0x180a5000 0x668>;
124                         #gpio-cells = <2>;
125                         gpio-controller;
126
127                         pinmux = <&pinctrl>;
128
129                         interrupt-controller;
130                         interrupts = <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>;
131                 };
132
133                 wdt0: wdt@18009000 {
134                         compatible = "arm,sp805" , "arm,primecell";
135                         reg = <0x18009000 0x1000>;
136                         interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
137                         clocks = <&axi81_clk>;
138                         clock-names = "apb_pclk";
139                 };
140
141                 i2c0: i2c@18008000 {
142                         compatible = "brcm,cygnus-iproc-i2c", "brcm,iproc-i2c";
143                         reg = <0x18008000 0x100>;
144                         #address-cells = <1>;
145                         #size-cells = <0>;
146                         interrupts = <GIC_SPI 85 IRQ_TYPE_NONE>;
147                         clock-frequency = <100000>;
148                         status = "disabled";
149                 };
150
151                 i2c1: i2c@1800b000 {
152                         compatible = "brcm,cygnus-iproc-i2c", "brcm,iproc-i2c";
153                         reg = <0x1800b000 0x100>;
154                         #address-cells = <1>;
155                         #size-cells = <0>;
156                         interrupts = <GIC_SPI 86 IRQ_TYPE_NONE>;
157                         clock-frequency = <100000>;
158                         status = "disabled";
159                 };
160
161                 pcie0: pcie@18012000 {
162                         compatible = "brcm,iproc-pcie";
163                         reg = <0x18012000 0x1000>;
164
165                         #interrupt-cells = <1>;
166                         interrupt-map-mask = <0 0 0 0>;
167                         interrupt-map = <0 0 0 0 &gic GIC_SPI 100 IRQ_TYPE_NONE>;
168
169                         linux,pci-domain = <0>;
170
171                         bus-range = <0x00 0xff>;
172
173                         #address-cells = <3>;
174                         #size-cells = <2>;
175                         device_type = "pci";
176                         ranges = <0x81000000 0 0          0x28000000 0 0x00010000
177                                   0x82000000 0 0x20000000 0x20000000 0 0x04000000>;
178
179                         status = "disabled";
180                 };
181
182                 pcie1: pcie@18013000 {
183                         compatible = "brcm,iproc-pcie";
184                         reg = <0x18013000 0x1000>;
185
186                         #interrupt-cells = <1>;
187                         interrupt-map-mask = <0 0 0 0>;
188                         interrupt-map = <0 0 0 0 &gic GIC_SPI 106 IRQ_TYPE_NONE>;
189
190                         linux,pci-domain = <1>;
191
192                         bus-range = <0x00 0xff>;
193
194                         #address-cells = <3>;
195                         #size-cells = <2>;
196                         device_type = "pci";
197                         ranges = <0x81000000 0 0          0x48000000 0 0x00010000
198                                   0x82000000 0 0x40000000 0x40000000 0 0x04000000>;
199
200                         status = "disabled";
201                 };
202
203                 uart0: serial@18020000 {
204                         compatible = "snps,dw-apb-uart";
205                         reg = <0x18020000 0x100>;
206                         reg-shift = <2>;
207                         reg-io-width = <4>;
208                         interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
209                         clocks = <&axi81_clk>;
210                         clock-frequency = <100000000>;
211                         status = "disabled";
212                 };
213
214                 uart1: serial@18021000 {
215                         compatible = "snps,dw-apb-uart";
216                         reg = <0x18021000 0x100>;
217                         reg-shift = <2>;
218                         reg-io-width = <4>;
219                         interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
220                         clocks = <&axi81_clk>;
221                         clock-frequency = <100000000>;
222                         status = "disabled";
223                 };
224
225                 uart2: serial@18022000 {
226                         compatible = "snps,dw-apb-uart";
227                         reg = <0x18020000 0x100>;
228                         reg-shift = <2>;
229                         reg-io-width = <4>;
230                         interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
231                         clocks = <&axi81_clk>;
232                         clock-frequency = <100000000>;
233                         status = "disabled";
234                 };
235
236                 uart3: serial@18023000 {
237                         compatible = "snps,dw-apb-uart";
238                         reg = <0x18023000 0x100>;
239                         reg-shift = <2>;
240                         reg-io-width = <4>;
241                         interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>;
242                         clocks = <&axi81_clk>;
243                         clock-frequency = <100000000>;
244                         status = "disabled";
245                 };
246
247                 nand: nand@18046000 {
248                         compatible = "brcm,nand-iproc", "brcm,brcmnand-v6.1",
249                                      "brcm,brcmnand";
250                         reg = <0x18046000 0x600>, <0xf8105408 0x600>,
251                               <0x18046f00 0x20>;
252                         reg-names = "nand", "iproc-idm", "iproc-ext";
253                         interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
254
255                         #address-cells = <1>;
256                         #size-cells = <0>;
257
258                         brcm,nand-has-wp;
259                 };
260         };
261 };