ls1021a.dtsi revision 279377
1279377Simp/*
2279377Simp * Copyright 2013-2014 Freescale Semiconductor, Inc.
3279377Simp *
4279377Simp * This file is dual-licensed: you can use it either under the terms
5279377Simp * of the GPL or the X11 license, at your option. Note that this dual
6279377Simp * licensing only applies to this file, and not this project as a
7279377Simp * whole.
8279377Simp *
9279377Simp *  a) This file is free software; you can redistribute it and/or
10279377Simp *     modify it under the terms of the GNU General Public License as
11279377Simp *     published by the Free Software Foundation; either version 2 of
12279377Simp *     the License, or (at your option) any later version.
13279377Simp *
14279377Simp *     This file is distributed in the hope that it will be useful,
15279377Simp *     but WITHOUT ANY WARRANTY; without even the implied warranty of
16279377Simp *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17279377Simp *     GNU General Public License for more details.
18279377Simp *
19279377Simp *     You should have received a copy of the GNU General Public
20279377Simp *     License along with this file; if not, write to the Free
21279377Simp *     Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
22279377Simp *     MA 02110-1301 USA
23279377Simp *
24279377Simp * Or, alternatively,
25279377Simp *
26279377Simp *  b) Permission is hereby granted, free of charge, to any person
27279377Simp *     obtaining a copy of this software and associated documentation
28279377Simp *     files (the "Software"), to deal in the Software without
29279377Simp *     restriction, including without limitation the rights to use,
30279377Simp *     copy, modify, merge, publish, distribute, sublicense, and/or
31279377Simp *     sell copies of the Software, and to permit persons to whom the
32279377Simp *     Software is furnished to do so, subject to the following
33279377Simp *     conditions:
34279377Simp *
35279377Simp *     The above copyright notice and this permission notice shall be
36279377Simp *     included in all copies or substantial portions of the Software.
37279377Simp *
38279377Simp *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
39279377Simp *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
40279377Simp *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
41279377Simp *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
42279377Simp *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
43279377Simp *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
44279377Simp *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
45279377Simp *     OTHER DEALINGS IN THE SOFTWARE.
46279377Simp */
47279377Simp
48279377Simp#include "skeleton64.dtsi"
49279377Simp#include <dt-bindings/interrupt-controller/arm-gic.h>
50279377Simp
51279377Simp/ {
52279377Simp	compatible = "fsl,ls1021a";
53279377Simp	interrupt-parent = <&gic>;
54279377Simp
55279377Simp	aliases {
56279377Simp		serial0 = &lpuart0;
57279377Simp		serial1 = &lpuart1;
58279377Simp		serial2 = &lpuart2;
59279377Simp		serial3 = &lpuart3;
60279377Simp		serial4 = &lpuart4;
61279377Simp		serial5 = &lpuart5;
62279377Simp		sysclk = &sysclk;
63279377Simp	};
64279377Simp
65279377Simp	cpus {
66279377Simp		#address-cells = <1>;
67279377Simp		#size-cells = <0>;
68279377Simp
69279377Simp		cpu@f00 {
70279377Simp			compatible = "arm,cortex-a7";
71279377Simp			device_type = "cpu";
72279377Simp			reg = <0xf00>;
73279377Simp			clocks = <&cluster1_clk>;
74279377Simp		};
75279377Simp
76279377Simp		cpu@f01 {
77279377Simp			compatible = "arm,cortex-a7";
78279377Simp			device_type = "cpu";
79279377Simp			reg = <0xf01>;
80279377Simp			clocks = <&cluster1_clk>;
81279377Simp		};
82279377Simp	};
83279377Simp
84279377Simp	timer {
85279377Simp		compatible = "arm,armv7-timer";
86279377Simp		interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
87279377Simp			     <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
88279377Simp			     <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
89279377Simp			     <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>;
90279377Simp	};
91279377Simp
92279377Simp	pmu {
93279377Simp		compatible = "arm,cortex-a7-pmu";
94279377Simp		interrupts = <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>,
95279377Simp			     <GIC_SPI 139 IRQ_TYPE_LEVEL_HIGH>;
96279377Simp	};
97279377Simp
98279377Simp	soc {
99279377Simp		compatible = "simple-bus";
100279377Simp		#address-cells = <2>;
101279377Simp		#size-cells = <2>;
102279377Simp		device_type = "soc";
103279377Simp		interrupt-parent = <&gic>;
104279377Simp		ranges;
105279377Simp
106279377Simp		gic: interrupt-controller@1400000 {
107279377Simp			compatible = "arm,cortex-a7-gic";
108279377Simp			#interrupt-cells = <3>;
109279377Simp			interrupt-controller;
110279377Simp			reg = <0x0 0x1401000 0x0 0x1000>,
111279377Simp			      <0x0 0x1402000 0x0 0x1000>,
112279377Simp			      <0x0 0x1404000 0x0 0x2000>,
113279377Simp			      <0x0 0x1406000 0x0 0x2000>;
114279377Simp			interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_HIGH)>;
115279377Simp
116279377Simp		};
117279377Simp
118279377Simp		ifc: ifc@1530000 {
119279377Simp			compatible = "fsl,ifc", "simple-bus";
120279377Simp			reg = <0x0 0x1530000 0x0 0x10000>;
121279377Simp			interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
122279377Simp		};
123279377Simp
124279377Simp		dcfg: dcfg@1ee0000 {
125279377Simp			compatible = "fsl,ls1021a-dcfg", "syscon";
126279377Simp			reg = <0x0 0x1ee0000 0x0 0x10000>;
127279377Simp			big-endian;
128279377Simp		};
129279377Simp
130279377Simp		esdhc: esdhc@1560000 {
131279377Simp			compatible = "fsl,esdhc";
132279377Simp			reg = <0x0 0x1560000 0x0 0x10000>;
133279377Simp			interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>;
134279377Simp			clock-frequency = <0>;
135279377Simp			voltage-ranges = <1800 1800 3300 3300>;
136279377Simp			sdhci,auto-cmd12;
137279377Simp			big-endian;
138279377Simp			bus-width = <4>;
139279377Simp			status = "disabled";
140279377Simp		};
141279377Simp
142279377Simp		scfg: scfg@1570000 {
143279377Simp			compatible = "fsl,ls1021a-scfg", "syscon";
144279377Simp			reg = <0x0 0x1570000 0x0 0x10000>;
145279377Simp			big-endian;
146279377Simp		};
147279377Simp
148279377Simp		clockgen: clocking@1ee1000 {
149279377Simp			#address-cells = <1>;
150279377Simp			#size-cells = <1>;
151279377Simp			ranges = <0x0 0x0 0x1ee1000 0x10000>;
152279377Simp
153279377Simp			sysclk: sysclk {
154279377Simp				compatible = "fixed-clock";
155279377Simp				#clock-cells = <0>;
156279377Simp				clock-output-names = "sysclk";
157279377Simp			};
158279377Simp
159279377Simp			cga_pll1: pll@800 {
160279377Simp				compatible = "fsl,qoriq-core-pll-2.0";
161279377Simp				#clock-cells = <1>;
162279377Simp				reg = <0x800 0x10>;
163279377Simp				clocks = <&sysclk>;
164279377Simp				clock-output-names = "cga-pll1", "cga-pll1-div2",
165279377Simp						     "cga-pll1-div4";
166279377Simp			};
167279377Simp
168279377Simp			platform_clk: pll@c00 {
169279377Simp				compatible = "fsl,qoriq-core-pll-2.0";
170279377Simp				#clock-cells = <1>;
171279377Simp				reg = <0xc00 0x10>;
172279377Simp				clocks = <&sysclk>;
173279377Simp				clock-output-names = "platform-clk", "platform-clk-div2";
174279377Simp			};
175279377Simp
176279377Simp			cluster1_clk: clk0c0@0 {
177279377Simp				compatible = "fsl,qoriq-core-mux-2.0";
178279377Simp				#clock-cells = <0>;
179279377Simp				reg = <0x0 0x10>;
180279377Simp				clock-names = "pll1cga", "pll1cga-div2", "pll1cga-div4";
181279377Simp				clocks = <&cga_pll1 0>, <&cga_pll1 1>, <&cga_pll1 2>;
182279377Simp				clock-output-names = "cluster1-clk";
183279377Simp			};
184279377Simp		};
185279377Simp
186279377Simp		dspi0: dspi@2100000 {
187279377Simp			compatible = "fsl,vf610-dspi";
188279377Simp			#address-cells = <1>;
189279377Simp			#size-cells = <0>;
190279377Simp			reg = <0x0 0x2100000 0x0 0x10000>;
191279377Simp			interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
192279377Simp			clock-names = "dspi";
193279377Simp			clocks = <&platform_clk 1>;
194279377Simp			spi-num-chipselects = <5>;
195279377Simp			big-endian;
196279377Simp			status = "disabled";
197279377Simp		};
198279377Simp
199279377Simp		dspi1: dspi@2110000 {
200279377Simp			compatible = "fsl,vf610-dspi";
201279377Simp			#address-cells = <1>;
202279377Simp			#size-cells = <0>;
203279377Simp			reg = <0x0 0x2110000 0x0 0x10000>;
204279377Simp			interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
205279377Simp			clock-names = "dspi";
206279377Simp			clocks = <&platform_clk 1>;
207279377Simp			spi-num-chipselects = <5>;
208279377Simp			big-endian;
209279377Simp			status = "disabled";
210279377Simp		};
211279377Simp
212279377Simp		i2c0: i2c@2180000 {
213279377Simp			compatible = "fsl,vf610-i2c";
214279377Simp			#address-cells = <1>;
215279377Simp			#size-cells = <0>;
216279377Simp			reg = <0x0 0x2180000 0x0 0x10000>;
217279377Simp			interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
218279377Simp			clock-names = "i2c";
219279377Simp			clocks = <&platform_clk 1>;
220279377Simp			status = "disabled";
221279377Simp		};
222279377Simp
223279377Simp		i2c1: i2c@2190000 {
224279377Simp			compatible = "fsl,vf610-i2c";
225279377Simp			#address-cells = <1>;
226279377Simp			#size-cells = <0>;
227279377Simp			reg = <0x0 0x2190000 0x0 0x10000>;
228279377Simp			interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
229279377Simp			clock-names = "i2c";
230279377Simp			clocks = <&platform_clk 1>;
231279377Simp			status = "disabled";
232279377Simp		};
233279377Simp
234279377Simp		i2c2: i2c@21a0000 {
235279377Simp			compatible = "fsl,vf610-i2c";
236279377Simp			#address-cells = <1>;
237279377Simp			#size-cells = <0>;
238279377Simp			reg = <0x0 0x21a0000 0x0 0x10000>;
239279377Simp			interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
240279377Simp			clock-names = "i2c";
241279377Simp			clocks = <&platform_clk 1>;
242279377Simp			status = "disabled";
243279377Simp		};
244279377Simp
245279377Simp		uart0: serial@21c0500 {
246279377Simp			compatible = "fsl,16550-FIFO64", "ns16550a";
247279377Simp			reg = <0x0 0x21c0500 0x0 0x100>;
248279377Simp			interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
249279377Simp			clock-frequency = <0>;
250279377Simp			fifo-size = <15>;
251279377Simp			status = "disabled";
252279377Simp		};
253279377Simp
254279377Simp		uart1: serial@21c0600 {
255279377Simp			compatible = "fsl,16550-FIFO64", "ns16550a";
256279377Simp			reg = <0x0 0x21c0600 0x0 0x100>;
257279377Simp			interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
258279377Simp			clock-frequency = <0>;
259279377Simp			fifo-size = <15>;
260279377Simp			status = "disabled";
261279377Simp		};
262279377Simp
263279377Simp		uart2: serial@21d0500 {
264279377Simp			compatible = "fsl,16550-FIFO64", "ns16550a";
265279377Simp			reg = <0x0 0x21d0500 0x0 0x100>;
266279377Simp			interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
267279377Simp			clock-frequency = <0>;
268279377Simp			fifo-size = <15>;
269279377Simp			status = "disabled";
270279377Simp		};
271279377Simp
272279377Simp		uart3: serial@21d0600 {
273279377Simp			compatible = "fsl,16550-FIFO64", "ns16550a";
274279377Simp			reg = <0x0 0x21d0600 0x0 0x100>;
275279377Simp			interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
276279377Simp			clock-frequency = <0>;
277279377Simp			fifo-size = <15>;
278279377Simp			status = "disabled";
279279377Simp		};
280279377Simp
281279377Simp		lpuart0: serial@2950000 {
282279377Simp			compatible = "fsl,ls1021a-lpuart";
283279377Simp			reg = <0x0 0x2950000 0x0 0x1000>;
284279377Simp			interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
285279377Simp			clocks = <&sysclk>;
286279377Simp			clock-names = "ipg";
287279377Simp			status = "disabled";
288279377Simp		};
289279377Simp
290279377Simp		lpuart1: serial@2960000 {
291279377Simp			compatible = "fsl,ls1021a-lpuart";
292279377Simp			reg = <0x0 0x2960000 0x0 0x1000>;
293279377Simp			interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
294279377Simp			clocks = <&platform_clk 1>;
295279377Simp			clock-names = "ipg";
296279377Simp			status = "disabled";
297279377Simp		};
298279377Simp
299279377Simp		lpuart2: serial@2970000 {
300279377Simp			compatible = "fsl,ls1021a-lpuart";
301279377Simp			reg = <0x0 0x2970000 0x0 0x1000>;
302279377Simp			interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
303279377Simp			clocks = <&platform_clk 1>;
304279377Simp			clock-names = "ipg";
305279377Simp			status = "disabled";
306279377Simp		};
307279377Simp
308279377Simp		lpuart3: serial@2980000 {
309279377Simp			compatible = "fsl,ls1021a-lpuart";
310279377Simp			reg = <0x0 0x2980000 0x0 0x1000>;
311279377Simp			interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
312279377Simp			clocks = <&platform_clk 1>;
313279377Simp			clock-names = "ipg";
314279377Simp			status = "disabled";
315279377Simp		};
316279377Simp
317279377Simp		lpuart4: serial@2990000 {
318279377Simp			compatible = "fsl,ls1021a-lpuart";
319279377Simp			reg = <0x0 0x2990000 0x0 0x1000>;
320279377Simp			interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
321279377Simp			clocks = <&platform_clk 1>;
322279377Simp			clock-names = "ipg";
323279377Simp			status = "disabled";
324279377Simp		};
325279377Simp
326279377Simp		lpuart5: serial@29a0000 {
327279377Simp			compatible = "fsl,ls1021a-lpuart";
328279377Simp			reg = <0x0 0x29a0000 0x0 0x1000>;
329279377Simp			interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
330279377Simp			clocks = <&platform_clk 1>;
331279377Simp			clock-names = "ipg";
332279377Simp			status = "disabled";
333279377Simp		};
334279377Simp
335279377Simp		wdog0: watchdog@2ad0000 {
336279377Simp			compatible = "fsl,imx21-wdt";
337279377Simp			reg = <0x0 0x2ad0000 0x0 0x10000>;
338279377Simp			interrupts = <GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>;
339279377Simp			clocks = <&platform_clk 1>;
340279377Simp			clock-names = "wdog-en";
341279377Simp			big-endian;
342279377Simp		};
343279377Simp
344279377Simp		sai1: sai@2b50000 {
345279377Simp			compatible = "fsl,vf610-sai";
346279377Simp			reg = <0x0 0x2b50000 0x0 0x10000>;
347279377Simp			interrupts = <GIC_SPI 132 IRQ_TYPE_LEVEL_HIGH>;
348279377Simp			clocks = <&platform_clk 1>;
349279377Simp			clock-names = "sai";
350279377Simp			dma-names = "tx", "rx";
351279377Simp			dmas = <&edma0 1 47>,
352279377Simp			       <&edma0 1 46>;
353279377Simp			big-endian;
354279377Simp			status = "disabled";
355279377Simp		};
356279377Simp
357279377Simp		sai2: sai@2b60000 {
358279377Simp			compatible = "fsl,vf610-sai";
359279377Simp			reg = <0x0 0x2b60000 0x0 0x10000>;
360279377Simp			interrupts = <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>;
361279377Simp			clocks = <&platform_clk 1>;
362279377Simp			clock-names = "sai";
363279377Simp			dma-names = "tx", "rx";
364279377Simp			dmas = <&edma0 1 45>,
365279377Simp			       <&edma0 1 44>;
366279377Simp			big-endian;
367279377Simp			status = "disabled";
368279377Simp		};
369279377Simp
370279377Simp		edma0: edma@2c00000 {
371279377Simp			#dma-cells = <2>;
372279377Simp			compatible = "fsl,vf610-edma";
373279377Simp			reg = <0x0 0x2c00000 0x0 0x10000>,
374279377Simp			      <0x0 0x2c10000 0x0 0x10000>,
375279377Simp			      <0x0 0x2c20000 0x0 0x10000>;
376279377Simp			interrupts = <GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH>,
377279377Simp				     <GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH>;
378279377Simp			interrupt-names = "edma-tx", "edma-err";
379279377Simp			dma-channels = <32>;
380279377Simp			big-endian;
381279377Simp			clock-names = "dmamux0", "dmamux1";
382279377Simp			clocks = <&platform_clk 1>,
383279377Simp				 <&platform_clk 1>;
384279377Simp		};
385279377Simp
386279377Simp		mdio0: mdio@2d24000 {
387279377Simp			compatible = "gianfar";
388279377Simp			device_type = "mdio";
389279377Simp			#address-cells = <1>;
390279377Simp			#size-cells = <0>;
391279377Simp			reg = <0x0 0x2d24000 0x0 0x4000>;
392279377Simp		};
393279377Simp
394279377Simp		usb@8600000 {
395279377Simp			compatible = "fsl-usb2-dr-v2.5", "fsl-usb2-dr";
396279377Simp			reg = <0x0 0x8600000 0x0 0x1000>;
397279377Simp			interrupts = <GIC_SPI 171 IRQ_TYPE_LEVEL_HIGH>;
398279377Simp			dr_mode = "host";
399279377Simp			phy_type = "ulpi";
400279377Simp		};
401279377Simp
402279377Simp		usb3@3100000 {
403279377Simp			compatible = "snps,dwc3";
404279377Simp			reg = <0x0 0x3100000 0x0 0x10000>;
405279377Simp			interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>;
406279377Simp			dr_mode = "host";
407279377Simp		};
408279377Simp	};
409279377Simp};
410