18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * ARM Ltd. Versatile Express
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * LogicTile Express 20MG
68c2ecf20Sopenharmony_ci * V2F-1XV7
78c2ecf20Sopenharmony_ci *
88c2ecf20Sopenharmony_ci * Cortex-A53 (2 cores) Soft Macrocell Model
98c2ecf20Sopenharmony_ci *
108c2ecf20Sopenharmony_ci * HBI-0247C
118c2ecf20Sopenharmony_ci */
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci/dts-v1/;
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci#include <dt-bindings/interrupt-controller/arm-gic.h>
168c2ecf20Sopenharmony_ci#include "vexpress-v2m-rs1.dtsi"
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ci/ {
198c2ecf20Sopenharmony_ci	model = "V2F-1XV7 Cortex-A53x2 SMM";
208c2ecf20Sopenharmony_ci	arm,hbi = <0x247>;
218c2ecf20Sopenharmony_ci	arm,vexpress,site = <0xf>;
228c2ecf20Sopenharmony_ci	compatible = "arm,vexpress,v2f-1xv7,ca53x2", "arm,vexpress,v2f-1xv7", "arm,vexpress";
238c2ecf20Sopenharmony_ci	interrupt-parent = <&gic>;
248c2ecf20Sopenharmony_ci	#address-cells = <2>;
258c2ecf20Sopenharmony_ci	#size-cells = <2>;
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ci	chosen {
288c2ecf20Sopenharmony_ci		stdout-path = "serial0:38400n8";
298c2ecf20Sopenharmony_ci	};
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_ci	aliases {
328c2ecf20Sopenharmony_ci		serial0 = &v2m_serial0;
338c2ecf20Sopenharmony_ci		serial1 = &v2m_serial1;
348c2ecf20Sopenharmony_ci		serial2 = &v2m_serial2;
358c2ecf20Sopenharmony_ci		serial3 = &v2m_serial3;
368c2ecf20Sopenharmony_ci		i2c0 = &v2m_i2c_dvi;
378c2ecf20Sopenharmony_ci		i2c1 = &v2m_i2c_pcie;
388c2ecf20Sopenharmony_ci	};
398c2ecf20Sopenharmony_ci
408c2ecf20Sopenharmony_ci	cpus {
418c2ecf20Sopenharmony_ci		#address-cells = <2>;
428c2ecf20Sopenharmony_ci		#size-cells = <0>;
438c2ecf20Sopenharmony_ci
448c2ecf20Sopenharmony_ci		cpu@0 {
458c2ecf20Sopenharmony_ci			device_type = "cpu";
468c2ecf20Sopenharmony_ci			compatible = "arm,cortex-a53";
478c2ecf20Sopenharmony_ci			reg = <0 0>;
488c2ecf20Sopenharmony_ci			next-level-cache = <&L2_0>;
498c2ecf20Sopenharmony_ci		};
508c2ecf20Sopenharmony_ci
518c2ecf20Sopenharmony_ci		cpu@1 {
528c2ecf20Sopenharmony_ci			device_type = "cpu";
538c2ecf20Sopenharmony_ci			compatible = "arm,cortex-a53";
548c2ecf20Sopenharmony_ci			reg = <0 1>;
558c2ecf20Sopenharmony_ci			next-level-cache = <&L2_0>;
568c2ecf20Sopenharmony_ci		};
578c2ecf20Sopenharmony_ci
588c2ecf20Sopenharmony_ci		L2_0: l2-cache0 {
598c2ecf20Sopenharmony_ci			compatible = "cache";
608c2ecf20Sopenharmony_ci		};
618c2ecf20Sopenharmony_ci	};
628c2ecf20Sopenharmony_ci
638c2ecf20Sopenharmony_ci	memory@80000000 {
648c2ecf20Sopenharmony_ci		device_type = "memory";
658c2ecf20Sopenharmony_ci		reg = <0 0x80000000 0 0x80000000>; /* 2GB @ 2GB */
668c2ecf20Sopenharmony_ci	};
678c2ecf20Sopenharmony_ci
688c2ecf20Sopenharmony_ci	reserved-memory {
698c2ecf20Sopenharmony_ci		#address-cells = <2>;
708c2ecf20Sopenharmony_ci		#size-cells = <2>;
718c2ecf20Sopenharmony_ci		ranges;
728c2ecf20Sopenharmony_ci
738c2ecf20Sopenharmony_ci		/* Chipselect 2 is physically at 0x18000000 */
748c2ecf20Sopenharmony_ci		vram: vram@18000000 {
758c2ecf20Sopenharmony_ci			/* 8 MB of designated video RAM */
768c2ecf20Sopenharmony_ci			compatible = "shared-dma-pool";
778c2ecf20Sopenharmony_ci			reg = <0 0x18000000 0 0x00800000>;
788c2ecf20Sopenharmony_ci			no-map;
798c2ecf20Sopenharmony_ci		};
808c2ecf20Sopenharmony_ci	};
818c2ecf20Sopenharmony_ci
828c2ecf20Sopenharmony_ci	gic: interrupt-controller@2c001000 {
838c2ecf20Sopenharmony_ci		compatible = "arm,gic-400";
848c2ecf20Sopenharmony_ci		#interrupt-cells = <3>;
858c2ecf20Sopenharmony_ci		#address-cells = <0>;
868c2ecf20Sopenharmony_ci		interrupt-controller;
878c2ecf20Sopenharmony_ci		reg = <0 0x2c001000 0 0x1000>,
888c2ecf20Sopenharmony_ci		      <0 0x2c002000 0 0x2000>,
898c2ecf20Sopenharmony_ci		      <0 0x2c004000 0 0x2000>,
908c2ecf20Sopenharmony_ci		      <0 0x2c006000 0 0x2000>;
918c2ecf20Sopenharmony_ci		interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_HIGH)>;
928c2ecf20Sopenharmony_ci	};
938c2ecf20Sopenharmony_ci
948c2ecf20Sopenharmony_ci	timer {
958c2ecf20Sopenharmony_ci		compatible = "arm,armv8-timer";
968c2ecf20Sopenharmony_ci		interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
978c2ecf20Sopenharmony_ci			     <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
988c2ecf20Sopenharmony_ci			     <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
998c2ecf20Sopenharmony_ci			     <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>;
1008c2ecf20Sopenharmony_ci	};
1018c2ecf20Sopenharmony_ci
1028c2ecf20Sopenharmony_ci	pmu {
1038c2ecf20Sopenharmony_ci		compatible = "arm,armv8-pmuv3";
1048c2ecf20Sopenharmony_ci		interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>,
1058c2ecf20Sopenharmony_ci			     <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
1068c2ecf20Sopenharmony_ci	};
1078c2ecf20Sopenharmony_ci
1088c2ecf20Sopenharmony_ci	dcc {
1098c2ecf20Sopenharmony_ci		compatible = "arm,vexpress,config-bus";
1108c2ecf20Sopenharmony_ci		arm,vexpress,config-bridge = <&v2m_sysreg>;
1118c2ecf20Sopenharmony_ci
1128c2ecf20Sopenharmony_ci		smbclk: smclk {
1138c2ecf20Sopenharmony_ci			/* SMC clock */
1148c2ecf20Sopenharmony_ci			compatible = "arm,vexpress-osc";
1158c2ecf20Sopenharmony_ci			arm,vexpress-sysreg,func = <1 4>;
1168c2ecf20Sopenharmony_ci			freq-range = <40000000 40000000>;
1178c2ecf20Sopenharmony_ci			#clock-cells = <0>;
1188c2ecf20Sopenharmony_ci			clock-output-names = "smclk";
1198c2ecf20Sopenharmony_ci		};
1208c2ecf20Sopenharmony_ci
1218c2ecf20Sopenharmony_ci		volt-vio {
1228c2ecf20Sopenharmony_ci			/* VIO to expansion board above */
1238c2ecf20Sopenharmony_ci			compatible = "arm,vexpress-volt";
1248c2ecf20Sopenharmony_ci			arm,vexpress-sysreg,func = <2 0>;
1258c2ecf20Sopenharmony_ci			regulator-name = "VIO_UP";
1268c2ecf20Sopenharmony_ci			regulator-min-microvolt = <800000>;
1278c2ecf20Sopenharmony_ci			regulator-max-microvolt = <1800000>;
1288c2ecf20Sopenharmony_ci			regulator-always-on;
1298c2ecf20Sopenharmony_ci		};
1308c2ecf20Sopenharmony_ci
1318c2ecf20Sopenharmony_ci		volt-12v {
1328c2ecf20Sopenharmony_ci			/* 12V from power connector J6 */
1338c2ecf20Sopenharmony_ci			compatible = "arm,vexpress-volt";
1348c2ecf20Sopenharmony_ci			arm,vexpress-sysreg,func = <2 1>;
1358c2ecf20Sopenharmony_ci			regulator-name = "12";
1368c2ecf20Sopenharmony_ci			regulator-always-on;
1378c2ecf20Sopenharmony_ci		};
1388c2ecf20Sopenharmony_ci
1398c2ecf20Sopenharmony_ci		temp-fpga {
1408c2ecf20Sopenharmony_ci			/* FPGA temperature */
1418c2ecf20Sopenharmony_ci			compatible = "arm,vexpress-temp";
1428c2ecf20Sopenharmony_ci			arm,vexpress-sysreg,func = <4 0>;
1438c2ecf20Sopenharmony_ci			label = "FPGA";
1448c2ecf20Sopenharmony_ci		};
1458c2ecf20Sopenharmony_ci	};
1468c2ecf20Sopenharmony_ci
1478c2ecf20Sopenharmony_ci	smb: bus@8000000 {
1488c2ecf20Sopenharmony_ci		compatible = "simple-bus";
1498c2ecf20Sopenharmony_ci
1508c2ecf20Sopenharmony_ci		#address-cells = <2>;
1518c2ecf20Sopenharmony_ci		#size-cells = <1>;
1528c2ecf20Sopenharmony_ci		ranges = <0 0 0 0x08000000 0x04000000>,
1538c2ecf20Sopenharmony_ci			 <1 0 0 0x14000000 0x04000000>,
1548c2ecf20Sopenharmony_ci			 <2 0 0 0x18000000 0x04000000>,
1558c2ecf20Sopenharmony_ci			 <3 0 0 0x1c000000 0x04000000>,
1568c2ecf20Sopenharmony_ci			 <4 0 0 0x0c000000 0x04000000>,
1578c2ecf20Sopenharmony_ci			 <5 0 0 0x10000000 0x04000000>;
1588c2ecf20Sopenharmony_ci
1598c2ecf20Sopenharmony_ci		#interrupt-cells = <1>;
1608c2ecf20Sopenharmony_ci		interrupt-map-mask = <0 0 63>;
1618c2ecf20Sopenharmony_ci		interrupt-map = <0 0  0 &gic GIC_SPI  0 IRQ_TYPE_LEVEL_HIGH>,
1628c2ecf20Sopenharmony_ci				<0 0  1 &gic GIC_SPI  1 IRQ_TYPE_LEVEL_HIGH>,
1638c2ecf20Sopenharmony_ci				<0 0  2 &gic GIC_SPI  2 IRQ_TYPE_LEVEL_HIGH>,
1648c2ecf20Sopenharmony_ci				<0 0  3 &gic GIC_SPI  3 IRQ_TYPE_LEVEL_HIGH>,
1658c2ecf20Sopenharmony_ci				<0 0  4 &gic GIC_SPI  4 IRQ_TYPE_LEVEL_HIGH>,
1668c2ecf20Sopenharmony_ci				<0 0  5 &gic GIC_SPI  5 IRQ_TYPE_LEVEL_HIGH>,
1678c2ecf20Sopenharmony_ci				<0 0  6 &gic GIC_SPI  6 IRQ_TYPE_LEVEL_HIGH>,
1688c2ecf20Sopenharmony_ci				<0 0  7 &gic GIC_SPI  7 IRQ_TYPE_LEVEL_HIGH>,
1698c2ecf20Sopenharmony_ci				<0 0  8 &gic GIC_SPI  8 IRQ_TYPE_LEVEL_HIGH>,
1708c2ecf20Sopenharmony_ci				<0 0  9 &gic GIC_SPI  9 IRQ_TYPE_LEVEL_HIGH>,
1718c2ecf20Sopenharmony_ci				<0 0 10 &gic GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>,
1728c2ecf20Sopenharmony_ci				<0 0 11 &gic GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
1738c2ecf20Sopenharmony_ci				<0 0 12 &gic GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
1748c2ecf20Sopenharmony_ci				<0 0 13 &gic GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>,
1758c2ecf20Sopenharmony_ci				<0 0 14 &gic GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>,
1768c2ecf20Sopenharmony_ci				<0 0 15 &gic GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>,
1778c2ecf20Sopenharmony_ci				<0 0 16 &gic GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>,
1788c2ecf20Sopenharmony_ci				<0 0 17 &gic GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>,
1798c2ecf20Sopenharmony_ci				<0 0 18 &gic GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>,
1808c2ecf20Sopenharmony_ci				<0 0 19 &gic GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>,
1818c2ecf20Sopenharmony_ci				<0 0 20 &gic GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>,
1828c2ecf20Sopenharmony_ci				<0 0 21 &gic GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>,
1838c2ecf20Sopenharmony_ci				<0 0 22 &gic GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>,
1848c2ecf20Sopenharmony_ci				<0 0 23 &gic GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>,
1858c2ecf20Sopenharmony_ci				<0 0 24 &gic GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>,
1868c2ecf20Sopenharmony_ci				<0 0 25 &gic GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>,
1878c2ecf20Sopenharmony_ci				<0 0 26 &gic GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>,
1888c2ecf20Sopenharmony_ci				<0 0 27 &gic GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>,
1898c2ecf20Sopenharmony_ci				<0 0 28 &gic GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>,
1908c2ecf20Sopenharmony_ci				<0 0 29 &gic GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>,
1918c2ecf20Sopenharmony_ci				<0 0 30 &gic GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>,
1928c2ecf20Sopenharmony_ci				<0 0 31 &gic GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>,
1938c2ecf20Sopenharmony_ci				<0 0 32 &gic GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>,
1948c2ecf20Sopenharmony_ci				<0 0 33 &gic GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>,
1958c2ecf20Sopenharmony_ci				<0 0 34 &gic GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>,
1968c2ecf20Sopenharmony_ci				<0 0 35 &gic GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>,
1978c2ecf20Sopenharmony_ci				<0 0 36 &gic GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>,
1988c2ecf20Sopenharmony_ci				<0 0 37 &gic GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>,
1998c2ecf20Sopenharmony_ci				<0 0 38 &gic GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>,
2008c2ecf20Sopenharmony_ci				<0 0 39 &gic GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>,
2018c2ecf20Sopenharmony_ci				<0 0 40 &gic GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
2028c2ecf20Sopenharmony_ci				<0 0 41 &gic GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>,
2038c2ecf20Sopenharmony_ci				<0 0 42 &gic GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
2048c2ecf20Sopenharmony_ci	};
2058c2ecf20Sopenharmony_ci};
206