18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * ARM Ltd.
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * ARMv8 Foundation model DTS
68c2ecf20Sopenharmony_ci */
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci/dts-v1/;
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci#include <dt-bindings/interrupt-controller/arm-gic.h>
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci/memreserve/ 0x80000000 0x00010000;
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ci/ {
158c2ecf20Sopenharmony_ci	model = "Foundation-v8A";
168c2ecf20Sopenharmony_ci	compatible = "arm,foundation-aarch64", "arm,vexpress";
178c2ecf20Sopenharmony_ci	interrupt-parent = <&gic>;
188c2ecf20Sopenharmony_ci	#address-cells = <2>;
198c2ecf20Sopenharmony_ci	#size-cells = <2>;
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ci	chosen { };
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ci	aliases {
248c2ecf20Sopenharmony_ci		serial0 = &v2m_serial0;
258c2ecf20Sopenharmony_ci		serial1 = &v2m_serial1;
268c2ecf20Sopenharmony_ci		serial2 = &v2m_serial2;
278c2ecf20Sopenharmony_ci		serial3 = &v2m_serial3;
288c2ecf20Sopenharmony_ci	};
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ci	cpus {
318c2ecf20Sopenharmony_ci		#address-cells = <2>;
328c2ecf20Sopenharmony_ci		#size-cells = <0>;
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_ci		cpu0: cpu@0 {
358c2ecf20Sopenharmony_ci			device_type = "cpu";
368c2ecf20Sopenharmony_ci			compatible = "arm,armv8";
378c2ecf20Sopenharmony_ci			reg = <0x0 0x0>;
388c2ecf20Sopenharmony_ci			next-level-cache = <&L2_0>;
398c2ecf20Sopenharmony_ci		};
408c2ecf20Sopenharmony_ci		cpu1: cpu@1 {
418c2ecf20Sopenharmony_ci			device_type = "cpu";
428c2ecf20Sopenharmony_ci			compatible = "arm,armv8";
438c2ecf20Sopenharmony_ci			reg = <0x0 0x1>;
448c2ecf20Sopenharmony_ci			next-level-cache = <&L2_0>;
458c2ecf20Sopenharmony_ci		};
468c2ecf20Sopenharmony_ci		cpu2: cpu@2 {
478c2ecf20Sopenharmony_ci			device_type = "cpu";
488c2ecf20Sopenharmony_ci			compatible = "arm,armv8";
498c2ecf20Sopenharmony_ci			reg = <0x0 0x2>;
508c2ecf20Sopenharmony_ci			next-level-cache = <&L2_0>;
518c2ecf20Sopenharmony_ci		};
528c2ecf20Sopenharmony_ci		cpu3: cpu@3 {
538c2ecf20Sopenharmony_ci			device_type = "cpu";
548c2ecf20Sopenharmony_ci			compatible = "arm,armv8";
558c2ecf20Sopenharmony_ci			reg = <0x0 0x3>;
568c2ecf20Sopenharmony_ci			next-level-cache = <&L2_0>;
578c2ecf20Sopenharmony_ci		};
588c2ecf20Sopenharmony_ci
598c2ecf20Sopenharmony_ci		L2_0: l2-cache0 {
608c2ecf20Sopenharmony_ci			compatible = "cache";
618c2ecf20Sopenharmony_ci		};
628c2ecf20Sopenharmony_ci	};
638c2ecf20Sopenharmony_ci
648c2ecf20Sopenharmony_ci	memory@80000000 {
658c2ecf20Sopenharmony_ci		device_type = "memory";
668c2ecf20Sopenharmony_ci		reg = <0x00000000 0x80000000 0 0x80000000>,
678c2ecf20Sopenharmony_ci		      <0x00000008 0x80000000 0 0x80000000>;
688c2ecf20Sopenharmony_ci	};
698c2ecf20Sopenharmony_ci
708c2ecf20Sopenharmony_ci	timer {
718c2ecf20Sopenharmony_ci		compatible = "arm,armv8-timer";
728c2ecf20Sopenharmony_ci		interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
738c2ecf20Sopenharmony_ci			     <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
748c2ecf20Sopenharmony_ci			     <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
758c2ecf20Sopenharmony_ci			     <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
768c2ecf20Sopenharmony_ci		clock-frequency = <100000000>;
778c2ecf20Sopenharmony_ci	};
788c2ecf20Sopenharmony_ci
798c2ecf20Sopenharmony_ci	pmu {
808c2ecf20Sopenharmony_ci		compatible = "arm,armv8-pmuv3";
818c2ecf20Sopenharmony_ci		interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>,
828c2ecf20Sopenharmony_ci			     <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>,
838c2ecf20Sopenharmony_ci			     <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>,
848c2ecf20Sopenharmony_ci			     <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
858c2ecf20Sopenharmony_ci	};
868c2ecf20Sopenharmony_ci
878c2ecf20Sopenharmony_ci	watchdog@2a440000 {
888c2ecf20Sopenharmony_ci		compatible = "arm,sbsa-gwdt";
898c2ecf20Sopenharmony_ci		reg = <0x0 0x2a440000 0 0x1000>,
908c2ecf20Sopenharmony_ci			<0x0 0x2a450000 0 0x1000>;
918c2ecf20Sopenharmony_ci		interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
928c2ecf20Sopenharmony_ci		timeout-sec = <30>;
938c2ecf20Sopenharmony_ci	};
948c2ecf20Sopenharmony_ci
958c2ecf20Sopenharmony_ci	v2m_clk24mhz: clk24mhz {
968c2ecf20Sopenharmony_ci		compatible = "fixed-clock";
978c2ecf20Sopenharmony_ci		#clock-cells = <0>;
988c2ecf20Sopenharmony_ci		clock-frequency = <24000000>;
998c2ecf20Sopenharmony_ci		clock-output-names = "v2m:clk24mhz";
1008c2ecf20Sopenharmony_ci	};
1018c2ecf20Sopenharmony_ci
1028c2ecf20Sopenharmony_ci	v2m_refclk1mhz: refclk1mhz {
1038c2ecf20Sopenharmony_ci		compatible = "fixed-clock";
1048c2ecf20Sopenharmony_ci		#clock-cells = <0>;
1058c2ecf20Sopenharmony_ci		clock-frequency = <1000000>;
1068c2ecf20Sopenharmony_ci		clock-output-names = "v2m:refclk1mhz";
1078c2ecf20Sopenharmony_ci	};
1088c2ecf20Sopenharmony_ci
1098c2ecf20Sopenharmony_ci	v2m_refclk32khz: refclk32khz {
1108c2ecf20Sopenharmony_ci		compatible = "fixed-clock";
1118c2ecf20Sopenharmony_ci		#clock-cells = <0>;
1128c2ecf20Sopenharmony_ci		clock-frequency = <32768>;
1138c2ecf20Sopenharmony_ci		clock-output-names = "v2m:refclk32khz";
1148c2ecf20Sopenharmony_ci	};
1158c2ecf20Sopenharmony_ci
1168c2ecf20Sopenharmony_ci	bus@8000000 {
1178c2ecf20Sopenharmony_ci		compatible = "arm,vexpress,v2m-p1", "simple-bus";
1188c2ecf20Sopenharmony_ci		arm,v2m-memory-map = "rs1";
1198c2ecf20Sopenharmony_ci		#address-cells = <2>; /* SMB chipselect number and offset */
1208c2ecf20Sopenharmony_ci		#size-cells = <1>;
1218c2ecf20Sopenharmony_ci
1228c2ecf20Sopenharmony_ci		ranges = <0 0 0 0x08000000 0x04000000>,
1238c2ecf20Sopenharmony_ci			 <1 0 0 0x14000000 0x04000000>,
1248c2ecf20Sopenharmony_ci			 <2 0 0 0x18000000 0x04000000>,
1258c2ecf20Sopenharmony_ci			 <3 0 0 0x1c000000 0x04000000>,
1268c2ecf20Sopenharmony_ci			 <4 0 0 0x0c000000 0x04000000>,
1278c2ecf20Sopenharmony_ci			 <5 0 0 0x10000000 0x04000000>;
1288c2ecf20Sopenharmony_ci
1298c2ecf20Sopenharmony_ci		#interrupt-cells = <1>;
1308c2ecf20Sopenharmony_ci		interrupt-map-mask = <0 0 63>;
1318c2ecf20Sopenharmony_ci		interrupt-map = <0 0  0 &gic 0 GIC_SPI  0 IRQ_TYPE_LEVEL_HIGH>,
1328c2ecf20Sopenharmony_ci				<0 0  1 &gic 0 GIC_SPI  1 IRQ_TYPE_LEVEL_HIGH>,
1338c2ecf20Sopenharmony_ci				<0 0  2 &gic 0 GIC_SPI  2 IRQ_TYPE_LEVEL_HIGH>,
1348c2ecf20Sopenharmony_ci				<0 0  3 &gic 0 GIC_SPI  3 IRQ_TYPE_LEVEL_HIGH>,
1358c2ecf20Sopenharmony_ci				<0 0  4 &gic 0 GIC_SPI  4 IRQ_TYPE_LEVEL_HIGH>,
1368c2ecf20Sopenharmony_ci				<0 0  5 &gic 0 GIC_SPI  5 IRQ_TYPE_LEVEL_HIGH>,
1378c2ecf20Sopenharmony_ci				<0 0  6 &gic 0 GIC_SPI  6 IRQ_TYPE_LEVEL_HIGH>,
1388c2ecf20Sopenharmony_ci				<0 0  7 &gic 0 GIC_SPI  7 IRQ_TYPE_LEVEL_HIGH>,
1398c2ecf20Sopenharmony_ci				<0 0  8 &gic 0 GIC_SPI  8 IRQ_TYPE_LEVEL_HIGH>,
1408c2ecf20Sopenharmony_ci				<0 0  9 &gic 0 GIC_SPI  9 IRQ_TYPE_LEVEL_HIGH>,
1418c2ecf20Sopenharmony_ci				<0 0 10 &gic 0 GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>,
1428c2ecf20Sopenharmony_ci				<0 0 11 &gic 0 GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
1438c2ecf20Sopenharmony_ci				<0 0 12 &gic 0 GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
1448c2ecf20Sopenharmony_ci				<0 0 13 &gic 0 GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>,
1458c2ecf20Sopenharmony_ci				<0 0 14 &gic 0 GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>,
1468c2ecf20Sopenharmony_ci				<0 0 15 &gic 0 GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>,
1478c2ecf20Sopenharmony_ci				<0 0 16 &gic 0 GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>,
1488c2ecf20Sopenharmony_ci				<0 0 17 &gic 0 GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>,
1498c2ecf20Sopenharmony_ci				<0 0 18 &gic 0 GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>,
1508c2ecf20Sopenharmony_ci				<0 0 19 &gic 0 GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>,
1518c2ecf20Sopenharmony_ci				<0 0 20 &gic 0 GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>,
1528c2ecf20Sopenharmony_ci				<0 0 21 &gic 0 GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>,
1538c2ecf20Sopenharmony_ci				<0 0 22 &gic 0 GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>,
1548c2ecf20Sopenharmony_ci				<0 0 23 &gic 0 GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>,
1558c2ecf20Sopenharmony_ci				<0 0 24 &gic 0 GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>,
1568c2ecf20Sopenharmony_ci				<0 0 25 &gic 0 GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>,
1578c2ecf20Sopenharmony_ci				<0 0 26 &gic 0 GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>,
1588c2ecf20Sopenharmony_ci				<0 0 27 &gic 0 GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>,
1598c2ecf20Sopenharmony_ci				<0 0 28 &gic 0 GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>,
1608c2ecf20Sopenharmony_ci				<0 0 29 &gic 0 GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>,
1618c2ecf20Sopenharmony_ci				<0 0 30 &gic 0 GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>,
1628c2ecf20Sopenharmony_ci				<0 0 31 &gic 0 GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>,
1638c2ecf20Sopenharmony_ci				<0 0 32 &gic 0 GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>,
1648c2ecf20Sopenharmony_ci				<0 0 33 &gic 0 GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>,
1658c2ecf20Sopenharmony_ci				<0 0 34 &gic 0 GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>,
1668c2ecf20Sopenharmony_ci				<0 0 35 &gic 0 GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>,
1678c2ecf20Sopenharmony_ci				<0 0 36 &gic 0 GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>,
1688c2ecf20Sopenharmony_ci				<0 0 37 &gic 0 GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>,
1698c2ecf20Sopenharmony_ci				<0 0 38 &gic 0 GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>,
1708c2ecf20Sopenharmony_ci				<0 0 39 &gic 0 GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>,
1718c2ecf20Sopenharmony_ci				<0 0 40 &gic 0 GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
1728c2ecf20Sopenharmony_ci				<0 0 41 &gic 0 GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>,
1738c2ecf20Sopenharmony_ci				<0 0 42 &gic 0 GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
1748c2ecf20Sopenharmony_ci
1758c2ecf20Sopenharmony_ci		ethernet@202000000 {
1768c2ecf20Sopenharmony_ci			compatible = "smsc,lan91c111";
1778c2ecf20Sopenharmony_ci			reg = <2 0x02000000 0x10000>;
1788c2ecf20Sopenharmony_ci			interrupts = <15>;
1798c2ecf20Sopenharmony_ci		};
1808c2ecf20Sopenharmony_ci
1818c2ecf20Sopenharmony_ci		iofpga-bus@300000000 {
1828c2ecf20Sopenharmony_ci			compatible = "simple-bus";
1838c2ecf20Sopenharmony_ci			#address-cells = <1>;
1848c2ecf20Sopenharmony_ci			#size-cells = <1>;
1858c2ecf20Sopenharmony_ci			ranges = <0 3 0 0x200000>;
1868c2ecf20Sopenharmony_ci
1878c2ecf20Sopenharmony_ci			v2m_sysreg: sysreg@10000 {
1888c2ecf20Sopenharmony_ci				compatible = "arm,vexpress-sysreg";
1898c2ecf20Sopenharmony_ci				reg = <0x010000 0x1000>;
1908c2ecf20Sopenharmony_ci			};
1918c2ecf20Sopenharmony_ci
1928c2ecf20Sopenharmony_ci			v2m_serial0: serial@90000 {
1938c2ecf20Sopenharmony_ci				compatible = "arm,pl011", "arm,primecell";
1948c2ecf20Sopenharmony_ci				reg = <0x090000 0x1000>;
1958c2ecf20Sopenharmony_ci				interrupts = <5>;
1968c2ecf20Sopenharmony_ci				clocks = <&v2m_clk24mhz>, <&v2m_clk24mhz>;
1978c2ecf20Sopenharmony_ci				clock-names = "uartclk", "apb_pclk";
1988c2ecf20Sopenharmony_ci			};
1998c2ecf20Sopenharmony_ci
2008c2ecf20Sopenharmony_ci			v2m_serial1: serial@a0000 {
2018c2ecf20Sopenharmony_ci				compatible = "arm,pl011", "arm,primecell";
2028c2ecf20Sopenharmony_ci				reg = <0x0a0000 0x1000>;
2038c2ecf20Sopenharmony_ci				interrupts = <6>;
2048c2ecf20Sopenharmony_ci				clocks = <&v2m_clk24mhz>, <&v2m_clk24mhz>;
2058c2ecf20Sopenharmony_ci				clock-names = "uartclk", "apb_pclk";
2068c2ecf20Sopenharmony_ci			};
2078c2ecf20Sopenharmony_ci
2088c2ecf20Sopenharmony_ci			v2m_serial2: serial@b0000 {
2098c2ecf20Sopenharmony_ci				compatible = "arm,pl011", "arm,primecell";
2108c2ecf20Sopenharmony_ci				reg = <0x0b0000 0x1000>;
2118c2ecf20Sopenharmony_ci				interrupts = <7>;
2128c2ecf20Sopenharmony_ci				clocks = <&v2m_clk24mhz>, <&v2m_clk24mhz>;
2138c2ecf20Sopenharmony_ci				clock-names = "uartclk", "apb_pclk";
2148c2ecf20Sopenharmony_ci			};
2158c2ecf20Sopenharmony_ci
2168c2ecf20Sopenharmony_ci			v2m_serial3: serial@c0000 {
2178c2ecf20Sopenharmony_ci				compatible = "arm,pl011", "arm,primecell";
2188c2ecf20Sopenharmony_ci				reg = <0x0c0000 0x1000>;
2198c2ecf20Sopenharmony_ci				interrupts = <8>;
2208c2ecf20Sopenharmony_ci				clocks = <&v2m_clk24mhz>, <&v2m_clk24mhz>;
2218c2ecf20Sopenharmony_ci				clock-names = "uartclk", "apb_pclk";
2228c2ecf20Sopenharmony_ci			};
2238c2ecf20Sopenharmony_ci
2248c2ecf20Sopenharmony_ci			virtio-block@130000 {
2258c2ecf20Sopenharmony_ci				compatible = "virtio,mmio";
2268c2ecf20Sopenharmony_ci				reg = <0x130000 0x200>;
2278c2ecf20Sopenharmony_ci				interrupts = <42>;
2288c2ecf20Sopenharmony_ci			};
2298c2ecf20Sopenharmony_ci		};
2308c2ecf20Sopenharmony_ci	};
2318c2ecf20Sopenharmony_ci};
232