xref: /linux/arch/arm64/boot/dts/amazon/alpine-v2.dtsi (revision d8d2b1f81530988abe2e2bfaceec1c5d30b9a0b4)
1/*
2 * Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Antoine Tenart <antoine.tenart@free-electrons.com>
5 *
6 * This software is available to you under a choice of one of two
7 * licenses.  You may choose to be licensed under the terms of the GNU
8 * General Public License (GPL) Version 2, available from the file
9 * COPYING in the main directory of this source tree, or the
10 * BSD license below:
11 *
12 *     Redistribution and use in source and binary forms, with or
13 *     without modification, are permitted provided that the following
14 *     conditions are met:
15 *
16 *      - Redistributions of source code must retain the above
17 *        copyright notice, this list of conditions and the following
18 *        disclaimer.
19 *
20 *      - Redistributions in binary form must reproduce the above
21 *        copyright notice, this list of conditions and the following
22 *        disclaimer in the documentation and/or other materials
23 *        provided with the distribution.
24 *
25 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
26 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
28 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
29 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
30 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
31 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
32 * SOFTWARE.
33 */
34
35/dts-v1/;
36
37#include <dt-bindings/interrupt-controller/arm-gic.h>
38
39/ {
40	model = "Annapurna Labs Alpine v2";
41	compatible = "al,alpine-v2";
42	interrupt-parent = <&gic>;
43	#address-cells = <2>;
44	#size-cells = <2>;
45
46	cpus {
47		#address-cells = <2>;
48		#size-cells = <0>;
49
50		cpu@0 {
51			compatible = "arm,cortex-a57";
52			device_type = "cpu";
53			reg = <0x0 0x0>;
54			enable-method = "psci";
55		};
56
57		cpu@1 {
58			compatible = "arm,cortex-a57";
59			device_type = "cpu";
60			reg = <0x0 0x1>;
61			enable-method = "psci";
62		};
63
64		cpu@2 {
65			compatible = "arm,cortex-a57";
66			device_type = "cpu";
67			reg = <0x0 0x2>;
68			enable-method = "psci";
69		};
70
71		cpu@3 {
72			compatible = "arm,cortex-a57";
73			device_type = "cpu";
74			reg = <0x0 0x3>;
75			enable-method = "psci";
76		};
77	};
78
79	psci {
80		compatible = "arm,psci-0.2", "arm,psci";
81		method = "smc";
82		cpu_suspend = <0x84000001>;
83		cpu_off = <0x84000002>;
84		cpu_on = <0x84000003>;
85	};
86
87	sbclk: sbclk {
88		compatible = "fixed-clock";
89		#clock-cells = <0>;
90		clock-frequency = <1000000>;
91	};
92
93	timer {
94		compatible = "arm,armv8-timer";
95		interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>,
96			     <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>,
97			     <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>,
98			     <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>;
99	};
100
101	pmu {
102		compatible = "arm,cortex-a57-pmu";
103		interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>,
104			     <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>,
105			     <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>,
106			     <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>;
107	};
108
109	soc {
110		compatible = "simple-bus";
111		#address-cells = <2>;
112		#size-cells = <2>;
113
114		interrupt-parent = <&gic>;
115		ranges;
116
117		gic: interrupt-controller@f0200000 {
118			compatible = "arm,gic-v3";
119			reg = <0x0 0xf0200000 0x0 0x10000>,	/* GIC Dist */
120			      <0x0 0xf0280000 0x0 0x200000>,	/* GICR */
121			      <0x0 0xf0100000 0x0 0x2000>,	/* GICC */
122			      <0x0 0xf0110000 0x0 0x2000>,	/* GICV */
123			      <0x0 0xf0120000 0x0 0x2000>;	/* GICH */
124			interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
125			interrupt-controller;
126			#address-cells = <0>;
127			#interrupt-cells = <3>;
128		};
129
130		pci@fbc00000 {
131			compatible = "pci-host-ecam-generic";
132			device_type = "pci";
133			#size-cells = <2>;
134			#address-cells = <3>;
135			#interrupt-cells = <1>;
136			reg = <0x0 0xfbc00000 0x0 0x100000>;
137			interrupt-map-mask = <0xf800 0 0 7>;
138			/* add legacy interrupts for SATA only */
139			interrupt-map = <0x4000 0 0 1 &gic 0 53 4>,
140					<0x4800 0 0 1 &gic 0 54 4>;
141			/* 32 bit non prefetchable memory space */
142			ranges = <0x2000000 0x0 0xfe000000 0x0 0xfe000000 0x0 0x1000000>;
143			bus-range = <0x00 0x00>;
144			msi-parent = <&msix>;
145		};
146
147		msix: msix@fbe00000 {
148			compatible = "al,alpine-msix";
149			reg = <0x0 0xfbe00000 0x0 0x100000>;
150			msi-controller;
151			al,msi-base-spi = <160>;
152			al,msi-num-spis = <160>;
153		};
154
155		io-bus@fc000000 {
156			compatible = "simple-bus";
157			#address-cells = <1>;
158			#size-cells = <1>;
159			ranges = <0x0 0x0 0xfc000000 0x2000000>;
160
161			uart0: serial@1883000 {
162				compatible = "ns16550a";
163				reg = <0x1883000 0x1000>;
164				interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
165				clock-frequency = <500000000>;
166				reg-shift = <2>;
167				reg-io-width = <4>;
168				status = "disabled";
169			};
170
171			uart1: serial@1884000 {
172				compatible = "ns16550a";
173				reg = <0x1884000 0x1000>;
174				interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
175				clock-frequency = <500000000>;
176				reg-shift = <2>;
177				reg-io-width = <4>;
178				status = "disabled";
179			};
180
181			uart2: serial@1885000 {
182				compatible = "ns16550a";
183				reg = <0x1885000 0x1000>;
184				interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
185				clock-frequency = <500000000>;
186				reg-shift = <2>;
187				reg-io-width = <4>;
188				status = "disabled";
189			};
190
191			uart3: serial@1886000 {
192				compatible = "ns16550a";
193				reg = <0x1886000 0x1000>;
194				interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
195				clock-frequency = <500000000>;
196				reg-shift = <2>;
197				reg-io-width = <4>;
198				status = "disabled";
199			};
200
201			timer0: timer@1890000 {
202				compatible = "arm,sp804", "arm,primecell";
203				reg = <0x1890000 0x1000>;
204				interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
205				clocks = <&sbclk>;
206			};
207
208			timer1: timer@1891000 {
209				compatible = "arm,sp804", "arm,primecell";
210				reg = <0x1891000 0x1000>;
211				interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
212				clocks = <&sbclk>;
213				status = "disabled";
214			};
215
216			timer2: timer@1892000 {
217				compatible = "arm,sp804", "arm,primecell";
218				reg = <0x1892000 0x1000>;
219				interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
220				clocks = <&sbclk>;
221				status = "disabled";
222			};
223
224			timer3: timer@1893000 {
225				compatible = "arm,sp804", "arm,primecell";
226				reg = <0x1893000 0x1000>;
227				interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
228				clocks = <&sbclk>;
229				status = "disabled";
230			};
231		};
232	};
233};
234