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>
16*724ba675SRob Herring#include "arm/arm/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";
4631af04cdSRob Herring			compatible = "arm,cortex-a53";
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";
5331af04cdSRob Herring			compatible = "arm,cortex-a53";
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";
6059fb813fSPierre Gondois			cache-level = <2>;
619ccd6080SKristina Martsenko			cache-unified;
629ccd6080SKristina Martsenko		};
639ccd6080SKristina Martsenko	};
649ccd6080SKristina Martsenko
659ccd6080SKristina Martsenko	memory@80000000 {
669ccd6080SKristina Martsenko		device_type = "memory";
679ccd6080SKristina Martsenko		reg = <0 0x80000000 0 0x80000000>; /* 2GB @ 2GB */
689ccd6080SKristina Martsenko	};
69f1fe12c8SLinus Walleij
70f1fe12c8SLinus Walleij	reserved-memory {
71f1fe12c8SLinus Walleij		#address-cells = <2>;
72f1fe12c8SLinus Walleij		#size-cells = <2>;
73f1fe12c8SLinus Walleij		ranges;
74f1fe12c8SLinus Walleij
75f1fe12c8SLinus Walleij		/* Chipselect 2 is physically at 0x18000000 */
76f1fe12c8SLinus Walleij		vram: vram@18000000 {
77f1fe12c8SLinus Walleij			/* 8 MB of designated video RAM */
78f1fe12c8SLinus Walleij			compatible = "shared-dma-pool";
79f1fe12c8SLinus Walleij			reg = <0 0x18000000 0 0x00800000>;
80f1fe12c8SLinus Walleij			no-map;
81f1fe12c8SLinus Walleij		};
82f1fe12c8SLinus Walleij	};
839ccd6080SKristina Martsenko
849ccd6080SKristina Martsenko	gic: interrupt-controller@2c001000 {
859ccd6080SKristina Martsenko		compatible = "arm,gic-400";
869ccd6080SKristina Martsenko		#interrupt-cells = <3>;
879ccd6080SKristina Martsenko		#address-cells = <0>;
889ccd6080SKristina Martsenko		interrupt-controller;
899ccd6080SKristina Martsenko		reg = <0 0x2c001000 0 0x1000>,
909ccd6080SKristina Martsenko		      <0 0x2c002000 0 0x2000>,
919ccd6080SKristina Martsenko		      <0 0x2c004000 0 0x2000>,
929ccd6080SKristina Martsenko		      <0 0x2c006000 0 0x2000>;
939ccd6080SKristina Martsenko		interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_HIGH)>;
949ccd6080SKristina Martsenko	};
959ccd6080SKristina Martsenko
969ccd6080SKristina Martsenko	timer {
979ccd6080SKristina Martsenko		compatible = "arm,armv8-timer";
989ccd6080SKristina Martsenko		interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
999ccd6080SKristina Martsenko			     <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
1009ccd6080SKristina Martsenko			     <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
1019ccd6080SKristina Martsenko			     <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>;
1029ccd6080SKristina Martsenko	};
1039ccd6080SKristina Martsenko
1049ccd6080SKristina Martsenko	pmu {
1059ccd6080SKristina Martsenko		compatible = "arm,armv8-pmuv3";
1069ccd6080SKristina Martsenko		interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>,
1079ccd6080SKristina Martsenko			     <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
1089ccd6080SKristina Martsenko	};
1099ccd6080SKristina Martsenko
1109ccd6080SKristina Martsenko	dcc {
1119ccd6080SKristina Martsenko		compatible = "arm,vexpress,config-bus";
1129ccd6080SKristina Martsenko		arm,vexpress,config-bridge = <&v2m_sysreg>;
1136d6acd14SSudeep Holla
1149ccd6080SKristina Martsenko		smbclk: smclk {
1159ccd6080SKristina Martsenko			/* SMC clock */
1169ccd6080SKristina Martsenko			compatible = "arm,vexpress-osc";
1179ccd6080SKristina Martsenko			arm,vexpress-sysreg,func = <1 4>;
1189ccd6080SKristina Martsenko			freq-range = <40000000 40000000>;
1199ccd6080SKristina Martsenko			#clock-cells = <0>;
1209ccd6080SKristina Martsenko			clock-output-names = "smclk";
1219ccd6080SKristina Martsenko		};
1226d6acd14SSudeep Holla
1239ccd6080SKristina Martsenko		volt-vio {
1249ccd6080SKristina Martsenko			/* VIO to expansion board above */
1259ccd6080SKristina Martsenko			compatible = "arm,vexpress-volt";
1269ccd6080SKristina Martsenko			arm,vexpress-sysreg,func = <2 0>;
1279ccd6080SKristina Martsenko			regulator-name = "VIO_UP";
1289ccd6080SKristina Martsenko			regulator-min-microvolt = <800000>;
1299ccd6080SKristina Martsenko			regulator-max-microvolt = <1800000>;
1309ccd6080SKristina Martsenko			regulator-always-on;
1319ccd6080SKristina Martsenko		};
1326d6acd14SSudeep Holla
1339ccd6080SKristina Martsenko		volt-12v {
1349ccd6080SKristina Martsenko			/* 12V from power connector J6 */
1359ccd6080SKristina Martsenko			compatible = "arm,vexpress-volt";
1369ccd6080SKristina Martsenko			arm,vexpress-sysreg,func = <2 1>;
1379ccd6080SKristina Martsenko			regulator-name = "12";
1389ccd6080SKristina Martsenko			regulator-always-on;
1399ccd6080SKristina Martsenko		};
1406d6acd14SSudeep Holla
1419ccd6080SKristina Martsenko		temp-fpga {
1429ccd6080SKristina Martsenko			/* FPGA temperature */
1439ccd6080SKristina Martsenko			compatible = "arm,vexpress-temp";
1449ccd6080SKristina Martsenko			arm,vexpress-sysreg,func = <4 0>;
1459ccd6080SKristina Martsenko			label = "FPGA";
1469ccd6080SKristina Martsenko		};
1479ccd6080SKristina Martsenko	};
148bee7ff37SLinus Walleij
149078fb7aaSRob Herring	smb: bus@8000000 {
1509ccd6080SKristina Martsenko		ranges = <0x8000000 0 0x8000000 0x18000000>;
1519ccd6080SKristina Martsenko	};
152};
153