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 * FVP Base RevC
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#include "rtsm_ve-motherboard-rs2.dtsi"
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ci/ {
218c2ecf20Sopenharmony_ci	model = "FVP Base RevC";
228c2ecf20Sopenharmony_ci	compatible = "arm,fvp-base-revc", "arm,vexpress";
238c2ecf20Sopenharmony_ci	interrupt-parent = <&gic>;
248c2ecf20Sopenharmony_ci	#address-cells = <2>;
258c2ecf20Sopenharmony_ci	#size-cells = <2>;
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ci	chosen { };
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ci	aliases {
308c2ecf20Sopenharmony_ci		serial0 = &v2m_serial0;
318c2ecf20Sopenharmony_ci		serial1 = &v2m_serial1;
328c2ecf20Sopenharmony_ci		serial2 = &v2m_serial2;
338c2ecf20Sopenharmony_ci		serial3 = &v2m_serial3;
348c2ecf20Sopenharmony_ci	};
358c2ecf20Sopenharmony_ci
368c2ecf20Sopenharmony_ci	psci {
378c2ecf20Sopenharmony_ci		compatible = "arm,psci-0.2";
388c2ecf20Sopenharmony_ci		method = "smc";
398c2ecf20Sopenharmony_ci	};
408c2ecf20Sopenharmony_ci
418c2ecf20Sopenharmony_ci	cpus {
428c2ecf20Sopenharmony_ci		#address-cells = <2>;
438c2ecf20Sopenharmony_ci		#size-cells = <0>;
448c2ecf20Sopenharmony_ci
458c2ecf20Sopenharmony_ci		cpu0: cpu@0 {
468c2ecf20Sopenharmony_ci			device_type = "cpu";
478c2ecf20Sopenharmony_ci			compatible = "arm,armv8";
488c2ecf20Sopenharmony_ci			reg = <0x0 0x000>;
498c2ecf20Sopenharmony_ci			enable-method = "psci";
508c2ecf20Sopenharmony_ci		};
518c2ecf20Sopenharmony_ci		cpu1: cpu@100 {
528c2ecf20Sopenharmony_ci			device_type = "cpu";
538c2ecf20Sopenharmony_ci			compatible = "arm,armv8";
548c2ecf20Sopenharmony_ci			reg = <0x0 0x100>;
558c2ecf20Sopenharmony_ci			enable-method = "psci";
568c2ecf20Sopenharmony_ci		};
578c2ecf20Sopenharmony_ci		cpu2: cpu@200 {
588c2ecf20Sopenharmony_ci			device_type = "cpu";
598c2ecf20Sopenharmony_ci			compatible = "arm,armv8";
608c2ecf20Sopenharmony_ci			reg = <0x0 0x200>;
618c2ecf20Sopenharmony_ci			enable-method = "psci";
628c2ecf20Sopenharmony_ci		};
638c2ecf20Sopenharmony_ci		cpu3: cpu@300 {
648c2ecf20Sopenharmony_ci			device_type = "cpu";
658c2ecf20Sopenharmony_ci			compatible = "arm,armv8";
668c2ecf20Sopenharmony_ci			reg = <0x0 0x300>;
678c2ecf20Sopenharmony_ci			enable-method = "psci";
688c2ecf20Sopenharmony_ci		};
698c2ecf20Sopenharmony_ci		cpu4: cpu@10000 {
708c2ecf20Sopenharmony_ci			device_type = "cpu";
718c2ecf20Sopenharmony_ci			compatible = "arm,armv8";
728c2ecf20Sopenharmony_ci			reg = <0x0 0x10000>;
738c2ecf20Sopenharmony_ci			enable-method = "psci";
748c2ecf20Sopenharmony_ci		};
758c2ecf20Sopenharmony_ci		cpu5: cpu@10100 {
768c2ecf20Sopenharmony_ci			device_type = "cpu";
778c2ecf20Sopenharmony_ci			compatible = "arm,armv8";
788c2ecf20Sopenharmony_ci			reg = <0x0 0x10100>;
798c2ecf20Sopenharmony_ci			enable-method = "psci";
808c2ecf20Sopenharmony_ci		};
818c2ecf20Sopenharmony_ci		cpu6: cpu@10200 {
828c2ecf20Sopenharmony_ci			device_type = "cpu";
838c2ecf20Sopenharmony_ci			compatible = "arm,armv8";
848c2ecf20Sopenharmony_ci			reg = <0x0 0x10200>;
858c2ecf20Sopenharmony_ci			enable-method = "psci";
868c2ecf20Sopenharmony_ci		};
878c2ecf20Sopenharmony_ci		cpu7: cpu@10300 {
888c2ecf20Sopenharmony_ci			device_type = "cpu";
898c2ecf20Sopenharmony_ci			compatible = "arm,armv8";
908c2ecf20Sopenharmony_ci			reg = <0x0 0x10300>;
918c2ecf20Sopenharmony_ci			enable-method = "psci";
928c2ecf20Sopenharmony_ci		};
938c2ecf20Sopenharmony_ci	};
948c2ecf20Sopenharmony_ci
958c2ecf20Sopenharmony_ci	memory@80000000 {
968c2ecf20Sopenharmony_ci		device_type = "memory";
978c2ecf20Sopenharmony_ci		reg = <0x00000000 0x80000000 0 0x80000000>,
988c2ecf20Sopenharmony_ci		      <0x00000008 0x80000000 0 0x80000000>;
998c2ecf20Sopenharmony_ci	};
1008c2ecf20Sopenharmony_ci
1018c2ecf20Sopenharmony_ci	reserved-memory {
1028c2ecf20Sopenharmony_ci		#address-cells = <2>;
1038c2ecf20Sopenharmony_ci		#size-cells = <2>;
1048c2ecf20Sopenharmony_ci		ranges;
1058c2ecf20Sopenharmony_ci
1068c2ecf20Sopenharmony_ci		/* Chipselect 2,00000000 is physically at 0x18000000 */
1078c2ecf20Sopenharmony_ci		vram: vram@18000000 {
1088c2ecf20Sopenharmony_ci			/* 8 MB of designated video RAM */
1098c2ecf20Sopenharmony_ci			compatible = "shared-dma-pool";
1108c2ecf20Sopenharmony_ci			reg = <0x00000000 0x18000000 0 0x00800000>;
1118c2ecf20Sopenharmony_ci			no-map;
1128c2ecf20Sopenharmony_ci		};
1138c2ecf20Sopenharmony_ci	};
1148c2ecf20Sopenharmony_ci
1158c2ecf20Sopenharmony_ci	gic: interrupt-controller@2f000000 {
1168c2ecf20Sopenharmony_ci		compatible = "arm,gic-v3";
1178c2ecf20Sopenharmony_ci		#interrupt-cells = <3>;
1188c2ecf20Sopenharmony_ci		#address-cells = <2>;
1198c2ecf20Sopenharmony_ci		#size-cells = <2>;
1208c2ecf20Sopenharmony_ci		ranges;
1218c2ecf20Sopenharmony_ci		interrupt-controller;
1228c2ecf20Sopenharmony_ci		reg = <0x0 0x2f000000 0 0x10000>,	// GICD
1238c2ecf20Sopenharmony_ci		      <0x0 0x2f100000 0 0x200000>,	// GICR
1248c2ecf20Sopenharmony_ci		      <0x0 0x2c000000 0 0x2000>,	// GICC
1258c2ecf20Sopenharmony_ci		      <0x0 0x2c010000 0 0x2000>,	// GICH
1268c2ecf20Sopenharmony_ci		      <0x0 0x2c02f000 0 0x2000>;	// GICV
1278c2ecf20Sopenharmony_ci		interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
1288c2ecf20Sopenharmony_ci
1298c2ecf20Sopenharmony_ci		its: msi-controller@2f020000 {
1308c2ecf20Sopenharmony_ci			#msi-cells = <1>;
1318c2ecf20Sopenharmony_ci			compatible = "arm,gic-v3-its";
1328c2ecf20Sopenharmony_ci			reg = <0x0 0x2f020000 0x0 0x20000>; // GITS
1338c2ecf20Sopenharmony_ci			msi-controller;
1348c2ecf20Sopenharmony_ci		};
1358c2ecf20Sopenharmony_ci	};
1368c2ecf20Sopenharmony_ci
1378c2ecf20Sopenharmony_ci	timer {
1388c2ecf20Sopenharmony_ci		compatible = "arm,armv8-timer";
1398c2ecf20Sopenharmony_ci		interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>,
1408c2ecf20Sopenharmony_ci			     <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>,
1418c2ecf20Sopenharmony_ci			     <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>,
1428c2ecf20Sopenharmony_ci			     <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>;
1438c2ecf20Sopenharmony_ci	};
1448c2ecf20Sopenharmony_ci
1458c2ecf20Sopenharmony_ci	pmu {
1468c2ecf20Sopenharmony_ci		compatible = "arm,armv8-pmuv3";
1478c2ecf20Sopenharmony_ci		interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_HIGH>;
1488c2ecf20Sopenharmony_ci	};
1498c2ecf20Sopenharmony_ci
1508c2ecf20Sopenharmony_ci	spe-pmu {
1518c2ecf20Sopenharmony_ci		compatible = "arm,statistical-profiling-extension-v1";
1528c2ecf20Sopenharmony_ci		interrupts = <GIC_PPI 5 IRQ_TYPE_LEVEL_HIGH>;
1538c2ecf20Sopenharmony_ci	};
1548c2ecf20Sopenharmony_ci
1558c2ecf20Sopenharmony_ci	pci: pci@40000000 {
1568c2ecf20Sopenharmony_ci		#address-cells = <0x3>;
1578c2ecf20Sopenharmony_ci		#size-cells = <0x2>;
1588c2ecf20Sopenharmony_ci		#interrupt-cells = <0x1>;
1598c2ecf20Sopenharmony_ci		compatible = "pci-host-ecam-generic";
1608c2ecf20Sopenharmony_ci		device_type = "pci";
1618c2ecf20Sopenharmony_ci		bus-range = <0x0 0x1>;
1628c2ecf20Sopenharmony_ci		reg = <0x0 0x40000000 0x0 0x10000000>;
1638c2ecf20Sopenharmony_ci		ranges = <0x2000000 0x0 0x50000000 0x0 0x50000000 0x0 0x10000000>;
1648c2ecf20Sopenharmony_ci		interrupt-map = <0 0 0 1 &gic 0 0 GIC_SPI 168 IRQ_TYPE_LEVEL_HIGH>,
1658c2ecf20Sopenharmony_ci				<0 0 0 2 &gic 0 0 GIC_SPI 169 IRQ_TYPE_LEVEL_HIGH>,
1668c2ecf20Sopenharmony_ci				<0 0 0 3 &gic 0 0 GIC_SPI 170 IRQ_TYPE_LEVEL_HIGH>,
1678c2ecf20Sopenharmony_ci				<0 0 0 4 &gic 0 0 GIC_SPI 171 IRQ_TYPE_LEVEL_HIGH>;
1688c2ecf20Sopenharmony_ci		interrupt-map-mask = <0x0 0x0 0x0 0x7>;
1698c2ecf20Sopenharmony_ci		msi-map = <0x0 &its 0x0 0x10000>;
1708c2ecf20Sopenharmony_ci		iommu-map = <0x0 &smmu 0x0 0x10000>;
1718c2ecf20Sopenharmony_ci
1728c2ecf20Sopenharmony_ci		dma-coherent;
1738c2ecf20Sopenharmony_ci	};
1748c2ecf20Sopenharmony_ci
1758c2ecf20Sopenharmony_ci	smmu: iommu@2b400000 {
1768c2ecf20Sopenharmony_ci		compatible = "arm,smmu-v3";
1778c2ecf20Sopenharmony_ci		reg = <0x0 0x2b400000 0x0 0x100000>;
1788c2ecf20Sopenharmony_ci		interrupts = <GIC_SPI 74 IRQ_TYPE_EDGE_RISING>,
1798c2ecf20Sopenharmony_ci			     <GIC_SPI 79 IRQ_TYPE_EDGE_RISING>,
1808c2ecf20Sopenharmony_ci			     <GIC_SPI 75 IRQ_TYPE_EDGE_RISING>,
1818c2ecf20Sopenharmony_ci			     <GIC_SPI 77 IRQ_TYPE_EDGE_RISING>;
1828c2ecf20Sopenharmony_ci		interrupt-names = "eventq", "gerror", "priq", "cmdq-sync";
1838c2ecf20Sopenharmony_ci		dma-coherent;
1848c2ecf20Sopenharmony_ci		#iommu-cells = <1>;
1858c2ecf20Sopenharmony_ci		msi-parent = <&its 0x10000>;
1868c2ecf20Sopenharmony_ci	};
1878c2ecf20Sopenharmony_ci
1888c2ecf20Sopenharmony_ci	panel {
1898c2ecf20Sopenharmony_ci		compatible = "arm,rtsm-display", "panel-dpi";
1908c2ecf20Sopenharmony_ci		port {
1918c2ecf20Sopenharmony_ci			panel_in: endpoint {
1928c2ecf20Sopenharmony_ci				remote-endpoint = <&clcd_pads>;
1938c2ecf20Sopenharmony_ci			};
1948c2ecf20Sopenharmony_ci		};
1958c2ecf20Sopenharmony_ci
1968c2ecf20Sopenharmony_ci	       panel-timing {
1978c2ecf20Sopenharmony_ci		       clock-frequency = <63500127>;
1988c2ecf20Sopenharmony_ci		       hactive = <1024>;
1998c2ecf20Sopenharmony_ci		       hback-porch = <152>;
2008c2ecf20Sopenharmony_ci		       hfront-porch = <48>;
2018c2ecf20Sopenharmony_ci		       hsync-len = <104>;
2028c2ecf20Sopenharmony_ci		       vactive = <768>;
2038c2ecf20Sopenharmony_ci		       vback-porch = <23>;
2048c2ecf20Sopenharmony_ci		       vfront-porch = <3>;
2058c2ecf20Sopenharmony_ci		       vsync-len = <4>;
2068c2ecf20Sopenharmony_ci	       };
2078c2ecf20Sopenharmony_ci	};
2088c2ecf20Sopenharmony_ci
2098c2ecf20Sopenharmony_ci	bus@8000000 {
2108c2ecf20Sopenharmony_ci		compatible = "simple-bus";
2118c2ecf20Sopenharmony_ci
2128c2ecf20Sopenharmony_ci		#address-cells = <2>;
2138c2ecf20Sopenharmony_ci		#size-cells = <1>;
2148c2ecf20Sopenharmony_ci		ranges = <0 0 0 0x08000000 0x04000000>,
2158c2ecf20Sopenharmony_ci			 <1 0 0 0x14000000 0x04000000>,
2168c2ecf20Sopenharmony_ci			 <2 0 0 0x18000000 0x04000000>,
2178c2ecf20Sopenharmony_ci			 <3 0 0 0x1c000000 0x04000000>,
2188c2ecf20Sopenharmony_ci			 <4 0 0 0x0c000000 0x04000000>,
2198c2ecf20Sopenharmony_ci			 <5 0 0 0x10000000 0x04000000>;
2208c2ecf20Sopenharmony_ci
2218c2ecf20Sopenharmony_ci		#interrupt-cells = <1>;
2228c2ecf20Sopenharmony_ci		interrupt-map-mask = <0 0 63>;
2238c2ecf20Sopenharmony_ci		interrupt-map = <0 0  0 &gic 0 0 GIC_SPI  0 IRQ_TYPE_LEVEL_HIGH>,
2248c2ecf20Sopenharmony_ci				<0 0  1 &gic 0 0 GIC_SPI  1 IRQ_TYPE_LEVEL_HIGH>,
2258c2ecf20Sopenharmony_ci				<0 0  2 &gic 0 0 GIC_SPI  2 IRQ_TYPE_LEVEL_HIGH>,
2268c2ecf20Sopenharmony_ci				<0 0  3 &gic 0 0 GIC_SPI  3 IRQ_TYPE_LEVEL_HIGH>,
2278c2ecf20Sopenharmony_ci				<0 0  4 &gic 0 0 GIC_SPI  4 IRQ_TYPE_LEVEL_HIGH>,
2288c2ecf20Sopenharmony_ci				<0 0  5 &gic 0 0 GIC_SPI  5 IRQ_TYPE_LEVEL_HIGH>,
2298c2ecf20Sopenharmony_ci				<0 0  6 &gic 0 0 GIC_SPI  6 IRQ_TYPE_LEVEL_HIGH>,
2308c2ecf20Sopenharmony_ci				<0 0  7 &gic 0 0 GIC_SPI  7 IRQ_TYPE_LEVEL_HIGH>,
2318c2ecf20Sopenharmony_ci				<0 0  8 &gic 0 0 GIC_SPI  8 IRQ_TYPE_LEVEL_HIGH>,
2328c2ecf20Sopenharmony_ci				<0 0  9 &gic 0 0 GIC_SPI  9 IRQ_TYPE_LEVEL_HIGH>,
2338c2ecf20Sopenharmony_ci				<0 0 10 &gic 0 0 GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>,
2348c2ecf20Sopenharmony_ci				<0 0 11 &gic 0 0 GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
2358c2ecf20Sopenharmony_ci				<0 0 12 &gic 0 0 GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
2368c2ecf20Sopenharmony_ci				<0 0 13 &gic 0 0 GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>,
2378c2ecf20Sopenharmony_ci				<0 0 14 &gic 0 0 GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>,
2388c2ecf20Sopenharmony_ci				<0 0 15 &gic 0 0 GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>,
2398c2ecf20Sopenharmony_ci				<0 0 16 &gic 0 0 GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>,
2408c2ecf20Sopenharmony_ci				<0 0 17 &gic 0 0 GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>,
2418c2ecf20Sopenharmony_ci				<0 0 18 &gic 0 0 GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>,
2428c2ecf20Sopenharmony_ci				<0 0 19 &gic 0 0 GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>,
2438c2ecf20Sopenharmony_ci				<0 0 20 &gic 0 0 GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>,
2448c2ecf20Sopenharmony_ci				<0 0 21 &gic 0 0 GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>,
2458c2ecf20Sopenharmony_ci				<0 0 22 &gic 0 0 GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>,
2468c2ecf20Sopenharmony_ci				<0 0 23 &gic 0 0 GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>,
2478c2ecf20Sopenharmony_ci				<0 0 24 &gic 0 0 GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>,
2488c2ecf20Sopenharmony_ci				<0 0 25 &gic 0 0 GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>,
2498c2ecf20Sopenharmony_ci				<0 0 26 &gic 0 0 GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>,
2508c2ecf20Sopenharmony_ci				<0 0 27 &gic 0 0 GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>,
2518c2ecf20Sopenharmony_ci				<0 0 28 &gic 0 0 GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>,
2528c2ecf20Sopenharmony_ci				<0 0 29 &gic 0 0 GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>,
2538c2ecf20Sopenharmony_ci				<0 0 30 &gic 0 0 GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>,
2548c2ecf20Sopenharmony_ci				<0 0 31 &gic 0 0 GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>,
2558c2ecf20Sopenharmony_ci				<0 0 32 &gic 0 0 GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>,
2568c2ecf20Sopenharmony_ci				<0 0 33 &gic 0 0 GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>,
2578c2ecf20Sopenharmony_ci				<0 0 34 &gic 0 0 GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>,
2588c2ecf20Sopenharmony_ci				<0 0 35 &gic 0 0 GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>,
2598c2ecf20Sopenharmony_ci				<0 0 36 &gic 0 0 GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>,
2608c2ecf20Sopenharmony_ci				<0 0 37 &gic 0 0 GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>,
2618c2ecf20Sopenharmony_ci				<0 0 38 &gic 0 0 GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>,
2628c2ecf20Sopenharmony_ci				<0 0 39 &gic 0 0 GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>,
2638c2ecf20Sopenharmony_ci				<0 0 40 &gic 0 0 GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
2648c2ecf20Sopenharmony_ci				<0 0 41 &gic 0 0 GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>,
2658c2ecf20Sopenharmony_ci				<0 0 42 &gic 0 0 GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>,
2668c2ecf20Sopenharmony_ci				<0 0 43 &gic 0 0 GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>,
2678c2ecf20Sopenharmony_ci				<0 0 44 &gic 0 0 GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
2688c2ecf20Sopenharmony_ci	};
2698c2ecf20Sopenharmony_ci};
270