1b2441318SGreg Kroah-Hartman// SPDX-License-Identifier: GPL-2.0
29ccd6080SKristina Martsenko/*
39ccd6080SKristina Martsenko * ARM Ltd. Versatile Express
49ccd6080SKristina Martsenko *
59ccd6080SKristina Martsenko * LogicTile Express 20MG
69ccd6080SKristina Martsenko * V2F-1XV7
79ccd6080SKristina Martsenko *
89ccd6080SKristina Martsenko * Cortex-A53 (2 cores) Soft Macrocell Model
99ccd6080SKristina Martsenko *
109ccd6080SKristina Martsenko * HBI-0247C
119ccd6080SKristina Martsenko */
129ccd6080SKristina Martsenko
139ccd6080SKristina Martsenko/dts-v1/;
149ccd6080SKristina Martsenko
159ccd6080SKristina Martsenko#include <dt-bindings/interrupt-controller/arm-gic.h>
16bd7aff03SLinus Walleij#include "vexpress-v2m-rs1.dtsi"
179ccd6080SKristina Martsenko
189ccd6080SKristina Martsenko/ {
199ccd6080SKristina Martsenko	model = "V2F-1XV7 Cortex-A53x2 SMM";
209ccd6080SKristina Martsenko	arm,hbi = <0x247>;
219ccd6080SKristina Martsenko	arm,vexpress,site = <0xf>;
229ccd6080SKristina Martsenko	compatible = "arm,vexpress,v2f-1xv7,ca53x2", "arm,vexpress,v2f-1xv7", "arm,vexpress";
239ccd6080SKristina Martsenko	interrupt-parent = <&gic>;
249ccd6080SKristina Martsenko	#address-cells = <2>;
259ccd6080SKristina Martsenko	#size-cells = <2>;
269ccd6080SKristina Martsenko
279ccd6080SKristina Martsenko	chosen {
289ccd6080SKristina Martsenko		stdout-path = "serial0:38400n8";
299ccd6080SKristina Martsenko	};
309ccd6080SKristina Martsenko
319ccd6080SKristina Martsenko	aliases {
329ccd6080SKristina Martsenko		serial0 = &v2m_serial0;
339ccd6080SKristina Martsenko		serial1 = &v2m_serial1;
349ccd6080SKristina Martsenko		serial2 = &v2m_serial2;
359ccd6080SKristina Martsenko		serial3 = &v2m_serial3;
369ccd6080SKristina Martsenko		i2c0 = &v2m_i2c_dvi;
379ccd6080SKristina Martsenko		i2c1 = &v2m_i2c_pcie;
389ccd6080SKristina Martsenko	};
399ccd6080SKristina Martsenko
409ccd6080SKristina Martsenko	cpus {
419ccd6080SKristina Martsenko		#address-cells = <2>;
429ccd6080SKristina Martsenko		#size-cells = <0>;
439ccd6080SKristina Martsenko
449ccd6080SKristina Martsenko		cpu@0 {
459ccd6080SKristina Martsenko			device_type = "cpu";
469ccd6080SKristina Martsenko			compatible = "arm,cortex-a53", "arm,armv8";
479ccd6080SKristina Martsenko			reg = <0 0>;
489ccd6080SKristina Martsenko			next-level-cache = <&L2_0>;
499ccd6080SKristina Martsenko		};
509ccd6080SKristina Martsenko
519ccd6080SKristina Martsenko		cpu@1 {
529ccd6080SKristina Martsenko			device_type = "cpu";
539ccd6080SKristina Martsenko			compatible = "arm,cortex-a53", "arm,armv8";
549ccd6080SKristina Martsenko			reg = <0 1>;
559ccd6080SKristina Martsenko			next-level-cache = <&L2_0>;
569ccd6080SKristina Martsenko		};
579ccd6080SKristina Martsenko
589ccd6080SKristina Martsenko		L2_0: l2-cache0 {
599ccd6080SKristina Martsenko			compatible = "cache";
609ccd6080SKristina Martsenko		};
619ccd6080SKristina Martsenko	};
629ccd6080SKristina Martsenko
639ccd6080SKristina Martsenko	memory@80000000 {
649ccd6080SKristina Martsenko		device_type = "memory";
659ccd6080SKristina Martsenko		reg = <0 0x80000000 0 0x80000000>; /* 2GB @ 2GB */
669ccd6080SKristina Martsenko	};
679ccd6080SKristina Martsenko
68f1fe12c8SLinus Walleij	reserved-memory {
69f1fe12c8SLinus Walleij		#address-cells = <2>;
70f1fe12c8SLinus Walleij		#size-cells = <2>;
71f1fe12c8SLinus Walleij		ranges;
72f1fe12c8SLinus Walleij
73f1fe12c8SLinus Walleij		/* Chipselect 2 is physically at 0x18000000 */
74f1fe12c8SLinus Walleij		vram: vram@18000000 {
75f1fe12c8SLinus Walleij			/* 8 MB of designated video RAM */
76f1fe12c8SLinus Walleij			compatible = "shared-dma-pool";
77f1fe12c8SLinus Walleij			reg = <0 0x18000000 0 0x00800000>;
78f1fe12c8SLinus Walleij			no-map;
79f1fe12c8SLinus Walleij		};
80f1fe12c8SLinus Walleij	};
81f1fe12c8SLinus Walleij
829ccd6080SKristina Martsenko	gic: interrupt-controller@2c001000 {
839ccd6080SKristina Martsenko		compatible = "arm,gic-400";
849ccd6080SKristina Martsenko		#interrupt-cells = <3>;
859ccd6080SKristina Martsenko		#address-cells = <0>;
869ccd6080SKristina Martsenko		interrupt-controller;
879ccd6080SKristina Martsenko		reg = <0 0x2c001000 0 0x1000>,
889ccd6080SKristina Martsenko		      <0 0x2c002000 0 0x2000>,
899ccd6080SKristina Martsenko		      <0 0x2c004000 0 0x2000>,
909ccd6080SKristina Martsenko		      <0 0x2c006000 0 0x2000>;
919ccd6080SKristina Martsenko		interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_HIGH)>;
929ccd6080SKristina Martsenko	};
939ccd6080SKristina Martsenko
949ccd6080SKristina Martsenko	timer {
959ccd6080SKristina Martsenko		compatible = "arm,armv8-timer";
969ccd6080SKristina Martsenko		interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
979ccd6080SKristina Martsenko			     <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
989ccd6080SKristina Martsenko			     <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
999ccd6080SKristina Martsenko			     <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>;
1009ccd6080SKristina Martsenko	};
1019ccd6080SKristina Martsenko
1029ccd6080SKristina Martsenko	pmu {
1039ccd6080SKristina Martsenko		compatible = "arm,armv8-pmuv3";
1049ccd6080SKristina Martsenko		interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>,
1059ccd6080SKristina Martsenko			     <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
1069ccd6080SKristina Martsenko	};
1079ccd6080SKristina Martsenko
1089ccd6080SKristina Martsenko	dcc {
1099ccd6080SKristina Martsenko		compatible = "arm,vexpress,config-bus";
1109ccd6080SKristina Martsenko		arm,vexpress,config-bridge = <&v2m_sysreg>;
1119ccd6080SKristina Martsenko
1126d6acd14SSudeep Holla		smbclk: smclk {
1139ccd6080SKristina Martsenko			/* SMC clock */
1149ccd6080SKristina Martsenko			compatible = "arm,vexpress-osc";
1159ccd6080SKristina Martsenko			arm,vexpress-sysreg,func = <1 4>;
1169ccd6080SKristina Martsenko			freq-range = <40000000 40000000>;
1179ccd6080SKristina Martsenko			#clock-cells = <0>;
1189ccd6080SKristina Martsenko			clock-output-names = "smclk";
1199ccd6080SKristina Martsenko		};
1209ccd6080SKristina Martsenko
1216d6acd14SSudeep Holla		volt-vio {
1229ccd6080SKristina Martsenko			/* VIO to expansion board above */
1239ccd6080SKristina Martsenko			compatible = "arm,vexpress-volt";
1249ccd6080SKristina Martsenko			arm,vexpress-sysreg,func = <2 0>;
1259ccd6080SKristina Martsenko			regulator-name = "VIO_UP";
1269ccd6080SKristina Martsenko			regulator-min-microvolt = <800000>;
1279ccd6080SKristina Martsenko			regulator-max-microvolt = <1800000>;
1289ccd6080SKristina Martsenko			regulator-always-on;
1299ccd6080SKristina Martsenko		};
1309ccd6080SKristina Martsenko
1316d6acd14SSudeep Holla		volt-12v {
1329ccd6080SKristina Martsenko			/* 12V from power connector J6 */
1339ccd6080SKristina Martsenko			compatible = "arm,vexpress-volt";
1349ccd6080SKristina Martsenko			arm,vexpress-sysreg,func = <2 1>;
1359ccd6080SKristina Martsenko			regulator-name = "12";
1369ccd6080SKristina Martsenko			regulator-always-on;
1379ccd6080SKristina Martsenko		};
1389ccd6080SKristina Martsenko
1396d6acd14SSudeep Holla		temp-fpga {
1409ccd6080SKristina Martsenko			/* FPGA temperature */
1419ccd6080SKristina Martsenko			compatible = "arm,vexpress-temp";
1429ccd6080SKristina Martsenko			arm,vexpress-sysreg,func = <4 0>;
1439ccd6080SKristina Martsenko			label = "FPGA";
1449ccd6080SKristina Martsenko		};
1459ccd6080SKristina Martsenko	};
1469ccd6080SKristina Martsenko
147bd7aff03SLinus Walleij	smb: smb@8000000 {
1489ccd6080SKristina Martsenko		compatible = "simple-bus";
1499ccd6080SKristina Martsenko
1509ccd6080SKristina Martsenko		#address-cells = <2>;
1519ccd6080SKristina Martsenko		#size-cells = <1>;
1529ccd6080SKristina Martsenko		ranges = <0 0 0 0x08000000 0x04000000>,
1539ccd6080SKristina Martsenko			 <1 0 0 0x14000000 0x04000000>,
1549ccd6080SKristina Martsenko			 <2 0 0 0x18000000 0x04000000>,
1559ccd6080SKristina Martsenko			 <3 0 0 0x1c000000 0x04000000>,
1569ccd6080SKristina Martsenko			 <4 0 0 0x0c000000 0x04000000>,
1579ccd6080SKristina Martsenko			 <5 0 0 0x10000000 0x04000000>;
1589ccd6080SKristina Martsenko
1599ccd6080SKristina Martsenko		#interrupt-cells = <1>;
1609ccd6080SKristina Martsenko		interrupt-map-mask = <0 0 63>;
1619ccd6080SKristina Martsenko		interrupt-map = <0 0  0 &gic GIC_SPI  0 IRQ_TYPE_LEVEL_HIGH>,
1629ccd6080SKristina Martsenko				<0 0  1 &gic GIC_SPI  1 IRQ_TYPE_LEVEL_HIGH>,
1639ccd6080SKristina Martsenko				<0 0  2 &gic GIC_SPI  2 IRQ_TYPE_LEVEL_HIGH>,
1649ccd6080SKristina Martsenko				<0 0  3 &gic GIC_SPI  3 IRQ_TYPE_LEVEL_HIGH>,
1659ccd6080SKristina Martsenko				<0 0  4 &gic GIC_SPI  4 IRQ_TYPE_LEVEL_HIGH>,
1669ccd6080SKristina Martsenko				<0 0  5 &gic GIC_SPI  5 IRQ_TYPE_LEVEL_HIGH>,
1679ccd6080SKristina Martsenko				<0 0  6 &gic GIC_SPI  6 IRQ_TYPE_LEVEL_HIGH>,
1689ccd6080SKristina Martsenko				<0 0  7 &gic GIC_SPI  7 IRQ_TYPE_LEVEL_HIGH>,
1699ccd6080SKristina Martsenko				<0 0  8 &gic GIC_SPI  8 IRQ_TYPE_LEVEL_HIGH>,
1709ccd6080SKristina Martsenko				<0 0  9 &gic GIC_SPI  9 IRQ_TYPE_LEVEL_HIGH>,
1719ccd6080SKristina Martsenko				<0 0 10 &gic GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>,
1729ccd6080SKristina Martsenko				<0 0 11 &gic GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
1739ccd6080SKristina Martsenko				<0 0 12 &gic GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
1749ccd6080SKristina Martsenko				<0 0 13 &gic GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>,
1759ccd6080SKristina Martsenko				<0 0 14 &gic GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>,
1769ccd6080SKristina Martsenko				<0 0 15 &gic GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>,
1779ccd6080SKristina Martsenko				<0 0 16 &gic GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>,
1789ccd6080SKristina Martsenko				<0 0 17 &gic GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>,
1799ccd6080SKristina Martsenko				<0 0 18 &gic GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>,
1809ccd6080SKristina Martsenko				<0 0 19 &gic GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>,
1819ccd6080SKristina Martsenko				<0 0 20 &gic GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>,
1829ccd6080SKristina Martsenko				<0 0 21 &gic GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>,
1839ccd6080SKristina Martsenko				<0 0 22 &gic GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>,
1849ccd6080SKristina Martsenko				<0 0 23 &gic GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>,
1859ccd6080SKristina Martsenko				<0 0 24 &gic GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>,
1869ccd6080SKristina Martsenko				<0 0 25 &gic GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>,
1879ccd6080SKristina Martsenko				<0 0 26 &gic GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>,
1889ccd6080SKristina Martsenko				<0 0 27 &gic GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>,
1899ccd6080SKristina Martsenko				<0 0 28 &gic GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>,
1909ccd6080SKristina Martsenko				<0 0 29 &gic GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>,
1919ccd6080SKristina Martsenko				<0 0 30 &gic GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>,
1929ccd6080SKristina Martsenko				<0 0 31 &gic GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>,
1939ccd6080SKristina Martsenko				<0 0 32 &gic GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>,
1949ccd6080SKristina Martsenko				<0 0 33 &gic GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>,
1959ccd6080SKristina Martsenko				<0 0 34 &gic GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>,
1969ccd6080SKristina Martsenko				<0 0 35 &gic GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>,
1979ccd6080SKristina Martsenko				<0 0 36 &gic GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>,
1989ccd6080SKristina Martsenko				<0 0 37 &gic GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>,
1999ccd6080SKristina Martsenko				<0 0 38 &gic GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>,
2009ccd6080SKristina Martsenko				<0 0 39 &gic GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>,
2019ccd6080SKristina Martsenko				<0 0 40 &gic GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
2029ccd6080SKristina Martsenko				<0 0 41 &gic GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>,
2039ccd6080SKristina Martsenko				<0 0 42 &gic GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
2049ccd6080SKristina Martsenko	};
2059ccd6080SKristina Martsenko};
206