Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D3DD3C433EF for ; Wed, 13 Oct 2021 01:04:18 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5106260E53 for ; Wed, 13 Oct 2021 01:04:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 5106260E53 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6E6E283751; Wed, 13 Oct 2021 03:03:27 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="Th5WLS/Q"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6056483617; Wed, 13 Oct 2021 03:02:53 +0200 (CEST) Received: from mail-oi1-x22b.google.com (mail-oi1-x22b.google.com [IPv6:2607:f8b0:4864:20::22b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id ECA8683740 for ; Wed, 13 Oct 2021 03:01:46 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-oi1-x22b.google.com with SMTP id n64so1648414oih.2 for ; Tue, 12 Oct 2021 18:01:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=V8uVciXOq+8j+2JdWkjM3/14OxMs6kHJQfSMJVtgQPg=; b=Th5WLS/Q810yGITVxqDa7o9K/4QkbiPUiWs9Uhh9Z7+CHnk0JBXzWRoeBNEwUmtlUJ LXgFbMt+2RnMRAV1sciZA2+P5mNikpiO3PP4pzIaFAheXFUtaUMKTZuyGIxhRXTI1IwY W9s6U8PjdVnO80SfLztuLL0XHcW9jEK4t2DrQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=V8uVciXOq+8j+2JdWkjM3/14OxMs6kHJQfSMJVtgQPg=; b=L/P6FaSafDiL9Dt8qN38y2PvfOxfNAP0evMdBu0HkGw8oFvtjH6HuVphny9Yg5Ojup LVT92kPGRzvAI6OcCY+XQzvVexfqtyyIbSg16w1V7DEkMPyc8wXo3O9efTpqmiOSQh7O T1ss7PYWnmc7P+NUSSGo69QnrCyN2XBTD4YwamDf+3RM3E1h5FEfGEAnIpQz8Jy1MsxX tdjjt33l6gDJqucivp5KqkIjA9BVDByoNz8g8ftq5ASkRmEO1jG2L3k/RolUWDn+YAr6 AzSMWZ2BU+uyizMuIQXXYGmjF979s9pEb13rHtgUhovX7VA2GTg0S/helr3l34Hjwke/ VDcg== X-Gm-Message-State: AOAM533I0W57AW4ao3traXJ6SIWQw4HqSNt7yHT3e3sHO/fc6YNc5K/s zhspHqI9ma3OEzk12opWDlRq0vRu6FwxNA== X-Google-Smtp-Source: ABdhPJyPCkg1oM/px7NSze7KynGDOxtrqiOzc0HZvjBHRMXvy3d0EdLvpSIIHx+NCk+ylRfzJ7fkUQ== X-Received: by 2002:aca:b787:: with SMTP id h129mr1377297oif.86.1634086905302; Tue, 12 Oct 2021 18:01:45 -0700 (PDT) Received: from kiwi.bld.corp.google.com (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id a10sm238107otb.7.2021.10.12.18.01.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Oct 2021 18:01:44 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Ilias Apalodimas , Simon Glass , Albert Aribaud , Andre Przywara , Ashok Reddy Soma , Christian Hewitt , Fabio Estevam , Heiko Schocher , Jagan Teki , Kever Yang , Michal Simek , Michal Simek , Neil Armstrong , Peter Robinson , T Karthik Reddy , Tim Harvey Subject: [PATCH 11/16] arm: xilinx_versal_virt: Add a devicetree file Date: Tue, 12 Oct 2021 19:01:15 -0600 Message-Id: <20211013010120.96851-12-sjg@chromium.org> X-Mailer: git-send-email 2.33.0.882.g93a45727a2-goog In-Reply-To: <20211013010120.96851-1-sjg@chromium.org> References: <20211013010120.96851-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Add a devicetree file obtained from qemu for this board. This was obtained with: qemu-system-aarch64 -M xlnx-versal-virt -machine dumpdtb=dtb.dtb Signed-off-by: Simon Glass --- arch/arm/dts/Makefile | 3 +- arch/arm/dts/xilinx-versal-virt.dts | 307 +++++++++++++++++++++++++++ configs/xilinx_versal_virt_defconfig | 1 + 3 files changed, 310 insertions(+), 1 deletion(-) create mode 100644 arch/arm/dts/xilinx-versal-virt.dts diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index 0fec648dd77..dd6d66af5e6 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -352,7 +352,8 @@ dtb-$(CONFIG_ARCH_ZYNQMP) += \ dtb-$(CONFIG_ARCH_VERSAL) += \ versal-mini.dtb \ versal-mini-emmc0.dtb \ - versal-mini-emmc1.dtb + versal-mini-emmc1.dtb \ + xilinx-versal-virt.dtb dtb-$(CONFIG_ARCH_ZYNQMP_R5) += \ zynqmp-r5.dtb dtb-$(CONFIG_AM33XX) += \ diff --git a/arch/arm/dts/xilinx-versal-virt.dts b/arch/arm/dts/xilinx-versal-virt.dts new file mode 100644 index 00000000000..3712af9e7a4 --- /dev/null +++ b/arch/arm/dts/xilinx-versal-virt.dts @@ -0,0 +1,307 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Sample device tree for versal-virt board + + * Copyright 2021 Google LLC + */ + +/dts-v1/; + +/ { + compatible = "xlnx-versal-virt"; + model = "Xilinx Versal Virtual development board"; + #address-cells = <0x02>; + #size-cells = <0x02>; + interrupt-parent = <0x8000>; + + memory@0 { + reg = <0x00 0x00 0x00 0x8000000>; + device_type = "memory"; + }; + + clk25 { + u-boot,dm-pre-reloc; + compatible = "fixed-clock"; + #clock-cells = <0x00>; + clock-frequency = <0x17d7840>; + phandle = <0x8003>; + }; + + clk125 { + u-boot,dm-pre-reloc; + compatible = "fixed-clock"; + #clock-cells = <0x00>; + clock-frequency = <0x7735940>; + phandle = <0x8004>; + }; + + cpus { + #address-cells = <0x01>; + #size-cells = <0x00>; + + cpu@0 { + compatible = "arm,cortex-a72"; + device_type = "cpu"; + reg = <0x00>; + }; + + cpu@1 { + compatible = "arm,cortex-a72"; + device_type = "cpu"; + reg = <0x01>; + }; + }; + + rtc@f12a0000 { + compatible = "xlnx,zynqmp-rtc"; + reg = <0x00 0xf12a0000 0x00 0x10000>; + interrupt-names = "alarm\0sec"; + interrupts = <0x00 0x8e 0x04 0x00 0x8f 0x04>; + }; + + sdhci@f1040000 { + compatible = "arasan,sdhci-8.9a"; + reg = <0x00 0xf1040000 0x00 0x10000>; + interrupts = <0x00 0x7e 0x04>; + clock-names = "clk_xin\0clk_ahb"; + clocks = <0x8003 0x8003>; + }; + + sdhci@f1050000 { + compatible = "arasan,sdhci-8.9a"; + reg = <0x00 0xf1050000 0x00 0x10000>; + interrupts = <0x00 0x80 0x04>; + clock-names = "clk_xin\0clk_ahb"; + clocks = <0x8003 0x8003>; + }; + + usb@ff9d0000 { + phandle = <0x8005>; + #size-cells = <0x02>; + #address-cells = <0x02>; + ranges; + clocks = <0x8003 0x8004>; + clock-names = "bus_clk\0ref_clk"; + reg = <0x00 0xff9d0000 0x00 0x10000>; + compatible = "xlnx,versal-dwc3"; + + dwc3@fe200000 { + maximum-speed = "high-speed"; + phandle = <0x8006>; + snps,mask_phy_reset; + snps,refclk_fladj; + snps,dis_u3_susphy_quirk; + snps,dis_u2_susphy_quirk; + phy-names = "usb3-phy"; + dr_mode = "host"; + #stream-id-cells = <0x01>; + snps,quirk-frame-length-adjustment = <0x20>; + interrupts = <0x00 0x16 0x04>; + interrupt-names = "dwc_usb3"; + reg = <0x00 0xfe200000 0x00 0x10000>; + compatible = "snps,dwc3"; + }; + }; + + dma@ffa80000 { + compatible = "xlnx,zynqmp-dma-1.0"; + reg = <0x00 0xffa80000 0x00 0x1000>; + interrupts = <0x00 0x3c 0x04>; + clock-names = "clk_main\0clk_apb"; + clocks = <0x8003 0x8003>; + xlnx,bus-width = <0x40>; + }; + + dma@ffa90000 { + compatible = "xlnx,zynqmp-dma-1.0"; + reg = <0x00 0xffa90000 0x00 0x1000>; + interrupts = <0x00 0x3d 0x04>; + clock-names = "clk_main\0clk_apb"; + clocks = <0x8003 0x8003>; + xlnx,bus-width = <0x40>; + }; + + dma@ffaa0000 { + compatible = "xlnx,zynqmp-dma-1.0"; + reg = <0x00 0xffaa0000 0x00 0x1000>; + interrupts = <0x00 0x3e 0x04>; + clock-names = "clk_main\0clk_apb"; + clocks = <0x8003 0x8003>; + xlnx,bus-width = <0x40>; + }; + + dma@ffab0000 { + compatible = "xlnx,zynqmp-dma-1.0"; + reg = <0x00 0xffab0000 0x00 0x1000>; + interrupts = <0x00 0x3f 0x04>; + clock-names = "clk_main\0clk_apb"; + clocks = <0x8003 0x8003>; + xlnx,bus-width = <0x40>; + }; + + dma@ffac0000 { + compatible = "xlnx,zynqmp-dma-1.0"; + reg = <0x00 0xffac0000 0x00 0x1000>; + interrupts = <0x00 0x40 0x04>; + clock-names = "clk_main\0clk_apb"; + clocks = <0x8003 0x8003>; + xlnx,bus-width = <0x40>; + }; + + dma@ffad0000 { + compatible = "xlnx,zynqmp-dma-1.0"; + reg = <0x00 0xffad0000 0x00 0x1000>; + interrupts = <0x00 0x41 0x04>; + clock-names = "clk_main\0clk_apb"; + clocks = <0x8003 0x8003>; + xlnx,bus-width = <0x40>; + }; + + dma@ffae0000 { + compatible = "xlnx,zynqmp-dma-1.0"; + reg = <0x00 0xffae0000 0x00 0x1000>; + interrupts = <0x00 0x42 0x04>; + clock-names = "clk_main\0clk_apb"; + clocks = <0x8003 0x8003>; + xlnx,bus-width = <0x40>; + }; + + dma@ffaf0000 { + compatible = "xlnx,zynqmp-dma-1.0"; + reg = <0x00 0xffaf0000 0x00 0x1000>; + interrupts = <0x00 0x43 0x04>; + clock-names = "clk_main\0clk_apb"; + clocks = <0x8003 0x8003>; + xlnx,bus-width = <0x40>; + }; + + timer { + compatible = "arm,armv8-timer"; + interrupts = <0x01 0x0d 0x04 0x01 0x0e 0x04 0x01 0x0b 0x04 0x01 0x0a 0x04>; + }; + + gic@f9000000 { + compatible = "arm,gic-v3"; + #interrupt-cells = <0x03>; + reg = <0x00 0xf9000000 0x00 0x10000 0x00 0xf9080000 0x00 0x80000>; + interrupt-controller; + interrupts = <0x01 0x09 0x04>; + phandle = <0x8000>; + }; + + uart@ff000000 { + u-boot,dm-pre-reloc; + compatible = "arm,pl011\0arm,sbsa-uart"; + reg = <0x00 0xff000000 0x00 0x1000>; + interrupts = <0x00 0x12 0x04>; + clock-names = "uartclk\0apb_pclk"; + clocks = <0x8004 0x8004>; + current-speed = <0x1c200>; + }; + + uart@ff010000 { + u-boot,dm-pre-reloc; + compatible = "arm,pl011\0arm,sbsa-uart"; + reg = <0x00 0xff010000 0x00 0x1000>; + interrupts = <0x00 0x13 0x04>; + clock-names = "uartclk\0apb_pclk"; + clocks = <0x8004 0x8004>; + current-speed = <0x1c200>; + }; + + ethernet@ff0c0000 { + #size-cells = <0x00>; + #address-cells = <0x01>; + compatible = "cdns,zynqmp-gem\0cdns,gem"; + reg = <0x00 0xff0c0000 0x00 0x1000>; + interrupts = <0x00 0x38 0x04 0x00 0x38 0x04>; + clock-names = "pclk\0hclk\0tx_clk\0rx_clk"; + clocks = <0x8003 0x8003 0x8004 0x8004>; + phy-handle = <0x8002>; + phy-mode = "rgmii-id"; + + fixed-link { + speed = <0x3e8>; + full-duplex; + phandle = <0x8002>; + }; + }; + + ethernet@ff0d0000 { + #size-cells = <0x00>; + #address-cells = <0x01>; + compatible = "cdns,zynqmp-gem\0cdns,gem"; + reg = <0x00 0xff0d0000 0x00 0x1000>; + interrupts = <0x00 0x3a 0x04 0x00 0x3a 0x04>; + clock-names = "pclk\0hclk\0tx_clk\0rx_clk"; + clocks = <0x8003 0x8003 0x8004 0x8004>; + phy-handle = <0x8001>; + phy-mode = "rgmii-id"; + + fixed-link { + speed = <0x3e8>; + full-duplex; + phandle = <0x8001>; + }; + }; + + virtio_mmio@a0000e00 { + compatible = "virtio,mmio"; + reg = <0x00 0xa0000e00 0x00 0x200>; + interrupts = <0x00 0x76 0x01>; + dma-coherent; + }; + + virtio_mmio@a0000c00 { + compatible = "virtio,mmio"; + reg = <0x00 0xa0000c00 0x00 0x200>; + interrupts = <0x00 0x75 0x01>; + dma-coherent; + }; + + virtio_mmio@a0000a00 { + compatible = "virtio,mmio"; + reg = <0x00 0xa0000a00 0x00 0x200>; + interrupts = <0x00 0x74 0x01>; + dma-coherent; + }; + + virtio_mmio@a0000800 { + compatible = "virtio,mmio"; + reg = <0x00 0xa0000800 0x00 0x200>; + interrupts = <0x00 0x73 0x01>; + dma-coherent; + }; + + virtio_mmio@a0000600 { + compatible = "virtio,mmio"; + reg = <0x00 0xa0000600 0x00 0x200>; + interrupts = <0x00 0x72 0x01>; + dma-coherent; + }; + + virtio_mmio@a0000400 { + compatible = "virtio,mmio"; + reg = <0x00 0xa0000400 0x00 0x200>; + interrupts = <0x00 0x71 0x01>; + dma-coherent; + }; + + virtio_mmio@a0000200 { + compatible = "virtio,mmio"; + reg = <0x00 0xa0000200 0x00 0x200>; + interrupts = <0x00 0x70 0x01>; + dma-coherent; + }; + + virtio_mmio@a0000000 { + compatible = "virtio,mmio"; + reg = <0x00 0xa0000000 0x00 0x200>; + interrupts = <0x00 0x6f 0x01>; + dma-coherent; + }; + + chosen { + stdout-path = "/uart@ff000000"; + }; +}; diff --git a/configs/xilinx_versal_virt_defconfig b/configs/xilinx_versal_virt_defconfig index 11598623954..f0ec2639a38 100644 --- a/configs/xilinx_versal_virt_defconfig +++ b/configs/xilinx_versal_virt_defconfig @@ -7,6 +7,7 @@ CONFIG_SYS_MALLOC_F_LEN=0x100000 CONFIG_SYS_MEMTEST_START=0x00000000 CONFIG_SYS_MEMTEST_END=0x00001000 CONFIG_DM_GPIO=y +CONFIG_DEFAULT_DEVICE_TREE="xilinx-versal-virt" CONFIG_CMD_FRU=y CONFIG_DEFINE_TCM_OCM_MMAP=y CONFIG_COUNTER_FREQUENCY=100000000 -- 2.33.0.882.g93a45727a2-goog