From nobody Fri Dec 27 03:19:39 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1504184929061356.3782385725218; Thu, 31 Aug 2017 06:08:49 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id EC88F21EB529B; Thu, 31 Aug 2017 06:06:01 -0700 (PDT) Received: from mail-wm0-x230.google.com (mail-wm0-x230.google.com [IPv6:2a00:1450:400c:c09::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id E362F21EB529F for ; Thu, 31 Aug 2017 06:06:00 -0700 (PDT) Received: by mail-wm0-x230.google.com with SMTP id u26so4174803wma.0 for ; Thu, 31 Aug 2017 06:08:44 -0700 (PDT) Received: from localhost.localdomain ([154.144.95.132]) by smtp.gmail.com with ESMTPSA id u38sm5571203wrb.12.2017.08.31.06.08.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 31 Aug 2017 06:08:41 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Tbe8mZLAxAbzLmQN0oQvyXwe7xLwIk6DMc3Y9Rq466g=; b=koPu3DPZfADOkIOQgxb5OrfX6zaweLTVYhZbHLEAw3PUTcBdolMWKJ7UsrkbAd73g6 Ci1Hqcf1iMrHZAKyjhxzumYuqXUcOdsckhUPCuI9nXPEyO8J0/V7WiavYMo/0Nz7R4yt 8qn6Wfgdl3uk2QFYLWyTREZLwpl+8+VaJojs4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Tbe8mZLAxAbzLmQN0oQvyXwe7xLwIk6DMc3Y9Rq466g=; b=guRZXdBFXDF+Wd2CCy229puMepR1QNhQaPxsvER884+drADrE0HoiBUyfwSSc83xPq f01wpoD6qtvLkqE1Qzk8ITUhjAhwgqCU1rrRutMhfdoytQUcFQGMKLi32OHXIYK7cl8J A1oDnY83Mjjol/lGdSsle9xWe9rYgOYsJRqjWKc6rCuxJUE6Abzt5+UgIYlYq0lYpjG6 PYfsE1adOMUNciGyx7I8CxglCs/DhTY6Cp9AMqnRkKySRiVinJ7TMPIt33OjAE+91/vh RvLZRGACB1237tuk8gNxz9s99KcoAunoRjx8vqTzqzHidyGLzMGLfIJRsjPMeFk5rB4f iOrQ== X-Gm-Message-State: AHPjjUhQIyXjNsBCbbwsoojBEJCpe7d3iRHevjACHXyYk+tJkMPbna06 wOrO2ybloSEngcGDl1Hfig== X-Received: by 10.28.70.69 with SMTP id t66mr470955wma.123.1504184922226; Thu, 31 Aug 2017 06:08:42 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Thu, 31 Aug 2017 14:08:28 +0100 Message-Id: <20170831130830.12833-3-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170831130830.12833-1-ard.biesheuvel@linaro.org> References: <20170831130830.12833-1-ard.biesheuvel@linaro.org> Subject: [edk2] [PATCH edk2-platforms v2 2/4] Platform/OverdriveBoard: clean up device tree source file X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alan@softiron.com, Ard Biesheuvel , liming.gao@intel.com, leif.lindholm@linaro.org MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Clean up the device tree source file, by switching to Tianocore conventions for line endings and whitespace etc, and by replacing open coded values with symbol constants and/or phandle references. The resulting .dtb will likely not be identical at the bit level, but the modifications are cosmetic only. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- Platform/AMD/OverdriveBoard/OverdriveBoardDeviceTree/OverdriveBoardDeviceT= ree.dts | 957 ++++++++++---------- 1 file changed, 467 insertions(+), 490 deletions(-) diff --git a/Platform/AMD/OverdriveBoard/OverdriveBoardDeviceTree/Overdrive= BoardDeviceTree.dts b/Platform/AMD/OverdriveBoard/OverdriveBoardDeviceTree/= OverdriveBoardDeviceTree.dts index 4039f666004a..81477fe43cdd 100644 --- a/Platform/AMD/OverdriveBoard/OverdriveBoardDeviceTree/OverdriveBoardDe= viceTree.dts +++ b/Platform/AMD/OverdriveBoard/OverdriveBoardDeviceTree/OverdriveBoardDe= viceTree.dts @@ -2,6 +2,7 @@ * DTS file for AMD Seattle (Rev.B) Overdrive Development Board * * Copyright 2015 - 2016 ADVANCED MICRO DEVICES, INC. All Rights Reserve= d. + * Copyright 2015 - 2017 Linaro, Ltd. All Rights Reserved. * * This program and the accompanying materials are licensed and made avai= lable * under the terms and conditions of the BSD License which accompanies th= is @@ -14,497 +15,473 @@ * */ =20 +#define GIC_SPI 0 +#define GIC_PPI 1 + +#define IRQ_TYPE_NONE 0 +#define IRQ_TYPE_EDGE_RISING 1 +#define IRQ_TYPE_EDGE_FALLING 2 +#define IRQ_TYPE_LEVEL_HIGH 4 +#define IRQ_TYPE_LEVEL_LOW 8 + +#define GIC_CPU_MASK(num) (((1 << (num)) - 1) << 8) + /dts-v1/; =20 / { - model =3D "AMD Seattle (Rev.B) Development Board (Overdrive)"; - compatible =3D "amd,seattle-overdrive", "amd,seattle"; - interrupt-parent =3D <0x1>; - #address-cells =3D <0x2>; - #size-cells =3D <0x2>; - - interrupt-controller@e1101000 { - compatible =3D "arm,gic-400", "arm,cortex-a15-gic"; - interrupt-controller; - #interrupt-cells =3D <0x3>; - #address-cells =3D <0x2>; - #size-cells =3D <0x2>; - reg =3D <0x0 0xe1110000 0x0 0x1000>, - <0x0 0xe112f000 0x0 0x2000>, - <0x0 0xe1140000 0x0 0x2000>, - <0x0 0xe1160000 0x0 0x2000>; - interrupts =3D <0x1 0x9 0xf04>; - ranges =3D <0x0 0x0 0x0 0xe1100000 0x0 0x100000>; - linux,phandle =3D <0x1>; - phandle =3D <0x1>; - - v2m@e0080000 { - compatible =3D "arm,gic-v2m-frame"; - msi-controller; - reg =3D <0x0 0x80000 0x0 0x1000>; - linux,phandle =3D <0x4>; - phandle =3D <0x4>; - }; - }; - - timer { - compatible =3D "arm,armv8-timer"; - interrupts =3D <0x1 0xd 0xff04>, - <0x1 0xe 0xff04>, - <0x1 0xb 0xff04>, - <0x1 0xa 0xff04>; - }; - - smb { - compatible =3D "simple-bus"; - #address-cells =3D <0x2>; - #size-cells =3D <0x2>; - ranges; - /* - * dma-ranges is 40-bit address space containing: - * - GICv2m MSI register is at 0xe0080000 - * - DRAM range [0x8000000000 to 0xffffffffff] - */ - dma-ranges =3D <0x0 0x0 0x0 0x0 0x100 0x0>; - - clk100mhz_0 { - compatible =3D "fixed-clock"; - #clock-cells =3D <0x0>; - clock-frequency =3D <100000000>; - clock-output-names =3D "adl3clk_100mhz"; - }; - - clk375mhz { - compatible =3D "fixed-clock"; - #clock-cells =3D <0x0>; - clock-frequency =3D <375000000>; - clock-output-names =3D "ccpclk_375mhz"; - }; - - clk333mhz { - compatible =3D "fixed-clock"; - #clock-cells =3D <0x0>; - clock-frequency =3D <333000000>; - clock-output-names =3D "sataclk_333mhz"; - linux,phandle =3D <0x2>; - phandle =3D <0x2>; - }; - - clk500mhz_0 { - compatible =3D "fixed-clock"; - #clock-cells =3D <0x0>; - clock-frequency =3D <500000000>; - clock-output-names =3D "pcieclk_500mhz"; - }; - - clk500mhz_1 { - compatible =3D "fixed-clock"; - #clock-cells =3D <0x0>; - clock-frequency =3D <500000000>; - clock-output-names =3D "dmaclk_500mhz"; - }; - - clk250mhz_4 { - compatible =3D "fixed-clock"; - #clock-cells =3D <0x0>; - clock-frequency =3D <250000000>; - clock-output-names =3D "miscclk_250mhz"; - linux,phandle =3D <0xd>; - phandle =3D <0xd>; - }; - - clk100mhz_1 { - compatible =3D "fixed-clock"; - #clock-cells =3D <0x0>; - clock-frequency =3D <100000000>; - clock-output-names =3D "uartspiclk_100mhz"; - linux,phandle =3D <0x3>; - phandle =3D <0x3>; - }; - - sata0_smmu: smmu@e0200000 { - compatible =3D "arm,mmu-401"; - reg =3D <0 0xe0200000 0 0x10000>; - #global-interrupts =3D <1>; - interrupts =3D /* Uses combined intr for both - * global and context - */ - <0 332 4>, - <0 332 4>; - #iommu-cells =3D <2>; - dma-coherent; - }; - - sata1_smmu: smmu@e0c00000 { - compatible =3D "arm,mmu-401"; - reg =3D <0 0xe0c00000 0 0x10000>; - #global-interrupts =3D <1>; - interrupts =3D /* Uses combined intr for both - * global and context - */ - <0 331 4>, - <0 331 4>; - #iommu-cells =3D <2>; - dma-coherent; - }; - - sata@e0300000 { - compatible =3D "snps,dwc-ahci"; - reg =3D <0x0 0xe0300000 0x0 0xf0000>; - interrupts =3D <0x0 0x163 0x4>; - clocks =3D <0x2>; - dma-coherent; - iommus =3D <&sata0_smmu 0x00 0x1f>; /* 0-31 */ - }; - - sata@e0d00000 { - status =3D "disabled"; - compatible =3D "snps,dwc-ahci"; - reg =3D <0x0 0xe0d00000 0x0 0xf0000>; - interrupts =3D <0x0 0x162 0x4>; - clocks =3D <0x2>; - dma-coherent; - iommus =3D <&sata1_smmu 0x00 0x1f>; /* 0-31 */ - }; - - i2c@e1000000 { - compatible =3D "snps,designware-i2c"; - reg =3D <0x0 0xe1000000 0x0 0x1000>; - interrupts =3D <0x0 0x165 0x4>; - clocks =3D <0xd>; - }; - - i2c@e0050000 { - compatible =3D "snps,designware-i2c"; - reg =3D <0x0 0xe0050000 0x0 0x1000>; - interrupts =3D <0x0 0x154 0x4>; - clocks =3D <0xd>; - }; - - serial@e1010000 { - compatible =3D "arm,pl011", "arm,primecell"; - reg =3D <0x0 0xe1010000 0x0 0x1000>; - interrupts =3D <0x0 0x148 0x4>; - clocks =3D <0x3 0x3>; - clock-names =3D "uartclk", "apb_pclk"; - }; - - ssp@e1020000 { - compatible =3D "arm,pl022", "arm,primecell"; - reg =3D <0x0 0xe1020000 0x0 0x1000>; - spi-controller; - interrupts =3D <0x0 0x14a 0x4>; - clocks =3D <0x3>; - clock-names =3D "apb_pclk"; - }; - - ssp@e1030000 { - compatible =3D "arm,pl022", "arm,primecell"; - reg =3D <0x0 0xe1030000 0x0 0x1000>; - spi-controller; - interrupts =3D <0x0 0x149 0x4>; - clocks =3D <0x3>; - clock-names =3D "apb_pclk"; - num-cs =3D <0x1>; - #address-cells =3D <0x1>; - #size-cells =3D <0x0>; - - sdcard@0 { - compatible =3D "mmc-spi-slot"; - reg =3D <0x0>; - spi-max-frequency =3D <20000000>; - voltage-ranges =3D <3200 3400>; - pl022,hierarchy =3D <0x0>; - pl022,interface =3D <0x0>; - pl022,com-mode =3D <0x0>; - pl022,rx-level-trig =3D <0x0>; - pl022,tx-level-trig =3D <0x0>; - }; - }; - - gpio@e1050000 { /* [0 : 7] */ - compatible =3D "arm,pl061", "arm,primecell"; - #gpio-cells =3D <0x2>; - reg =3D <0x0 0xe1050000 0x0 0x1000>; - gpio-controller; - interrupt-controller; - #interrupt-cells =3D <0x2>; - interrupts =3D <0x0 0x166 0x4>; - clocks =3D <0x3>; - clock-names =3D "apb_pclk"; - }; - - gpio@e0020000 { /* [8 : 15] */ - status =3D "disabled"; - compatible =3D "arm,pl061", "arm,primecell"; - #gpio-cells =3D <0x2>; - reg =3D <0x0 0xe0020000 0x0 0x1000>; - gpio-controller; - interrupt-controller; - #interrupt-cells =3D <0x2>; - interrupts =3D <0x0 0x16e 0x4>; - clocks =3D <0x3>; - clock-names =3D "apb_pclk"; - }; - - gpio@e0030000 { /* [16 : 23] */ - status =3D "disabled"; - compatible =3D "arm,pl061", "arm,primecell"; - #gpio-cells =3D <0x2>; - reg =3D <0x0 0xe0030000 0x0 0x1000>; - gpio-controller; - interrupt-controller; - #interrupt-cells =3D <0x2>; - interrupts =3D <0x0 0x16d 0x4>; - clocks =3D <0x3>; - clock-names =3D "apb_pclk"; - }; - - gpio@e0080000 { /* [24] */ - compatible =3D "arm,pl061", "arm,primecell"; - #gpio-cells =3D <0x2>; - reg =3D <0x0 0xe0080000 0x0 0x1000>; - gpio-controller; - interrupt-controller; - #interrupt-cells =3D <0x2>; - interrupts =3D <0x0 0x169 0x4>; - clocks =3D <0x3>; - clock-names =3D "apb_pclk"; - }; - - ccp: ccp@e0100000 { - compatible =3D "amd,ccp-seattle-v1a"; - reg =3D <0x0 0xe0100000 0x0 0x10000>; - interrupts =3D <0x0 0x3 0x4>; - dma-coherent; - amd,zlib-support =3D <0x1>; - }; - - pcie: pcie@f0000000 { - compatible =3D "pci-host-ecam-generic"; - #address-cells =3D <0x3>; - #size-cells =3D <0x2>; - #interrupt-cells =3D <0x1>; - iommu-map =3D <0x0 &pcie_smmu 0x0 0x10000>; - device_type =3D "pci"; - bus-range =3D <0x0 0x7f>; - msi-parent =3D <0x4>; - reg =3D <0x0 0xf0000000 0x0 0x10000000>; - interrupt-map-mask =3D <0xff00 0x0 0x0 0x7>; - interrupt-map =3D <0x1100 0x0 0x0 0x1 0x1 0x0 0x0 0x0 0x120 0x1>, - <0x1100 0x0 0x0 0x2 0x1 0x0 0x0 0x0 0x121 0x1>, - <0x1100 0x0 0x0 0x3 0x1 0x0 0x0 0x0 0x122 0x1>, - <0x1100 0x0 0x0 0x4 0x1 0x0 0x0 0x0 0x123 0x1>, - - <0x1200 0x0 0x0 0x1 0x1 0x0 0x0 0x0 0x124 0x1>, - <0x1200 0x0 0x0 0x2 0x1 0x0 0x0 0x0 0x125 0x1>, - <0x1200 0x0 0x0 0x3 0x1 0x0 0x0 0x0 0x126 0x1>, - <0x1200 0x0 0x0 0x4 0x1 0x0 0x0 0x0 0x127 0x1>, - - <0x1300 0x0 0x0 0x1 0x1 0x0 0x0 0x0 0x128 0x1>, - <0x1300 0x0 0x0 0x2 0x1 0x0 0x0 0x0 0x129 0x1>, - <0x1300 0x0 0x0 0x3 0x1 0x0 0x0 0x0 0x12a 0x1>, - <0x1300 0x0 0x0 0x4 0x1 0x0 0x0 0x0 0x12b 0x1>; - dma-coherent; - dma-ranges =3D <0x43000000 0x0 0x0 0x0 0x0 0x100 0x0>; - ranges =3D <0x1000000 0x0 0x00000000 0x0 0xefff0000 0x00 0x00010000>, /= * I/O Memory (size=3D64K) */ - <0x2000000 0x0 0x40000000 0x0 0x40000000 0x00 0x80000000>, /* 32-bit = MMIO (size=3D2G) */ - <0x3000000 0x1 0x00000000 0x1 0x00000000 0x7f 0x00000000>; /* 64-bit = MMIO (size=3D 124G) */ - }; - - pcie_smmu: smmu@e0a00000 { - compatible =3D "arm,mmu-401"; - reg =3D <0 0xe0a00000 0 0x10000>; - #global-interrupts =3D <1>; - interrupts =3D /* Uses combined intr for both - * global and context - */ - <0 333 4>, - <0 333 4>; - #iommu-cells =3D <1>; - dma-coherent; - }; - - ccn@0xe8000000 { - compatible =3D "arm,ccn-504"; - reg =3D <0x0 0xe8000000 0x0 0x1000000>; - interrupts =3D <0x0 0x17c 0x4>; - }; - - gwdt@e0bb0000 { - status =3D "disabled"; - compatible =3D "arm,sbsa-gwdt"; - reg =3D <0x0 0xe0bb0000 0x0 0x10000 - 0x0 0xe0bc0000 0x0 0x10000>; - reg-names =3D "refresh", "control"; - interrupts =3D <0x0 0x151 0x4>; - interrupt-names =3D "ws0"; - }; - - kcs@e0010000 { - status =3D "disabled"; - compatible =3D "ipmi-kcs"; - device_type =3D "ipmi"; - reg =3D <0x0 0xe0010000 0 0x8>; - interrupts =3D <0 389 4>; - interrupt-names =3D "ipmi_kcs"; - reg-size =3D <1>; - reg-spacing =3D <4>; - }; - - clk250mhz_0 { - compatible =3D "fixed-clock"; - #clock-cells =3D <0x0>; - clock-frequency =3D <250000000>; - clock-output-names =3D "xgmacclk0_dma_250mhz"; - linux,phandle =3D <0x5>; - phandle =3D <0x5>; - }; - - clk250mhz_1 { - compatible =3D "fixed-clock"; - #clock-cells =3D <0x0>; - clock-frequency =3D <250000000>; - clock-output-names =3D "xgmacclk0_ptp_250mhz"; - linux,phandle =3D <0x6>; - phandle =3D <0x6>; - }; - - clk250mhz_2 { - compatible =3D "fixed-clock"; - #clock-cells =3D <0x0>; - clock-frequency =3D <250000000>; - clock-output-names =3D "xgmacclk1_dma_250mhz"; - linux,phandle =3D <0x7>; - phandle =3D <0x7>; - }; - - clk250mhz_3 { - compatible =3D "fixed-clock"; - #clock-cells =3D <0x0>; - clock-frequency =3D <250000000>; - clock-output-names =3D "xgmacclk1_ptp_250mhz"; - linux,phandle =3D <0x8>; - phandle =3D <0x8>; - }; - - phy@e1240800 { - status =3D "disabled"; - compatible =3D "amd,xgbe-phy-seattle-v1a"; - reg =3D <0x0 0xe1240800 0x0 0x0400>, /* SERDES RX/TX0 */ - <0x0 0xe1250000 0x0 0x0060>, /* SERDES IR 1/2 */ - <0x0 0xe12500f8 0x0 0x0004>; /* SERDES IR 2/2 */ - interrupts =3D <0x0 0x143 0x4>; - amd,speed-set =3D <0x0>; - amd,serdes-blwc =3D <0x1 0x1 0x0>; - amd,serdes-cdr-rate =3D <0x2 0x2 0x7>; - amd,serdes-pq-skew =3D <0xa 0xa 0x12>; - amd,serdes-tx-amp =3D <0xf 0xf 0xa>; - amd,serdes-dfe-tap-config =3D <0x3 0x3 0x1>; - amd,serdes-dfe-tap-enable =3D <0x0 0x0 0x7f>; - linux,phandle =3D <0x9>; - phandle =3D <0x9>; - }; - - phy@e1240c00 { - status =3D "disabled"; - compatible =3D "amd,xgbe-phy-seattle-v1a"; - reg =3D <0x0 0xe1240c00 0x0 0x0400>, /* SERDES RX/TX0 */ - <0x0 0xe1250080 0x0 0x0060>, /* SERDES IR 1/2 */ - <0x0 0xe12500fc 0x0 0x0004>; /* SERDES IR 2/2 */ - interrupts =3D <0x0 0x142 0x4>; - amd,speed-set =3D <0x0>; - amd,serdes-blwc =3D <0x1 0x1 0x0>; - amd,serdes-cdr-rate =3D <0x2 0x2 0x7>; - amd,serdes-pq-skew =3D <0xa 0xa 0x12>; - amd,serdes-tx-amp =3D <0xf 0xf 0xa>; - amd,serdes-dfe-tap-config =3D <0x3 0x3 0x1>; - amd,serdes-dfe-tap-enable =3D <0x0 0x0 0x7f>; - linux,phandle =3D <0xa>; - phandle =3D <0xa>; - }; - - xgmac0_smmu: smmu@e0600000 { - compatible =3D "arm,mmu-401"; - reg =3D <0 0xe0600000 0 0x10000>; - #global-interrupts =3D <1>; - interrupts =3D /* Uses combined intr for both - * global and context - */ - <0 336 4>, - <0 336 4>; - #iommu-cells =3D <2>; - dma-coherent; - }; - - xgmac1_smmu: smmu@e0800000 { - compatible =3D "arm,mmu-401"; - reg =3D <0 0xe0800000 0 0x10000>; - #global-interrupts =3D <1>; - interrupts =3D /* Uses combined intr for both - * global and context - */ - <0 335 4>, - <0 335 4>; - #iommu-cells =3D <2>; - dma-coherent; - }; - - xgmac@e0700000 { - status =3D "disabled"; - compatible =3D "amd,xgbe-seattle-v1a"; - reg =3D <0x0 0xe0700000 0x0 0x80000 0x0 0xe0780000 0x0 0x80000>; - interrupts =3D <0x0 0x145 0x4>, - <0x0 0x15a 0x1>, - <0x0 0x15b 0x1>, - <0x0 0x15c 0x1>, - <0x0 0x15d 0x1>; - amd,per-channel-interrupt; - mac-address =3D [02 a1 a2 a3 a4 a5]; - clocks =3D <0x5 0x6>; - clock-names =3D "dma_clk", "ptp_clk"; - phy-handle =3D <0x9>; - phy-mode =3D "xgmii"; - dma-coherent; - iommus =3D <&xgmac0_smmu 0x00 0x1f>; /* 0-31 */ - linux,phandle =3D <0xb>; - phandle =3D <0xb>; - }; - - xgmac@e0900000 { - status =3D "disabled"; - compatible =3D "amd,xgbe-seattle-v1a"; - reg =3D <0x0 0xe0900000 0x0 0x80000 0x0 0xe0980000 0x0 0x80000>; - interrupts =3D <0x0 0x144 0x4>, - <0x0 0x155 0x1>, - <0x0 0x156 0x1>, - <0x0 0x157 0x1>, - <0x0 0x158 0x1>; - amd,per-channel-interrupt; - mac-address =3D [02 b1 b2 b3 b4 b5]; - clocks =3D <0x7 0x8>; - clock-names =3D "dma_clk", "ptp_clk"; - phy-handle =3D <0xa>; - phy-mode =3D "xgmii"; - dma-coherent; - iommus =3D <&xgmac1_smmu 0x00 0x1f>; /* 0-31 */ - linux,phandle =3D <0xc>; - phandle =3D <0xc>; - }; - }; - - chosen { - stdout-path =3D "/smb/serial@e1010000"; - /* Note: - * Linux support for pci-probe-only DT is not - * stable. Disable this for now and let Linux - * take care of the resource assignment. - */ - // linux,pci-probe-only; - }; - - psci { - compatible =3D "arm,psci-0.2", "arm,psci"; - method =3D "smc"; - }; + model =3D "AMD Seattle (Rev.B) Development Board (Overdrive)"; + compatible =3D "amd,seattle-overdrive", "amd,seattle"; + interrupt-parent =3D <&gic>; + #address-cells =3D <0x2>; + #size-cells =3D <0x2>; + + gic: interrupt-controller@e1101000 { + compatible =3D "arm,gic-400", "arm,cortex-a15-gic"; + interrupt-controller; + #interrupt-cells =3D <0x3>; + #address-cells =3D <0x2>; + #size-cells =3D <0x2>; + reg =3D <0x0 0xe1110000 0x0 0x1000>, + <0x0 0xe112f000 0x0 0x2000>, + <0x0 0xe1140000 0x0 0x2000>, + <0x0 0xe1160000 0x0 0x2000>; + interrupts =3D ; + ranges =3D <0x0 0x0 0x0 0xe1100000 0x0 0x100000>; + + msi: v2m@e0080000 { + compatible =3D "arm,gic-v2m-frame"; + reg =3D <0x0 0x80000 0x0 0x1000>; + msi-controller; + }; + }; + + timer { + compatible =3D "arm,armv8-timer"; + interrupts =3D , + , + , + ; + }; + + smb { + compatible =3D "simple-bus"; + #address-cells =3D <0x2>; + #size-cells =3D <0x2>; + ranges; + /* + * dma-ranges is 40-bit address space containing: + * - GICv2m MSI register is at 0xe0080000 + * - DRAM range [0x8000000000 to 0xffffffffff] + */ + dma-ranges =3D <0x0 0x0 0x0 0x0 0x100 0x0>; + + adl3clk: clk100mhz_0 { + compatible =3D "fixed-clock"; + #clock-cells =3D <0x0>; + clock-frequency =3D <100000000>; + clock-output-names =3D "adl3clk_100mhz"; + }; + + ccpclk: clk375mhz { + compatible =3D "fixed-clock"; + #clock-cells =3D <0x0>; + clock-frequency =3D <375000000>; + clock-output-names =3D "ccpclk_375mhz"; + }; + + sataclk: clk333mhz { + compatible =3D "fixed-clock"; + #clock-cells =3D <0x0>; + clock-frequency =3D <333000000>; + clock-output-names =3D "sataclk_333mhz"; + }; + + pcieclk: clk500mhz_0 { + compatible =3D "fixed-clock"; + #clock-cells =3D <0x0>; + clock-frequency =3D <500000000>; + clock-output-names =3D "pcieclk_500mhz"; + }; + + dmaclk: clk500mhz_1 { + compatible =3D "fixed-clock"; + #clock-cells =3D <0x0>; + clock-frequency =3D <500000000>; + clock-output-names =3D "dmaclk_500mhz"; + }; + + miscclk: clk250mhz_4 { + compatible =3D "fixed-clock"; + #clock-cells =3D <0x0>; + clock-frequency =3D <250000000>; + clock-output-names =3D "miscclk_250mhz"; + }; + + uartspiclk: clk100mhz_1 { + compatible =3D "fixed-clock"; + #clock-cells =3D <0x0>; + clock-frequency =3D <100000000>; + clock-output-names =3D "uartspiclk_100mhz"; + }; + + sata0_smmu: smmu@e0200000 { + compatible =3D "arm,mmu-401"; + reg =3D <0 0xe0200000 0 0x10000>; + + /* Uses combined intr for both global and context */ + #global-interrupts =3D <1>; + interrupts =3D , + ; + #iommu-cells =3D <2>; + dma-coherent; + }; + + sata1_smmu: smmu@e0c00000 { + compatible =3D "arm,mmu-401"; + reg =3D <0 0xe0c00000 0 0x10000>; + + /* Uses combined intr for both global and context */ + #global-interrupts =3D <1>; + interrupts =3D , + ; + #iommu-cells =3D <2>; + dma-coherent; + }; + + sata@e0300000 { + compatible =3D "snps,dwc-ahci"; + reg =3D <0x0 0xe0300000 0x0 0xf0000>; + interrupts =3D ; + clocks =3D <&sataclk>; + dma-coherent; + iommus =3D <&sata0_smmu 0x00 0x1f>; /* 0-31 */ + }; + + sata@e0d00000 { + status =3D "disabled"; + compatible =3D "snps,dwc-ahci"; + reg =3D <0x0 0xe0d00000 0x0 0xf0000>; + interrupts =3D ; + clocks =3D <&sataclk>; + dma-coherent; + iommus =3D <&sata1_smmu 0x00 0x1f>; /* 0-31 */ + }; + + i2c@e1000000 { + compatible =3D "snps,designware-i2c"; + reg =3D <0x0 0xe1000000 0x0 0x1000>; + interrupts =3D ; + clocks =3D <&miscclk>; + }; + + i2c@e0050000 { + compatible =3D "snps,designware-i2c"; + reg =3D <0x0 0xe0050000 0x0 0x1000>; + interrupts =3D ; + clocks =3D <&miscclk>; + }; + + serial@e1010000 { + compatible =3D "arm,pl011", "arm,primecell"; + reg =3D <0x0 0xe1010000 0x0 0x1000>; + interrupts =3D ; + clocks =3D <&uartspiclk &uartspiclk>; + clock-names =3D "uartclk", "apb_pclk"; + }; + + ssp@e1020000 { + compatible =3D "arm,pl022", "arm,primecell"; + reg =3D <0x0 0xe1020000 0x0 0x1000>; + spi-controller; + interrupts =3D ; + clocks =3D <&uartspiclk>; + clock-names =3D "apb_pclk"; + }; + + ssp@e1030000 { + compatible =3D "arm,pl022", "arm,primecell"; + reg =3D <0x0 0xe1030000 0x0 0x1000>; + spi-controller; + interrupts =3D ; + clocks =3D <&uartspiclk>; + clock-names =3D "apb_pclk"; + num-cs =3D <0x1>; + #address-cells =3D <0x1>; + #size-cells =3D <0x0>; + + sdcard@0 { + compatible =3D "mmc-spi-slot"; + reg =3D <0x0>; + spi-max-frequency =3D <20000000>; + voltage-ranges =3D <3200 3400>; + pl022,hierarchy =3D <0x0>; + pl022,interface =3D <0x0>; + pl022,com-mode =3D <0x0>; + pl022,rx-level-trig =3D <0x0>; + pl022,tx-level-trig =3D <0x0>; + }; + }; + + gpio@e1050000 { /* [0 : 7] */ + compatible =3D "arm,pl061", "arm,primecell"; + #gpio-cells =3D <0x2>; + reg =3D <0x0 0xe1050000 0x0 0x1000>; + gpio-controller; + interrupt-controller; + #interrupt-cells =3D <0x2>; + interrupts =3D ; + clocks =3D <&uartspiclk>; + clock-names =3D "apb_pclk"; + }; + + gpio@e0020000 { /* [8 : 15] */ + status =3D "disabled"; + compatible =3D "arm,pl061", "arm,primecell"; + #gpio-cells =3D <0x2>; + reg =3D <0x0 0xe0020000 0x0 0x1000>; + gpio-controller; + interrupt-controller; + #interrupt-cells =3D <0x2>; + interrupts =3D ; + clocks =3D <&uartspiclk>; + clock-names =3D "apb_pclk"; + }; + + gpio@e0030000 { /* [16 : 23] */ + status =3D "disabled"; + compatible =3D "arm,pl061", "arm,primecell"; + #gpio-cells =3D <0x2>; + reg =3D <0x0 0xe0030000 0x0 0x1000>; + gpio-controller; + interrupt-controller; + #interrupt-cells =3D <0x2>; + interrupts =3D ; + clocks =3D <&uartspiclk>; + clock-names =3D "apb_pclk"; + }; + + gpio@e0080000 { /* [24] */ + compatible =3D "arm,pl061", "arm,primecell"; + #gpio-cells =3D <0x2>; + reg =3D <0x0 0xe0080000 0x0 0x1000>; + gpio-controller; + interrupt-controller; + #interrupt-cells =3D <0x2>; + interrupts =3D ; + clocks =3D <&uartspiclk>; + clock-names =3D "apb_pclk"; + }; + + ccp: ccp@e0100000 { + compatible =3D "amd,ccp-seattle-v1a"; + reg =3D <0x0 0xe0100000 0x0 0x10000>; + interrupts =3D ; + dma-coherent; + amd,zlib-support =3D <0x1>; + }; + + pcie: pcie@f0000000 { + compatible =3D "pci-host-ecam-generic"; + #address-cells =3D <0x3>; + #size-cells =3D <0x2>; + #interrupt-cells =3D <0x1>; + iommu-map =3D <0x0 &pcie_smmu 0x0 0x10000>; + device_type =3D "pci"; + bus-range =3D <0x0 0x7f>; + msi-parent =3D <&msi>; + reg =3D <0x0 0xf0000000 0x0 0x10000000>; + interrupt-map-mask =3D <0xff00 0x0 0x0 0x7>; + interrupt-map =3D <0x1100 0x0 0x0 0x1 &gic 0x0 0x0 GIC_SPI 0x120 IRQ= _TYPE_EDGE_RISING>, + <0x1100 0x0 0x0 0x2 &gic 0x0 0x0 GIC_SPI 0x121 IRQ_T= YPE_EDGE_RISING>, + <0x1100 0x0 0x0 0x3 &gic 0x0 0x0 GIC_SPI 0x122 IRQ_T= YPE_EDGE_RISING>, + <0x1100 0x0 0x0 0x4 &gic 0x0 0x0 GIC_SPI 0x123 IRQ_T= YPE_EDGE_RISING>, + + <0x1200 0x0 0x0 0x1 &gic 0x0 0x0 GIC_SPI 0x124 IRQ_T= YPE_EDGE_RISING>, + <0x1200 0x0 0x0 0x2 &gic 0x0 0x0 GIC_SPI 0x125 IRQ_T= YPE_EDGE_RISING>, + <0x1200 0x0 0x0 0x3 &gic 0x0 0x0 GIC_SPI 0x126 IRQ_T= YPE_EDGE_RISING>, + <0x1200 0x0 0x0 0x4 &gic 0x0 0x0 GIC_SPI 0x127 IRQ_T= YPE_EDGE_RISING>, + + <0x1300 0x0 0x0 0x1 &gic 0x0 0x0 GIC_SPI 0x128 IRQ_T= YPE_EDGE_RISING>, + <0x1300 0x0 0x0 0x2 &gic 0x0 0x0 GIC_SPI 0x129 IRQ_T= YPE_EDGE_RISING>, + <0x1300 0x0 0x0 0x3 &gic 0x0 0x0 GIC_SPI 0x12a IRQ_T= YPE_EDGE_RISING>, + <0x1300 0x0 0x0 0x4 &gic 0x0 0x0 GIC_SPI 0x12b IRQ_T= YPE_EDGE_RISING>; + dma-coherent; + dma-ranges =3D <0x43000000 0x0 0x0 0x0 0x0 0x100 0x0>; + ranges =3D <0x1000000 0x0 0x00000000 0x0 0xefff0000 0x00 0x00010000>= , /* I/O Memory (size=3D64K) */ + <0x2000000 0x0 0x40000000 0x0 0x40000000 0x00 0x80000000>, = /* 32-bit MMIO (size=3D2G) */ + <0x3000000 0x1 0x00000000 0x1 0x00000000 0x7f 0x00000000>; = /* 64-bit MMIO (size=3D 124G) */ + }; + + pcie_smmu: smmu@e0a00000 { + compatible =3D "arm,mmu-401"; + reg =3D <0 0xe0a00000 0 0x10000>; + + /* Uses combined intr for both global and context */ + #global-interrupts =3D <1>; + interrupts =3D , + ; + #iommu-cells =3D <1>; + dma-coherent; + }; + + ccn@0xe8000000 { + compatible =3D "arm,ccn-504"; + reg =3D <0x0 0xe8000000 0x0 0x1000000>; + interrupts =3D ; + }; + + gwdt@e0bb0000 { + status =3D "disabled"; + compatible =3D "arm,sbsa-gwdt"; + reg =3D <0x0 0xe0bb0000 0x0 0x10000 + 0x0 0xe0bc0000 0x0 0x10000>; + reg-names =3D "refresh", "control"; + interrupts =3D ; + interrupt-names =3D "ws0"; + }; + + kcs@e0010000 { + status =3D "disabled"; + compatible =3D "ipmi-kcs"; + device_type =3D "ipmi"; + reg =3D <0x0 0xe0010000 0 0x8>; + interrupts =3D ; + interrupt-names =3D "ipmi_kcs"; + reg-size =3D <1>; + reg-spacing =3D <4>; + }; + + xgmacclk0_dma: clk250mhz_0 { + compatible =3D "fixed-clock"; + #clock-cells =3D <0x0>; + clock-frequency =3D <250000000>; + clock-output-names =3D "xgmacclk0_dma_250mhz"; + }; + + xgmacclk0_ptp: clk250mhz_1 { + compatible =3D "fixed-clock"; + #clock-cells =3D <0x0>; + clock-frequency =3D <250000000>; + clock-output-names =3D "xgmacclk0_ptp_250mhz"; + }; + + xgmacclk1_dma: clk250mhz_2 { + compatible =3D "fixed-clock"; + #clock-cells =3D <0x0>; + clock-frequency =3D <250000000>; + clock-output-names =3D "xgmacclk1_dma_250mhz"; + }; + + xgmacclk1_ptp: clk250mhz_3 { + compatible =3D "fixed-clock"; + #clock-cells =3D <0x0>; + clock-frequency =3D <250000000>; + clock-output-names =3D "xgmacclk1_ptp_250mhz"; + }; + + xgmac0_phy: phy@e1240800 { + compatible =3D "amd,xgbe-phy-seattle-v1a"; + reg =3D <0x0 0xe1240800 0x0 0x0400>, /* SERDES RX/TX0 */ + <0x0 0xe1250000 0x0 0x0060>, /* SERDES IR 1/2 */ + <0x0 0xe12500f8 0x0 0x0004>; /* SERDES IR 2/2 */ + interrupts =3D ; + amd,speed-set =3D <0x0>; + amd,serdes-blwc =3D <0x1 0x1 0x0>; + amd,serdes-cdr-rate =3D <0x2 0x2 0x7>; + amd,serdes-pq-skew =3D <0xa 0xa 0x12>; + amd,serdes-tx-amp =3D <0xf 0xf 0xa>; + amd,serdes-dfe-tap-config =3D <0x3 0x3 0x1>; + amd,serdes-dfe-tap-enable =3D <0x0 0x0 0x7f>; + status =3D "disabled"; + }; + + xgmac1_phy: phy@e1240c00 { + compatible =3D "amd,xgbe-phy-seattle-v1a"; + reg =3D <0x0 0xe1240c00 0x0 0x0400>, /* SERDES RX/TX0 */ + <0x0 0xe1250080 0x0 0x0060>, /* SERDES IR 1/2 */ + <0x0 0xe12500fc 0x0 0x0004>; /* SERDES IR 2/2 */ + interrupts =3D ; + amd,speed-set =3D <0x0>; + amd,serdes-blwc =3D <0x1 0x1 0x0>; + amd,serdes-cdr-rate =3D <0x2 0x2 0x7>; + amd,serdes-pq-skew =3D <0xa 0xa 0x12>; + amd,serdes-tx-amp =3D <0xf 0xf 0xa>; + amd,serdes-dfe-tap-config =3D <0x3 0x3 0x1>; + amd,serdes-dfe-tap-enable =3D <0x0 0x0 0x7f>; + status =3D "disabled"; + }; + + xgmac0_smmu: smmu@e0600000 { + compatible =3D "arm,mmu-401"; + reg =3D <0 0xe0600000 0 0x10000>; + + /* Uses combined intr for both global and context */ + #global-interrupts =3D <1>; + interrupts =3D , + ; + #iommu-cells =3D <2>; + dma-coherent; + }; + + xgmac1_smmu: smmu@e0800000 { + compatible =3D "arm,mmu-401"; + reg =3D <0 0xe0800000 0 0x10000>; + + /* Uses combined intr for both global and context */ + #global-interrupts =3D <1>; + interrupts =3D , + ; + #iommu-cells =3D <2>; + dma-coherent; + }; + + xgmac@e0700000 { + compatible =3D "amd,xgbe-seattle-v1a"; + reg =3D <0x0 0xe0700000 0x0 0x80000 0x0 0xe0780000 0x0 0x80000>; + interrupts =3D , + , + , + , + ; + amd,per-channel-interrupt; + mac-address =3D [02 a1 a2 a3 a4 a5]; + clocks =3D <&xgmacclk0_dma &xgmacclk0_ptp>; + clock-names =3D "dma_clk", "ptp_clk"; + phy-handle =3D <&xgmac0_phy>; + phy-mode =3D "xgmii"; + + iommus =3D <&xgmac0_smmu 0x00 0x1f>; /* 0-31 */ + dma-coherent; + status =3D "disabled"; + }; + + xgmac@e0900000 { + compatible =3D "amd,xgbe-seattle-v1a"; + reg =3D <0x0 0xe0900000 0x0 0x80000 0x0 0xe0980000 0x0 0x80000>; + interrupts =3D , + , + , + , + ; + amd,per-channel-interrupt; + mac-address =3D [02 b1 b2 b3 b4 b5]; + clocks =3D <&xgmacclk1_dma &xgmacclk1_ptp>; + clock-names =3D "dma_clk", "ptp_clk"; + phy-handle =3D <&xgmac1_phy>; + phy-mode =3D "xgmii"; + + iommus =3D <&xgmac1_smmu 0x00 0x1f>; /* 0-31 */ + dma-coherent; + status =3D "disabled"; + }; + }; + + chosen { + stdout-path =3D "/smb/serial@e1010000"; + }; + + psci { + compatible =3D "arm,psci-0.2", "arm,psci"; + method =3D "smc"; + }; }; --=20 2.11.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel