Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid
[cascardo/linux.git] / arch / arm / boot / dts / artpec6.dtsi
1 /*
2  * Device Tree Source for the Axis ARTPEC-6 SoC
3  *
4  * This file is dual-licensed: you can use it either under the terms
5  * of the GPL or the X11 license, at your option. Note that this dual
6  * licensing only applies to this file, and not this project as a
7  * whole.
8  *
9  *  a) This file is free software; you can redistribute it and/or
10  *     modify it under the terms of the GNU General Public License as
11  *     published by the Free Software Foundation; either version 2 of the
12  *     License, or (at your option) any later version.
13  *
14  *     This file is distributed in the hope that it will be useful,
15  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
16  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  *     GNU General Public License for more details.
18  *
19  * Or, alternatively,
20  *
21  *  b) Permission is hereby granted, free of charge, to any person
22  *     obtaining a copy of this software and associated documentation
23  *     files (the "Software"), to deal in the Software without
24  *     restriction, including without limitation the rights to use,
25  *     copy, modify, merge, publish, distribute, sublicense, and/or
26  *     sell copies of the Software, and to permit persons to whom the
27  *     Software is furnished to do so, subject to the following
28  *     conditions:
29  *
30  *     The above copyright notice and this permission notice shall be
31  *     included in all copies or substantial portions of the Software.
32  *
33  *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34  *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35  *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36  *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37  *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38  *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39  *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40  *     OTHER DEALINGS IN THE SOFTWARE.
41  */
42
43 #include <dt-bindings/interrupt-controller/arm-gic.h>
44 #include <dt-bindings/clock/axis,artpec6-clkctrl.h>
45 #include "skeleton.dtsi"
46
47 / {
48         compatible = "axis,artpec6";
49         interrupt-parent = <&intc>;
50
51         cpus {
52                 #address-cells = <1>;
53                 #size-cells = <0>;
54
55                 cpu0: cpu@0 {
56                         device_type = "cpu";
57                         compatible = "arm,cortex-a9";
58                         reg = <0>;
59                         next-level-cache = <&pl310>;
60                 };
61
62                 cpu1: cpu@1 {
63                         device_type = "cpu";
64                         compatible = "arm,cortex-a9";
65                         reg = <1>;
66                         next-level-cache = <&pl310>;
67                 };
68         };
69
70         syscon {
71                 compatible = "axis,artpec6-syscon", "syscon";
72                 reg = <0xf8000000 0x48>;
73         };
74
75         psci {
76                 compatible = "arm,psci-0.2", "arm,psci";
77                 method = "smc";
78                 psci_version = <0x84000000>;
79                 cpu_on = <0x84000003>;
80                 system_reset = <0x84000009>;
81         };
82
83         scu@faf00000 {
84                 compatible = "arm,cortex-a9-scu";
85                 reg = <0xfaf00000 0x58>;
86         };
87
88         /* Main external clock driving CPU and peripherals */
89         ext_clk: ext_clk {
90                 #clock-cells = <0>;
91                 compatible = "fixed-clock";
92                 clock-frequency = <50000000>;
93         };
94
95         eth_phy_ref_clk: eth_phy_ref_clk {
96                 #clock-cells = <0>;
97                 compatible = "fixed-clock";
98                 clock-frequency = <125000000>;
99         };
100
101         clkctrl: clkctrl@0xf8000000 {
102                 #clock-cells = <1>;
103                 compatible = "axis,artpec6-clkctrl";
104                 reg = <0xf8000000 0x48>;
105                 clocks = <&ext_clk>;
106                 clock-names = "sys_refclk";
107         };
108
109         gtimer@faf00200 {
110                 compatible = "arm,cortex-a9-global-timer";
111                 reg = <0xfaf00200 0x20>;
112                 interrupts = <GIC_PPI 11 0xf01>;
113                 clocks = <&clkctrl ARTPEC6_CLK_CPU_PERIPH>;
114         };
115
116         timer@faf00600 {
117                 compatible = "arm,cortex-a9-twd-timer";
118                 reg = <0xfaf00600 0x20>;
119                 interrupts = <GIC_PPI 13 0xf04>;
120                 clocks = <&clkctrl ARTPEC6_CLK_CPU_PERIPH>;
121                 status = "disabled";
122         };
123
124         intc: interrupt-controller@faf01000 {
125                 interrupt-controller;
126                 compatible = "arm,cortex-a9-gic";
127                 #interrupt-cells = <3>;
128                 reg = < 0xfaf01000 0x1000 >, < 0xfaf00100 0x0100 >;
129         };
130
131         pl310: cache-controller@faf10000 {
132                 compatible = "arm,pl310-cache";
133                 cache-unified;
134                 cache-level = <2>;
135                 reg = <0xfaf10000 0x1000>;
136                 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
137                 arm,data-latency = <1 1 1>;
138                 arm,tag-latency = <1 1 1>;
139                 arm,filter-ranges = <0x0 0x80000000>;
140                 arm,double-linefill = <1>;
141                 arm,double-linefill-incr = <0>;
142                 arm,double-linefill-wrap = <0>;
143                 prefetch-data = <1>;
144                 prefetch-instr = <1>;
145                 arm,prefetch-offset = <0>;
146                 arm,prefetch-drop = <1>;
147         };
148
149         pmu {
150                 compatible = "arm,cortex-a9-pmu";
151                 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
152                         <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
153                 interrupt-affinity = <&cpu0>, <&cpu1>;
154                 interrupt-parent = <&intc>;
155         };
156
157         amba@0 {
158                 compatible = "simple-bus";
159                 #address-cells = <0x1>;
160                 #size-cells = <0x1>;
161                 interrupt-parent = <&intc>;
162                 ranges;
163                 dma-ranges = <0x80000000 0x00000000 0x40000000>;
164                 dma-coherent;
165
166                 ethernet: ethernet@f8010000 {
167                         clock-names = "phy_ref_clk", "apb_pclk";
168                         clocks = <&eth_phy_ref_clk>,
169                                 <&clkctrl ARTPEC6_CLK_ETH_ACLK>;
170                         compatible = "snps,dwc-qos-ethernet-4.10";
171                         interrupt-parent = <&intc>;
172                         interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
173                         reg = <0xf8010000 0x4000>;
174
175                         snps,write-requests = <2>;
176                         snps,read-requests = <16>;
177                         snps,txpbl = <8>;
178                         snps,rxpbl = <2>;
179
180                         status = "disabled";
181                 };
182
183                 uart0: serial@f8036000 {
184                         compatible = "arm,pl011", "arm,primecell";
185                         reg = <0xf8036000 0x1000>;
186                         interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
187                         clocks = <&clkctrl ARTPEC6_CLK_UART_REFCLK>,
188                                 <&clkctrl ARTPEC6_CLK_UART_PCLK>;
189                         clock-names = "uart_clk", "apb_pclk";
190                         status = "disabled";
191                 };
192                 uart1: serial@f8037000 {
193                         compatible = "arm,pl011", "arm,primecell";
194                         reg = <0xf8037000 0x1000>;
195                         interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>;
196                         clocks = <&clkctrl ARTPEC6_CLK_UART_REFCLK>,
197                                 <&clkctrl ARTPEC6_CLK_UART_PCLK>;
198                         clock-names = "uart_clk", "apb_pclk";
199                         status = "disabled";
200                 };
201                 uart2: serial@f8038000 {
202                         compatible = "arm,pl011", "arm,primecell";
203                         reg = <0xf8038000 0x1000>;
204                         interrupts = <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
205                         clocks = <&clkctrl ARTPEC6_CLK_UART_REFCLK>,
206                                 <&clkctrl ARTPEC6_CLK_UART_PCLK>;
207                         clock-names = "uart_clk", "apb_pclk";
208                         status = "disabled";
209                 };
210                 uart3: serial@f8039000 {
211                         compatible = "arm,pl011", "arm,primecell";
212                         reg = <0xf8039000 0x1000>;
213                         interrupts = <GIC_SPI 129 IRQ_TYPE_LEVEL_HIGH>;
214                         clocks = <&clkctrl ARTPEC6_CLK_UART_REFCLK>,
215                                 <&clkctrl ARTPEC6_CLK_UART_PCLK>;
216                         clock-names = "uart_clk", "apb_pclk";
217                         status = "disabled";
218                 };
219         };
220 };