18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * ARM Ltd. Fast Models
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Architecture Envelope Model (AEM) ARMv8-A
68c2ecf20Sopenharmony_ci * ARMAEMv8AMPCT
78c2ecf20Sopenharmony_ci *
88c2ecf20Sopenharmony_ci * RTSM_VE_AEMv8A.lisa
98c2ecf20Sopenharmony_ci */
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci/dts-v1/;
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci#include <dt-bindings/interrupt-controller/arm-gic.h>
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci/memreserve/ 0x80000000 0x00010000;
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci#include "rtsm_ve-motherboard.dtsi"
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci/ {
208c2ecf20Sopenharmony_ci	model = "RTSM_VE_AEMv8A";
218c2ecf20Sopenharmony_ci	compatible = "arm,rtsm_ve,aemv8a", "arm,vexpress";
228c2ecf20Sopenharmony_ci	interrupt-parent = <&gic>;
238c2ecf20Sopenharmony_ci	#address-cells = <2>;
248c2ecf20Sopenharmony_ci	#size-cells = <2>;
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ci	chosen { };
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ci	aliases {
298c2ecf20Sopenharmony_ci		serial0 = &v2m_serial0;
308c2ecf20Sopenharmony_ci		serial1 = &v2m_serial1;
318c2ecf20Sopenharmony_ci		serial2 = &v2m_serial2;
328c2ecf20Sopenharmony_ci		serial3 = &v2m_serial3;
338c2ecf20Sopenharmony_ci	};
348c2ecf20Sopenharmony_ci
358c2ecf20Sopenharmony_ci	cpus {
368c2ecf20Sopenharmony_ci		#address-cells = <2>;
378c2ecf20Sopenharmony_ci		#size-cells = <0>;
388c2ecf20Sopenharmony_ci
398c2ecf20Sopenharmony_ci		cpu@0 {
408c2ecf20Sopenharmony_ci			device_type = "cpu";
418c2ecf20Sopenharmony_ci			compatible = "arm,armv8";
428c2ecf20Sopenharmony_ci			reg = <0x0 0x0>;
438c2ecf20Sopenharmony_ci			enable-method = "spin-table";
448c2ecf20Sopenharmony_ci			cpu-release-addr = <0x0 0x8000fff8>;
458c2ecf20Sopenharmony_ci			next-level-cache = <&L2_0>;
468c2ecf20Sopenharmony_ci		};
478c2ecf20Sopenharmony_ci		cpu@1 {
488c2ecf20Sopenharmony_ci			device_type = "cpu";
498c2ecf20Sopenharmony_ci			compatible = "arm,armv8";
508c2ecf20Sopenharmony_ci			reg = <0x0 0x1>;
518c2ecf20Sopenharmony_ci			enable-method = "spin-table";
528c2ecf20Sopenharmony_ci			cpu-release-addr = <0x0 0x8000fff8>;
538c2ecf20Sopenharmony_ci			next-level-cache = <&L2_0>;
548c2ecf20Sopenharmony_ci		};
558c2ecf20Sopenharmony_ci		cpu@2 {
568c2ecf20Sopenharmony_ci			device_type = "cpu";
578c2ecf20Sopenharmony_ci			compatible = "arm,armv8";
588c2ecf20Sopenharmony_ci			reg = <0x0 0x2>;
598c2ecf20Sopenharmony_ci			enable-method = "spin-table";
608c2ecf20Sopenharmony_ci			cpu-release-addr = <0x0 0x8000fff8>;
618c2ecf20Sopenharmony_ci			next-level-cache = <&L2_0>;
628c2ecf20Sopenharmony_ci		};
638c2ecf20Sopenharmony_ci		cpu@3 {
648c2ecf20Sopenharmony_ci			device_type = "cpu";
658c2ecf20Sopenharmony_ci			compatible = "arm,armv8";
668c2ecf20Sopenharmony_ci			reg = <0x0 0x3>;
678c2ecf20Sopenharmony_ci			enable-method = "spin-table";
688c2ecf20Sopenharmony_ci			cpu-release-addr = <0x0 0x8000fff8>;
698c2ecf20Sopenharmony_ci			next-level-cache = <&L2_0>;
708c2ecf20Sopenharmony_ci		};
718c2ecf20Sopenharmony_ci
728c2ecf20Sopenharmony_ci		L2_0: l2-cache0 {
738c2ecf20Sopenharmony_ci			compatible = "cache";
748c2ecf20Sopenharmony_ci		};
758c2ecf20Sopenharmony_ci	};
768c2ecf20Sopenharmony_ci
778c2ecf20Sopenharmony_ci	memory@80000000 {
788c2ecf20Sopenharmony_ci		device_type = "memory";
798c2ecf20Sopenharmony_ci		reg = <0x00000000 0x80000000 0 0x80000000>,
808c2ecf20Sopenharmony_ci		      <0x00000008 0x80000000 0 0x80000000>;
818c2ecf20Sopenharmony_ci	};
828c2ecf20Sopenharmony_ci
838c2ecf20Sopenharmony_ci	reserved-memory {
848c2ecf20Sopenharmony_ci		#address-cells = <2>;
858c2ecf20Sopenharmony_ci		#size-cells = <2>;
868c2ecf20Sopenharmony_ci		ranges;
878c2ecf20Sopenharmony_ci
888c2ecf20Sopenharmony_ci		/* Chipselect 2,00000000 is physically at 0x18000000 */
898c2ecf20Sopenharmony_ci		vram: vram@18000000 {
908c2ecf20Sopenharmony_ci			/* 8 MB of designated video RAM */
918c2ecf20Sopenharmony_ci			compatible = "shared-dma-pool";
928c2ecf20Sopenharmony_ci			reg = <0x00000000 0x18000000 0 0x00800000>;
938c2ecf20Sopenharmony_ci			no-map;
948c2ecf20Sopenharmony_ci		};
958c2ecf20Sopenharmony_ci	};
968c2ecf20Sopenharmony_ci
978c2ecf20Sopenharmony_ci	gic: interrupt-controller@2c001000 {
988c2ecf20Sopenharmony_ci		compatible = "arm,gic-400", "arm,cortex-a15-gic";
998c2ecf20Sopenharmony_ci		#interrupt-cells = <3>;
1008c2ecf20Sopenharmony_ci		#address-cells = <0>;
1018c2ecf20Sopenharmony_ci		interrupt-controller;
1028c2ecf20Sopenharmony_ci		reg = <0x0 0x2c001000 0 0x1000>,
1038c2ecf20Sopenharmony_ci		      <0x0 0x2c002000 0 0x2000>,
1048c2ecf20Sopenharmony_ci		      <0x0 0x2c004000 0 0x2000>,
1058c2ecf20Sopenharmony_ci		      <0x0 0x2c006000 0 0x2000>;
1068c2ecf20Sopenharmony_ci		interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
1078c2ecf20Sopenharmony_ci	};
1088c2ecf20Sopenharmony_ci
1098c2ecf20Sopenharmony_ci	timer {
1108c2ecf20Sopenharmony_ci		compatible = "arm,armv8-timer";
1118c2ecf20Sopenharmony_ci		interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
1128c2ecf20Sopenharmony_ci			     <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
1138c2ecf20Sopenharmony_ci			     <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
1148c2ecf20Sopenharmony_ci			     <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
1158c2ecf20Sopenharmony_ci		clock-frequency = <100000000>;
1168c2ecf20Sopenharmony_ci	};
1178c2ecf20Sopenharmony_ci
1188c2ecf20Sopenharmony_ci	pmu {
1198c2ecf20Sopenharmony_ci		compatible = "arm,armv8-pmuv3";
1208c2ecf20Sopenharmony_ci		interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>,
1218c2ecf20Sopenharmony_ci			     <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>,
1228c2ecf20Sopenharmony_ci			     <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>,
1238c2ecf20Sopenharmony_ci			     <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
1248c2ecf20Sopenharmony_ci	};
1258c2ecf20Sopenharmony_ci
1268c2ecf20Sopenharmony_ci	panel {
1278c2ecf20Sopenharmony_ci		compatible = "arm,rtsm-display";
1288c2ecf20Sopenharmony_ci		port {
1298c2ecf20Sopenharmony_ci			panel_in: endpoint {
1308c2ecf20Sopenharmony_ci				remote-endpoint = <&clcd_pads>;
1318c2ecf20Sopenharmony_ci			};
1328c2ecf20Sopenharmony_ci		};
1338c2ecf20Sopenharmony_ci	};
1348c2ecf20Sopenharmony_ci
1358c2ecf20Sopenharmony_ci	bus@8000000 {
1368c2ecf20Sopenharmony_ci		compatible = "simple-bus";
1378c2ecf20Sopenharmony_ci
1388c2ecf20Sopenharmony_ci		#address-cells = <2>;
1398c2ecf20Sopenharmony_ci		#size-cells = <1>;
1408c2ecf20Sopenharmony_ci		ranges = <0 0 0 0x08000000 0x04000000>,
1418c2ecf20Sopenharmony_ci			 <1 0 0 0x14000000 0x04000000>,
1428c2ecf20Sopenharmony_ci			 <2 0 0 0x18000000 0x04000000>,
1438c2ecf20Sopenharmony_ci			 <3 0 0 0x1c000000 0x04000000>,
1448c2ecf20Sopenharmony_ci			 <4 0 0 0x0c000000 0x04000000>,
1458c2ecf20Sopenharmony_ci			 <5 0 0 0x10000000 0x04000000>;
1468c2ecf20Sopenharmony_ci
1478c2ecf20Sopenharmony_ci		#interrupt-cells = <1>;
1488c2ecf20Sopenharmony_ci		interrupt-map-mask = <0 0 63>;
1498c2ecf20Sopenharmony_ci		interrupt-map = <0 0  0 &gic GIC_SPI  0 IRQ_TYPE_LEVEL_HIGH>,
1508c2ecf20Sopenharmony_ci				<0 0  1 &gic GIC_SPI  1 IRQ_TYPE_LEVEL_HIGH>,
1518c2ecf20Sopenharmony_ci				<0 0  2 &gic GIC_SPI  2 IRQ_TYPE_LEVEL_HIGH>,
1528c2ecf20Sopenharmony_ci				<0 0  3 &gic GIC_SPI  3 IRQ_TYPE_LEVEL_HIGH>,
1538c2ecf20Sopenharmony_ci				<0 0  4 &gic GIC_SPI  4 IRQ_TYPE_LEVEL_HIGH>,
1548c2ecf20Sopenharmony_ci				<0 0  5 &gic GIC_SPI  5 IRQ_TYPE_LEVEL_HIGH>,
1558c2ecf20Sopenharmony_ci				<0 0  6 &gic GIC_SPI  6 IRQ_TYPE_LEVEL_HIGH>,
1568c2ecf20Sopenharmony_ci				<0 0  7 &gic GIC_SPI  7 IRQ_TYPE_LEVEL_HIGH>,
1578c2ecf20Sopenharmony_ci				<0 0  8 &gic GIC_SPI  8 IRQ_TYPE_LEVEL_HIGH>,
1588c2ecf20Sopenharmony_ci				<0 0  9 &gic GIC_SPI  9 IRQ_TYPE_LEVEL_HIGH>,
1598c2ecf20Sopenharmony_ci				<0 0 10 &gic GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>,
1608c2ecf20Sopenharmony_ci				<0 0 11 &gic GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
1618c2ecf20Sopenharmony_ci				<0 0 12 &gic GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
1628c2ecf20Sopenharmony_ci				<0 0 13 &gic GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>,
1638c2ecf20Sopenharmony_ci				<0 0 14 &gic GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>,
1648c2ecf20Sopenharmony_ci				<0 0 15 &gic GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>,
1658c2ecf20Sopenharmony_ci				<0 0 16 &gic GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>,
1668c2ecf20Sopenharmony_ci				<0 0 17 &gic GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>,
1678c2ecf20Sopenharmony_ci				<0 0 18 &gic GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>,
1688c2ecf20Sopenharmony_ci				<0 0 19 &gic GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>,
1698c2ecf20Sopenharmony_ci				<0 0 20 &gic GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>,
1708c2ecf20Sopenharmony_ci				<0 0 21 &gic GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>,
1718c2ecf20Sopenharmony_ci				<0 0 22 &gic GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>,
1728c2ecf20Sopenharmony_ci				<0 0 23 &gic GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>,
1738c2ecf20Sopenharmony_ci				<0 0 24 &gic GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>,
1748c2ecf20Sopenharmony_ci				<0 0 25 &gic GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>,
1758c2ecf20Sopenharmony_ci				<0 0 26 &gic GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>,
1768c2ecf20Sopenharmony_ci				<0 0 27 &gic GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>,
1778c2ecf20Sopenharmony_ci				<0 0 28 &gic GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>,
1788c2ecf20Sopenharmony_ci				<0 0 29 &gic GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>,
1798c2ecf20Sopenharmony_ci				<0 0 30 &gic GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>,
1808c2ecf20Sopenharmony_ci				<0 0 31 &gic GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>,
1818c2ecf20Sopenharmony_ci				<0 0 32 &gic GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>,
1828c2ecf20Sopenharmony_ci				<0 0 33 &gic GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>,
1838c2ecf20Sopenharmony_ci				<0 0 34 &gic GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>,
1848c2ecf20Sopenharmony_ci				<0 0 35 &gic GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>,
1858c2ecf20Sopenharmony_ci				<0 0 36 &gic GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>,
1868c2ecf20Sopenharmony_ci				<0 0 37 &gic GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>,
1878c2ecf20Sopenharmony_ci				<0 0 38 &gic GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>,
1888c2ecf20Sopenharmony_ci				<0 0 39 &gic GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>,
1898c2ecf20Sopenharmony_ci				<0 0 40 &gic GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
1908c2ecf20Sopenharmony_ci				<0 0 41 &gic GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>,
1918c2ecf20Sopenharmony_ci				<0 0 42 &gic GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
1928c2ecf20Sopenharmony_ci	};
1938c2ecf20Sopenharmony_ci};
194