n1sdp.dtsi 5.28 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
// SPDX-License-Identifier: (GPL-2.0 or BSD-3-Clause)
/*
 * Copyright (c) 2019-2020, Arm Limited.
 */

#include <dt-bindings/interrupt-controller/arm-gic.h>

/ {
	interrupt-parent = <&gic>;
	#address-cells = <2>;
	#size-cells = <2>;

	cpus {
		#address-cells = <2>;
		#size-cells = <0>;

		cpu0@0 {
			compatible = "arm,neoverse-n1";
			reg = <0x0 0x0>;
			device_type = "cpu";
			enable-method = "psci";
			numa-node-id = <0>;
		};
		cpu1@100 {
			compatible = "arm,neoverse-n1";
			reg = <0x0 0x100>;
			device_type = "cpu";
			enable-method = "psci";
			numa-node-id = <0>;
		};
		cpu2@10000 {
			compatible = "arm,neoverse-n1";
			reg = <0x0 0x10000>;
			device_type = "cpu";
			enable-method = "psci";
			numa-node-id = <0>;
		};
		cpu3@10100 {
			compatible = "arm,neoverse-n1";
			reg = <0x0 0x10100>;
			device_type = "cpu";
			enable-method = "psci";
			numa-node-id = <0>;
		};
	};

	pmu {
		compatible = "arm,armv8-pmuv3";
		interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_HIGH>;
	};

	spe-pmu {
		compatible = "arm,statistical-profiling-extension-v1";
		interrupts = <GIC_PPI 5 IRQ_TYPE_LEVEL_HIGH>;
	};

	psci {
		compatible = "arm,psci-0.2";
		method = "smc";
	};

	timer {
		compatible = "arm,armv8-timer";
		interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>,
			     <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>,
			     <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>,
			     <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>;
	};

	soc_refclk100mhz: refclk100mhz {
		compatible = "fixed-clock";
		#clock-cells = <0>;
		clock-frequency = <100000000>;
		clock-output-names = "apb_pclk";
	};

	soc_uartclk:  uartclk {
		compatible = "fixed-clock";
		#clock-cells = <0>;
		clock-frequency = <50000000>;
		clock-output-names = "uartclk";
	};

	soc {
		compatible = "arm,neoverse-n1-soc", "simple-bus";
		#address-cells = <2>;
		#size-cells = <2>;
		ranges;

		gic: interrupt-controller@30000000 {
			compatible = "arm,gic-v3";
			#address-cells = <2>;
			#interrupt-cells = <3>;
			#size-cells = <2>;
			ranges;
			interrupt-controller;
			reg = <0x0 0x30000000 0 0x10000>,	/* GICD */
				<0x0 0x300c0000 0 0x80000>;	/* GICR */

			interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;

			its1: its@30040000 {
				compatible = "arm,gic-v3-its";
				msi-controller;
				#msi-cells = <1>;
				reg = <0x0 0x30040000 0x0 0x20000>;
			};

			its2: its@30060000 {
				compatible = "arm,gic-v3-its";
				msi-controller;
				#msi-cells = <1>;
				reg = <0x0 0x30060000 0x0 0x20000>;
			};

			its_ccix: its@30080000 {
				compatible = "arm,gic-v3-its";
				msi-controller;
				#msi-cells = <1>;
				reg = <0x0 0x30080000 0x0 0x20000>;
			};

			its_pcie: its@300a0000 {
				compatible = "arm,gic-v3-its";
				msi-controller;
				#msi-cells = <1>;
				reg = <0x0 0x300a0000 0x0 0x20000>;
			};
		};

		smmu_ccix: iommu@4f000000 {
			compatible = "arm,smmu-v3";
			reg = <0 0x4f000000 0 0x40000>;
			interrupts = <GIC_SPI 228 IRQ_TYPE_EDGE_RISING>,
					<GIC_SPI 229 IRQ_TYPE_EDGE_RISING>,
					<GIC_SPI 230 IRQ_TYPE_EDGE_RISING>;
			interrupt-names = "eventq", "cmdq-sync", "gerror";
			msi-parent = <&its1 0>;
			#iommu-cells = <1>;
			dma-coherent;
		};

		smmu_pcie: iommu@4f400000 {
			compatible = "arm,smmu-v3";
			reg = <0 0x4f400000 0 0x40000>;
			interrupts = <GIC_SPI 235 IRQ_TYPE_EDGE_RISING>,
					<GIC_SPI 236 IRQ_TYPE_EDGE_RISING>,
					<GIC_SPI 237 IRQ_TYPE_EDGE_RISING>;
			interrupt-names = "eventq", "cmdq-sync", "gerror";
			msi-parent = <&its2 0>;
			#iommu-cells = <1>;
			dma-coherent;
		};

		pcie_ctlr: pcie@70000000 {
			compatible = "arm,n1sdp-pcie";
			device_type = "pci";
			reg = <0 0x70000000 0 0x1200000>;
			bus-range = <0 17>;
			linux,pci-domain = <0>;
			#address-cells = <3>;
			#size-cells = <2>;
			dma-coherent;
			ranges = <0x01000000 0x00 0x00000000 0x00 0x75200000 0x00 0x00010000>,
				 <0x02000000 0x00 0x71200000 0x00 0x71200000 0x00 0x04000000>,
				 <0x42000000 0x09 0x00000000 0x09 0x00000000 0x20 0x00000000>;
			#interrupt-cells = <1>;
			interrupt-map-mask = <0 0 0 7>;
			interrupt-map = <0 0 0 1 &gic 0 0 0 169 IRQ_TYPE_LEVEL_HIGH>,
				<0 0 0 2 &gic 0 0 0 170 IRQ_TYPE_LEVEL_HIGH>,
				<0 0 0 3 &gic 0 0 0 171 IRQ_TYPE_LEVEL_HIGH>,
				<0 0 0 4 &gic 0 0 0 172 IRQ_TYPE_LEVEL_HIGH>;
			msi-map = <0 &its_pcie 0 0x10000>;
			iommu-map = <0 &smmu_pcie 0 0x10000>;
			status = "disabled";
		};

		ccix_pcie_ctlr: pcie@68000000 {
			compatible = "arm,n1sdp-pcie";
			device_type = "pci";
			reg = <0 0x68000000 0 0x1200000>;
			bus-range = <0 17>;
			linux,pci-domain = <1>;
			#address-cells = <3>;
			#size-cells = <2>;
			dma-coherent;
			ranges = <0x01000000 0x00 0x00000000 0x00 0x6d200000 0x00 0x00010000>,
				 <0x02000000 0x00 0x69200000 0x00 0x69200000 0x00 0x04000000>,
				 <0x42000000 0x29 0x00000000 0x29 0x00000000 0x20 0x00000000>;
			#interrupt-cells = <1>;
			interrupt-map-mask = <0 0 0 7>;
			interrupt-map = <0 0 0 1 &gic 0 0 0 201 IRQ_TYPE_LEVEL_HIGH>,
				<0 0 0 2 &gic 0 0 0 202 IRQ_TYPE_LEVEL_HIGH>,
				<0 0 0 3 &gic 0 0 0 203 IRQ_TYPE_LEVEL_HIGH>,
				<0 0 0 4 &gic 0 0 0 204 IRQ_TYPE_LEVEL_HIGH>;
			msi-map = <0 &its_ccix 0 0x10000>;
			iommu-map = <0 &smmu_ccix 0 0x10000>;
			status = "disabled";
		};

		soc_uart0: serial@2a400000 {
			compatible = "arm,pl011", "arm,primecell";
			reg = <0x0 0x2a400000 0x0 0x1000>;
			interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
			clocks = <&soc_uartclk>, <&soc_refclk100mhz>;
			clock-names = "uartclk", "apb_pclk";
			status = "disabled";
		};
	};
};