]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blob - arch/arm64/boot/dts/zte/zx296718.dtsi
Merge tag 'armsoc-dt64' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
[mirror_ubuntu-zesty-kernel.git] / arch / arm64 / boot / dts / zte / zx296718.dtsi
1 /*
2 * Copyright 2016 ZTE Corporation.
3 * Copyright 2016 Linaro Ltd.
4 *
5 * This file is dual-licensed: you can use it either under the terms
6 * of the GPL or the X11 license, at your option. Note that this dual
7 * licensing only applies to this file, and not this project as a
8 * whole.
9 *
10 * a) This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License as
12 * published by the Free Software Foundation; either version 2 of the
13 * License, or (at your option) any later version.
14 *
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * Or, alternatively,
21 *
22 * b) Permission is hereby granted, free of charge, to any person
23 * obtaining a copy of this software and associated documentation
24 * files (the "Software"), to deal in the Software without
25 * restriction, including without limitation the rights to use,
26 * copy, modify, merge, publish, distribute, sublicense, and/or
27 * sell copies of the Software, and to permit persons to whom the
28 * Software is furnished to do so, subject to the following
29 * conditions:
30 *
31 * The above copyright notice and this permission notice shall be
32 * included in all copies or substantial portions of the Software.
33 *
34 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
35 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
36 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
37 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
38 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
39 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
40 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
41 * OTHER DEALINGS IN THE SOFTWARE.
42 */
43
44 #include <dt-bindings/input/input.h>
45 #include <dt-bindings/interrupt-controller/arm-gic.h>
46 #include <dt-bindings/gpio/gpio.h>
47
48 / {
49 compatible = "zte,zx296718";
50 #address-cells = <1>;
51 #size-cells = <1>;
52 interrupt-parent = <&gic>;
53
54 aliases {
55 serial0 = &uart0;
56 };
57
58 cpus {
59 #address-cells = <2>;
60 #size-cells = <0>;
61
62 cpu-map {
63 cluster0 {
64 core0 {
65 cpu = <&cpu0>;
66 };
67 core1 {
68 cpu = <&cpu1>;
69 };
70 core2 {
71 cpu = <&cpu2>;
72 };
73 core3 {
74 cpu = <&cpu3>;
75 };
76 };
77 };
78
79 cpu0: cpu@0 {
80 device_type = "cpu";
81 compatible = "arm,cortex-a53","arm,armv8";
82 reg = <0x0 0x0>;
83 enable-method = "psci";
84 };
85
86 cpu1: cpu@1 {
87 device_type = "cpu";
88 compatible = "arm,cortex-a53","arm,armv8";
89 reg = <0x0 0x1>;
90 enable-method = "psci";
91 };
92
93 cpu2: cpu@2 {
94 device_type = "cpu";
95 compatible = "arm,cortex-a53","arm,armv8";
96 reg = <0x0 0x2>;
97 enable-method = "psci";
98 };
99
100 cpu3: cpu@3 {
101 device_type = "cpu";
102 compatible = "arm,cortex-a53","arm,armv8";
103 reg = <0x0 0x3>;
104 enable-method = "psci";
105 };
106 };
107
108 clk24k: clk-24k {
109 compatible = "fixed-clock";
110 #clock-cells = <0>;
111 clock-frequency = <24000>;
112 clock-output-names = "rtcclk";
113 };
114
115 osc32k: clk-osc32k {
116 compatible = "fixed-clock";
117 #clock-cells = <0>;
118 clock-frequency = <32000>;
119 clock-output-names = "osc32k";
120 };
121
122 osc12m: clk-osc12m {
123 compatible = "fixed-clock";
124 #clock-cells = <0>;
125 clock-frequency = <12000000>;
126 clock-output-names = "osc12m";
127 };
128
129 osc24m: clk-osc24m {
130 compatible = "fixed-clock";
131 #clock-cells = <0>;
132 clock-frequency = <24000000>;
133 clock-output-names = "osc24m";
134 };
135
136 osc25m: clk-osc25m {
137 compatible = "fixed-clock";
138 #clock-cells = <0>;
139 clock-frequency = <25000000>;
140 clock-output-names = "osc25m";
141 };
142
143 osc60m: clk-osc60m {
144 compatible = "fixed-clock";
145 #clock-cells = <0>;
146 clock-frequency = <60000000>;
147 clock-output-names = "osc60m";
148 };
149
150 osc99m: clk-osc99m {
151 compatible = "fixed-clock";
152 #clock-cells = <0>;
153 clock-frequency = <99000000>;
154 clock-output-names = "osc99m";
155 };
156
157 osc125m: clk-osc125m {
158 compatible = "fixed-clock";
159 #clock-cells = <0>;
160 clock-frequency = <125000000>;
161 clock-output-names = "osc125m";
162 };
163
164 osc198m: clk-osc198m {
165 compatible = "fixed-clock";
166 #clock-cells = <0>;
167 clock-frequency = <198000000>;
168 clock-output-names = "osc198m";
169 };
170
171 pll_audio: clk-pll-884m {
172 compatible = "fixed-clock";
173 #clock-cells = <0>;
174 clock-frequency = <884000000>;
175 clock-output-names = "pll_audio";
176 };
177
178 pll_ddr: clk-pll-932m {
179 compatible = "fixed-clock";
180 #clock-cells = <0>;
181 clock-frequency = <932000000>;
182 clock-output-names = "pll_ddr";
183 };
184
185 pll_hsic: clk-pll-960m {
186 compatible = "fixed-clock";
187 #clock-cells = <0>;
188 clock-frequency = <960000000>;
189 clock-output-names = "pll_hsic";
190 };
191
192 pll_mac: clk-pll-1000m {
193 compatible = "fixed-clock";
194 #clock-cells = <0>;
195 clock-frequency = <1000000000>;
196 clock-output-names = "pll_mac";
197 };
198
199 pll_vga: clk-pll-1073m {
200 compatible = "fixed-clock";
201 #clock-cells = <0>;
202 clock-frequency = <1073000000>;
203 clock-output-names = "pll_vga";
204 };
205
206 pll_mm0: clk-pll-1188m {
207 compatible = "fixed-clock";
208 #clock-cells = <0>;
209 clock-frequency = <1188000000>;
210 clock-output-names = "pll_mm0";
211 };
212
213 pll_mm1: clk-pll-1296m {
214 compatible = "fixed-clock";
215 #clock-cells = <0>;
216 clock-frequency = <1296000000>;
217 clock-output-names = "pll_mm1";
218 };
219
220 psci {
221 compatible = "arm,psci-1.0";
222 method = "smc";
223 };
224
225 timer {
226 compatible = "arm,armv8-timer";
227 interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>,
228 <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>,
229 <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>,
230 <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>;
231 };
232
233 pmu {
234 compatible = "arm,cortex-a53-pmu";
235 interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_HIGH>;
236 };
237
238 gic: interrupt-controller@2a00000 {
239 compatible = "arm,gic-v3";
240 #interrupt-cells = <3>;
241 #address-cells = <0>;
242 interrupt-controller;
243 reg = <0x02a00000 0x10000>,
244 <0x02b00000 0xc0000>;
245 interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
246 };
247
248 soc {
249 #address-cells = <1>;
250 #size-cells = <1>;
251 compatible = "simple-bus";
252 ranges;
253
254 aon_sysctrl: aon-sysctrl@116000 {
255 compatible = "zte,zx296718-aon-sysctrl", "syscon";
256 reg = <0x116000 0x1000>;
257 };
258
259 uart0: uart@11f000 {
260 compatible = "arm,pl011", "arm,primecell";
261 arm,primecell-periphid = <0x001feffe>;
262 reg = <0x11f000 0x1000>;
263 interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;
264 clocks = <&osc24m>;
265 clock-names = "apb_pclk";
266 status = "disabled";
267 };
268
269 dma: dma-controller@1460000 {
270 compatible = "zte,zx296702-dma";
271 reg = <0x01460000 0x1000>;
272 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
273 clocks = <&osc24m>;
274 clock-names = "dmaclk";
275 #dma-cells = <1>;
276 dma-channels = <32>;
277 dma-requests = <32>;
278 };
279
280 lsp0crm: clock-controller@1420000 {
281 compatible = "zte,zx296718-lsp0crm";
282 reg = <0x01420000 0x1000>;
283 #clock-cells = <1>;
284 };
285
286 lsp1crm: clock-controller@1430000 {
287 compatible = "zte,zx296718-lsp1crm";
288 reg = <0x01430000 0x1000>;
289 #clock-cells = <1>;
290 };
291
292 topcrm: clock-controller@1461000 {
293 compatible = "zte,zx296718-topcrm";
294 reg = <0x01461000 0x1000>;
295 #clock-cells = <1>;
296 };
297
298 sysctrl: sysctrl@1463000 {
299 compatible = "zte,zx296718-sysctrl", "syscon";
300 reg = <0x1463000 0x1000>;
301 };
302
303 audiocrm: clock-controller@1480000 {
304 compatible = "zte,zx296718-audiocrm";
305 reg = <0x01480000 0x1000>;
306 #clock-cells = <1>;
307 };
308 };
309 };