xref: /openbmc/linux/scripts/dtc/include-prefixes/arm64/arm/foundation-v8.dtsi (revision 608f1b6cf366a3d429dab08c67117a9699c982c1)
1b2441318SGreg Kroah-Hartman// SPDX-License-Identifier: GPL-2.0
2d11a8979SAndre Przywara/*
3d11a8979SAndre Przywara * ARM Ltd.
4d11a8979SAndre Przywara *
5d11a8979SAndre Przywara * ARMv8 Foundation model DTS
6d11a8979SAndre Przywara */
7d11a8979SAndre Przywara
8d11a8979SAndre Przywara/dts-v1/;
9d11a8979SAndre Przywara
10ef972714SSudeep Holla#include <dt-bindings/interrupt-controller/arm-gic.h>
11ef972714SSudeep Holla
12d11a8979SAndre Przywara/memreserve/ 0x80000000 0x00010000;
13d11a8979SAndre Przywara
14d11a8979SAndre Przywara/ {
15d11a8979SAndre Przywara	model = "Foundation-v8A";
16d11a8979SAndre Przywara	compatible = "arm,foundation-aarch64", "arm,vexpress";
17d11a8979SAndre Przywara	interrupt-parent = <&gic>;
18d11a8979SAndre Przywara	#address-cells = <2>;
19d11a8979SAndre Przywara	#size-cells = <2>;
20d11a8979SAndre Przywara
21d11a8979SAndre Przywara	chosen { };
22d11a8979SAndre Przywara
23d11a8979SAndre Przywara	aliases {
24d11a8979SAndre Przywara		serial0 = &v2m_serial0;
25d11a8979SAndre Przywara		serial1 = &v2m_serial1;
26d11a8979SAndre Przywara		serial2 = &v2m_serial2;
27d11a8979SAndre Przywara		serial3 = &v2m_serial3;
28d11a8979SAndre Przywara	};
29d11a8979SAndre Przywara
30d11a8979SAndre Przywara	cpus {
31d11a8979SAndre Przywara		#address-cells = <2>;
32d11a8979SAndre Przywara		#size-cells = <0>;
33d11a8979SAndre Przywara
34bc3d3447SDaniel Thompson		cpu0: cpu@0 {
35d11a8979SAndre Przywara			device_type = "cpu";
36d11a8979SAndre Przywara			compatible = "arm,armv8";
37d11a8979SAndre Przywara			reg = <0x0 0x0>;
38d11a8979SAndre Przywara			next-level-cache = <&L2_0>;
39d11a8979SAndre Przywara		};
40bc3d3447SDaniel Thompson		cpu1: cpu@1 {
41d11a8979SAndre Przywara			device_type = "cpu";
42d11a8979SAndre Przywara			compatible = "arm,armv8";
43d11a8979SAndre Przywara			reg = <0x0 0x1>;
44d11a8979SAndre Przywara			next-level-cache = <&L2_0>;
45d11a8979SAndre Przywara		};
46bc3d3447SDaniel Thompson		cpu2: cpu@2 {
47d11a8979SAndre Przywara			device_type = "cpu";
48d11a8979SAndre Przywara			compatible = "arm,armv8";
49d11a8979SAndre Przywara			reg = <0x0 0x2>;
50d11a8979SAndre Przywara			next-level-cache = <&L2_0>;
51d11a8979SAndre Przywara		};
52bc3d3447SDaniel Thompson		cpu3: cpu@3 {
53d11a8979SAndre Przywara			device_type = "cpu";
54d11a8979SAndre Przywara			compatible = "arm,armv8";
55d11a8979SAndre Przywara			reg = <0x0 0x3>;
56d11a8979SAndre Przywara			next-level-cache = <&L2_0>;
57d11a8979SAndre Przywara		};
58d11a8979SAndre Przywara
59d11a8979SAndre Przywara		L2_0: l2-cache0 {
60d11a8979SAndre Przywara			compatible = "cache";
61d11a8979SAndre Przywara		};
62d11a8979SAndre Przywara	};
63d11a8979SAndre Przywara
64d11a8979SAndre Przywara	memory@80000000 {
65d11a8979SAndre Przywara		device_type = "memory";
66d11a8979SAndre Przywara		reg = <0x00000000 0x80000000 0 0x80000000>,
67d11a8979SAndre Przywara		      <0x00000008 0x80000000 0 0x80000000>;
68d11a8979SAndre Przywara	};
69d11a8979SAndre Przywara
70d11a8979SAndre Przywara	timer {
71d11a8979SAndre Przywara		compatible = "arm,armv8-timer";
72ef972714SSudeep Holla		interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
73ef972714SSudeep Holla			     <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
74ef972714SSudeep Holla			     <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
75ef972714SSudeep Holla			     <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
76d11a8979SAndre Przywara		clock-frequency = <100000000>;
77d11a8979SAndre Przywara	};
78d11a8979SAndre Przywara
79d11a8979SAndre Przywara	pmu {
80d11a8979SAndre Przywara		compatible = "arm,armv8-pmuv3";
81ef972714SSudeep Holla		interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>,
82ef972714SSudeep Holla			     <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>,
83ef972714SSudeep Holla			     <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>,
84ef972714SSudeep Holla			     <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
85d11a8979SAndre Przywara	};
86d11a8979SAndre Przywara
874739f744SFu Wei	watchdog@2a440000 {
884739f744SFu Wei		compatible = "arm,sbsa-gwdt";
894739f744SFu Wei		reg = <0x0 0x2a440000 0 0x1000>,
904739f744SFu Wei			<0x0 0x2a450000 0 0x1000>;
91ef972714SSudeep Holla		interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
924739f744SFu Wei		timeout-sec = <30>;
934739f744SFu Wei	};
944739f744SFu Wei
95feebdc3fSAndre Przywara	v2m_clk24mhz: clk24mhz {
96feebdc3fSAndre Przywara		compatible = "fixed-clock";
97feebdc3fSAndre Przywara		#clock-cells = <0>;
98feebdc3fSAndre Przywara		clock-frequency = <24000000>;
99feebdc3fSAndre Przywara		clock-output-names = "v2m:clk24mhz";
100feebdc3fSAndre Przywara	};
101feebdc3fSAndre Przywara
102feebdc3fSAndre Przywara	v2m_refclk1mhz: refclk1mhz {
103feebdc3fSAndre Przywara		compatible = "fixed-clock";
104feebdc3fSAndre Przywara		#clock-cells = <0>;
105feebdc3fSAndre Przywara		clock-frequency = <1000000>;
106feebdc3fSAndre Przywara		clock-output-names = "v2m:refclk1mhz";
107feebdc3fSAndre Przywara	};
108feebdc3fSAndre Przywara
109feebdc3fSAndre Przywara	v2m_refclk32khz: refclk32khz {
110feebdc3fSAndre Przywara		compatible = "fixed-clock";
111feebdc3fSAndre Przywara		#clock-cells = <0>;
112feebdc3fSAndre Przywara		clock-frequency = <32768>;
113feebdc3fSAndre Przywara		clock-output-names = "v2m:refclk32khz";
114feebdc3fSAndre Przywara	};
115feebdc3fSAndre Przywara
116bee7ff37SLinus Walleij	bus@8000000 {
117d11a8979SAndre Przywara		compatible = "arm,vexpress,v2m-p1", "simple-bus";
118d11a8979SAndre Przywara		arm,v2m-memory-map = "rs1";
119d11a8979SAndre Przywara		#address-cells = <2>; /* SMB chipselect number and offset */
120d11a8979SAndre Przywara		#size-cells = <1>;
121d11a8979SAndre Przywara
122d11a8979SAndre Przywara		ranges = <0 0 0 0x08000000 0x04000000>,
123d11a8979SAndre Przywara			 <1 0 0 0x14000000 0x04000000>,
124d11a8979SAndre Przywara			 <2 0 0 0x18000000 0x04000000>,
125d11a8979SAndre Przywara			 <3 0 0 0x1c000000 0x04000000>,
126d11a8979SAndre Przywara			 <4 0 0 0x0c000000 0x04000000>,
127d11a8979SAndre Przywara			 <5 0 0 0x10000000 0x04000000>;
128d11a8979SAndre Przywara
129d11a8979SAndre Przywara		#interrupt-cells = <1>;
130d11a8979SAndre Przywara		interrupt-map-mask = <0 0 63>;
13178631aecSAndre Przywara		interrupt-map = <0 0  0 &gic 0 GIC_SPI  0 IRQ_TYPE_LEVEL_HIGH>,
13278631aecSAndre Przywara				<0 0  1 &gic 0 GIC_SPI  1 IRQ_TYPE_LEVEL_HIGH>,
13378631aecSAndre Przywara				<0 0  2 &gic 0 GIC_SPI  2 IRQ_TYPE_LEVEL_HIGH>,
13478631aecSAndre Przywara				<0 0  3 &gic 0 GIC_SPI  3 IRQ_TYPE_LEVEL_HIGH>,
13578631aecSAndre Przywara				<0 0  4 &gic 0 GIC_SPI  4 IRQ_TYPE_LEVEL_HIGH>,
13678631aecSAndre Przywara				<0 0  5 &gic 0 GIC_SPI  5 IRQ_TYPE_LEVEL_HIGH>,
13778631aecSAndre Przywara				<0 0  6 &gic 0 GIC_SPI  6 IRQ_TYPE_LEVEL_HIGH>,
13878631aecSAndre Przywara				<0 0  7 &gic 0 GIC_SPI  7 IRQ_TYPE_LEVEL_HIGH>,
13978631aecSAndre Przywara				<0 0  8 &gic 0 GIC_SPI  8 IRQ_TYPE_LEVEL_HIGH>,
14078631aecSAndre Przywara				<0 0  9 &gic 0 GIC_SPI  9 IRQ_TYPE_LEVEL_HIGH>,
14178631aecSAndre Przywara				<0 0 10 &gic 0 GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>,
14278631aecSAndre Przywara				<0 0 11 &gic 0 GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
14378631aecSAndre Przywara				<0 0 12 &gic 0 GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
14478631aecSAndre Przywara				<0 0 13 &gic 0 GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>,
14578631aecSAndre Przywara				<0 0 14 &gic 0 GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>,
14678631aecSAndre Przywara				<0 0 15 &gic 0 GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>,
14778631aecSAndre Przywara				<0 0 16 &gic 0 GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>,
14878631aecSAndre Przywara				<0 0 17 &gic 0 GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>,
14978631aecSAndre Przywara				<0 0 18 &gic 0 GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>,
15078631aecSAndre Przywara				<0 0 19 &gic 0 GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>,
15178631aecSAndre Przywara				<0 0 20 &gic 0 GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>,
15278631aecSAndre Przywara				<0 0 21 &gic 0 GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>,
15378631aecSAndre Przywara				<0 0 22 &gic 0 GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>,
15478631aecSAndre Przywara				<0 0 23 &gic 0 GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>,
15578631aecSAndre Przywara				<0 0 24 &gic 0 GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>,
15678631aecSAndre Przywara				<0 0 25 &gic 0 GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>,
15778631aecSAndre Przywara				<0 0 26 &gic 0 GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>,
15878631aecSAndre Przywara				<0 0 27 &gic 0 GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>,
15978631aecSAndre Przywara				<0 0 28 &gic 0 GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>,
16078631aecSAndre Przywara				<0 0 29 &gic 0 GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>,
16178631aecSAndre Przywara				<0 0 30 &gic 0 GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>,
16278631aecSAndre Przywara				<0 0 31 &gic 0 GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>,
16378631aecSAndre Przywara				<0 0 32 &gic 0 GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>,
16478631aecSAndre Przywara				<0 0 33 &gic 0 GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>,
16578631aecSAndre Przywara				<0 0 34 &gic 0 GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>,
16678631aecSAndre Przywara				<0 0 35 &gic 0 GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>,
16778631aecSAndre Przywara				<0 0 36 &gic 0 GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>,
16878631aecSAndre Przywara				<0 0 37 &gic 0 GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>,
16978631aecSAndre Przywara				<0 0 38 &gic 0 GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>,
17078631aecSAndre Przywara				<0 0 39 &gic 0 GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>,
17178631aecSAndre Przywara				<0 0 40 &gic 0 GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
17278631aecSAndre Przywara				<0 0 41 &gic 0 GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>,
17378631aecSAndre Przywara				<0 0 42 &gic 0 GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
174d11a8979SAndre Przywara
175bb5cce12SAndre Przywara		ethernet@202000000 {
176d11a8979SAndre Przywara			compatible = "smsc,lan91c111";
177d11a8979SAndre Przywara			reg = <2 0x02000000 0x10000>;
178d11a8979SAndre Przywara			interrupts = <15>;
179d11a8979SAndre Przywara		};
180d11a8979SAndre Przywara
181bb5cce12SAndre Przywara		iofpga@300000000 {
1822ef7d5f3SMasahiro Yamada			compatible = "simple-bus";
183d11a8979SAndre Przywara			#address-cells = <1>;
184d11a8979SAndre Przywara			#size-cells = <1>;
185d11a8979SAndre Przywara			ranges = <0 3 0 0x200000>;
186d11a8979SAndre Przywara
187d8bcaabeSRob Herring			v2m_sysreg: sysreg@10000 {
188d11a8979SAndre Przywara				compatible = "arm,vexpress-sysreg";
189d11a8979SAndre Przywara				reg = <0x010000 0x1000>;
190d11a8979SAndre Przywara			};
191d11a8979SAndre Przywara
192*608f1b6cSAndre Przywara			v2m_serial0: serial@90000 {
193d11a8979SAndre Przywara				compatible = "arm,pl011", "arm,primecell";
194d11a8979SAndre Przywara				reg = <0x090000 0x1000>;
195d11a8979SAndre Przywara				interrupts = <5>;
196d11a8979SAndre Przywara				clocks = <&v2m_clk24mhz>, <&v2m_clk24mhz>;
197d11a8979SAndre Przywara				clock-names = "uartclk", "apb_pclk";
198d11a8979SAndre Przywara			};
199d11a8979SAndre Przywara
200*608f1b6cSAndre Przywara			v2m_serial1: serial@a0000 {
201d11a8979SAndre Przywara				compatible = "arm,pl011", "arm,primecell";
202d11a8979SAndre Przywara				reg = <0x0a0000 0x1000>;
203d11a8979SAndre Przywara				interrupts = <6>;
204d11a8979SAndre Przywara				clocks = <&v2m_clk24mhz>, <&v2m_clk24mhz>;
205d11a8979SAndre Przywara				clock-names = "uartclk", "apb_pclk";
206d11a8979SAndre Przywara			};
207d11a8979SAndre Przywara
208*608f1b6cSAndre Przywara			v2m_serial2: serial@b0000 {
209d11a8979SAndre Przywara				compatible = "arm,pl011", "arm,primecell";
210d11a8979SAndre Przywara				reg = <0x0b0000 0x1000>;
211d11a8979SAndre Przywara				interrupts = <7>;
212d11a8979SAndre Przywara				clocks = <&v2m_clk24mhz>, <&v2m_clk24mhz>;
213d11a8979SAndre Przywara				clock-names = "uartclk", "apb_pclk";
214d11a8979SAndre Przywara			};
215d11a8979SAndre Przywara
216*608f1b6cSAndre Przywara			v2m_serial3: serial@c0000 {
217d11a8979SAndre Przywara				compatible = "arm,pl011", "arm,primecell";
218d11a8979SAndre Przywara				reg = <0x0c0000 0x1000>;
219d11a8979SAndre Przywara				interrupts = <8>;
220d11a8979SAndre Przywara				clocks = <&v2m_clk24mhz>, <&v2m_clk24mhz>;
221d11a8979SAndre Przywara				clock-names = "uartclk", "apb_pclk";
222d11a8979SAndre Przywara			};
223d11a8979SAndre Przywara
224d8bcaabeSRob Herring			virtio-block@130000 {
225d11a8979SAndre Przywara				compatible = "virtio,mmio";
226d11a8979SAndre Przywara				reg = <0x130000 0x200>;
227d11a8979SAndre Przywara				interrupts = <42>;
228d11a8979SAndre Przywara			};
229d11a8979SAndre Przywara		};
230d11a8979SAndre Przywara	};
231d11a8979SAndre Przywara};
232