From d7d74e566a44ab47cfb8b526c19a17194bea9b84 Mon Sep 17 00:00:00 2001 From: Michal Simek Date: Wed, 26 Jun 2019 15:34:06 +0200 Subject: [PATCH] arm64: versal: Add description for a2197-e-revA board It is pretty much subset of a2197-p with some differences. It is the first evaluation/customer board with Versal. Also called vck190. Signed-off-by: Michal Simek --- arch/arm/dts/Makefile | 1 + arch/arm/dts/versal-vc-e-a2197-00-revA.dts | 125 +++++++++++++++++++++ configs/xilinx_versal_virt_defconfig | 2 +- 3 files changed, 127 insertions(+), 1 deletion(-) create mode 100644 arch/arm/dts/versal-vc-e-a2197-00-revA.dts diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index 8394da85655..0c174d3cf4c 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -218,6 +218,7 @@ dtb-$(CONFIG_ARCH_VERSAL) += \ versal-mini-qspi-x1-stacked.dtb \ versal-mini-qspi-x2-single.dtb \ versal-mini-qspi-x2-stacked.dtb \ + versal-vc-e-a2197-00-revA.dtb \ versal-vc-p-a2197-00-revA.dtb \ versal-vc-p-a2197-00-revA-x-prc-01-revA.dtb \ versal-vc-p-a2197-00-revA-x-prc-01-revA-ospi.dtb \ diff --git a/arch/arm/dts/versal-vc-e-a2197-00-revA.dts b/arch/arm/dts/versal-vc-e-a2197-00-revA.dts new file mode 100644 index 00000000000..922fbffa54b --- /dev/null +++ b/arch/arm/dts/versal-vc-e-a2197-00-revA.dts @@ -0,0 +1,125 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * dts file for Xilinx Versal VC-E-A2191-00 revA (Also called VCK190/EB1) + * + * (C) Copyright 2019, Xilinx, Inc. + * + * Michal Simek + */ + +#include "versal.dtsi" +#include "versal-fixed.dtsi" + +/ { + compatible = "xlnx,versal-vc-e-a2197-00-revA", + "xlnx,versal-vc-e-a2197-00", + "xlnx,versal-vc-e-a2197", "xlnx,versal"; + model = "Xilinx Versal A2197 Eval board revA"; + + memory: memory@0 { + device_type = "memory"; + reg = <0 0 0 0x80000000>; + }; + + chosen { + bootargs = "console=ttyAMA0 earlycon=pl011,mmio32,0xFF000000,115200n8 clk_ignore_unused"; + stdout-path = "serial0:115200"; + }; + + aliases { + serial0 = &serial0; + ethernet0 = &gem0; + ethernet1 = &gem1; + i2c0 = &i2c0; + i2c1 = &i2c1; + mmc0 = &sdhci1; + gpio0 = &gpio; + spi0 = &qspi; + usb0 = &usb0; + rtc0 = &rtc; + }; +}; + +/* PMC_MIO 0 -12 - configuration header QSPI/OSPI/EMMC */ +/* FIXME PMC_MIO37 ZU4_TRIGGER/PMC_MIO37/38 PCIE */ + +&can1 { /* MIO40-41 */ + status = "okay"; +}; + +&dcc { + status = "okay"; +}; + +&rtc { + status = "okay"; +}; + +&gpio { + status = "okay"; +}; + +&watchdog { + status = "okay"; +}; + +&sdhci1 { /* PMC_MIO26-36/51 */ + status = "okay"; + xlnx,mio_bank = <1>; + no-1-8-v; +}; + +&serial0 { /* PMC_MIO42/43 */ + status = "okay"; +}; + +&gem0 { /* PMC_MIO_48, LPD_MIO0-11/24/25 */ + status = "okay"; + phy-handle = <&phy1>; /* u128 */ + phy-mode = "rgmii-id"; + phy1: phy@1 { + reg = <1>; + ti,rx-internal-delay = <0xb>; + ti,tx-internal-delay = <0xa>; + ti,fifo-depth = <1>; + ti,dp83867-rxctrl-strap-quirk; + }; + phy2: phy@2 { + reg = <2>; + ti,rx-internal-delay = <0xb>; + ti,tx-internal-delay = <0xa>; + ti,fifo-depth = <1>; + ti,dp83867-rxctrl-strap-quirk; + }; +}; + +&gem1 { /* PMC_MIO_49, LPD_MIO12-23 */ + status = "okay"; + phy-handle = <&phy2>; /* u134 */ + phy-mode = "rgmii-id"; +}; + +&i2c0 { /* PMC_MIO46/47 */ + status = "okay"; + clock-frequency = <400000>; +}; + +&i2c1 { /* PMC_MIO44/45 */ + status = "okay"; + clock-frequency = <400000>; +}; + +&usb0 { /* PMC_MIO13_500 - PMC_MIO25 USB 2.0 */ + status = "okay"; + xlnx,usb-polarity = <0x0>; + xlnx,usb-reset-mode = <0x0>; +}; + +&dwc3_0 { /* USB 2.0 host */ + status = "okay"; + dr_mode = "host"; + maximum-speed = "high-speed"; + snps,dis_u2_susphy_quirk; + snps,dis_u3_susphy_quirk; + snps,usb3_lpm_capable; +}; diff --git a/configs/xilinx_versal_virt_defconfig b/configs/xilinx_versal_virt_defconfig index a10b484a879..f74aa74ff72 100644 --- a/configs/xilinx_versal_virt_defconfig +++ b/configs/xilinx_versal_virt_defconfig @@ -46,7 +46,7 @@ CONFIG_EFI_PARTITION=y # CONFIG_PARTITION_UUIDS is not set CONFIG_OF_BOARD=y CONFIG_DEFAULT_DEVICE_TREE="versal-vc-p-a2197-00-revA-x-prc-01-revA" -CONFIG_OF_LIST="versal-vc-p-a2197-00-revA-x-prc-01-revA versal-vc-p-a2197-00-revA-x-prc-01-revA-ospi versal-vc-p-a2197-00-revA-x-prc-02-revA versal-vc-p-a2197-00-revA-x-prc-03-revA versal-vc-p-a2197-00-revA-x-prc-04-revA versal-vc-p-a2197-00-revA-x-prc-04-revA-ospi versal-vc-p-a2197-00-revA-x-prc-05-revA versal-vc-d-d1760-01-revA" +CONFIG_OF_LIST="versal-vc-e-a2197-00-revA versal-vc-p-a2197-00-revA-x-prc-01-revA versal-vc-p-a2197-00-revA-x-prc-01-revA-ospi versal-vc-p-a2197-00-revA-x-prc-02-revA versal-vc-p-a2197-00-revA-x-prc-03-revA versal-vc-p-a2197-00-revA-x-prc-04-revA versal-vc-p-a2197-00-revA-x-prc-04-revA-ospi versal-vc-p-a2197-00-revA-x-prc-05-revA versal-vc-d-d1760-01-revA" CONFIG_MULTI_DTB_FIT=y CONFIG_NET_RANDOM_ETHADDR=y CONFIG_SPL_DM_SEQ_ALIAS=y -- 2.47.3