Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp3680389ybh; Mon, 5 Aug 2019 23:28:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqyhH3aGnZrt1hA2o7nK4Wl8VNjS9+HdXXdh8QpaUrr9dB9PgT/1qgi7a1MbikjQVmpBjhkj X-Received: by 2002:aa7:843c:: with SMTP id q28mr2057086pfn.152.1565072907776; Mon, 05 Aug 2019 23:28:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565072907; cv=none; d=google.com; s=arc-20160816; b=fbWifzRCh8JRUz5evgwbIBt7qefptE7gOlVjrAeTWBQsrncl0Le8ThVAlScOpKuNgG I2NxiB5WasORYInpocik+R7vCqKj0B9Q7a3aPD4r5J+tIgdnieg8U2yaRVk+qZabZiVA jCJAsqqqi5Gad4fVwpW9+fbgjtIXbHuFOLttyMrbqFTG/495CbOT+dhHRdkuIONbdJkk N8AxwWq91oc0xL8tI/CQhe2+MQCh8dP6s8+6d2azlUV+FxZUhebx52A0N4IONXyxQtaS vUyqzkLJLiYQzSoZ0AiHNdPVlAf8YJyYIXzgCExMp+B1+4ErZ4Uc+yWSVqH+TPxWewNC OrLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=aunR8dxfbwPfcpIxuRT90miMKtBA7Nm62+ZTxGcHklE=; b=QbujpO4ItMCYAW1m08E7Z3Gj4ytVI/hylge2sm9LQROdz3ro4LilpirMnFQU1ECNJe q9uH85jO207qBbQUdd6H3f4BNS2HTh4qiUFBQErwOmLEv5wnz1HXFMCWi0/QOI6NnLvI I0NMQ3m2pfx8aglTZSqYJsaFILNolLWWKE/ew3c1/pwIAD7MmoP3bOOn1jlPmLzbvdt4 BejEYsOJzApA6hrSc6kWC5br5BSHnl9kBOJVNIuc+uMrgYAe/mJYkht7CURCt42r6dzK F/TC5PFc7neFGghFZG55jl/aAOpUezCqjSgCHeYyUTAaDKxDG5/rHNqZFEoLbP/pO1Za wFgQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n6si53302685pgs.333.2019.08.05.23.28.12; Mon, 05 Aug 2019 23:28:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731856AbfHFGZx (ORCPT + 99 others); Tue, 6 Aug 2019 02:25:53 -0400 Received: from inva021.nxp.com ([92.121.34.21]:56570 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731576AbfHFGZw (ORCPT ); Tue, 6 Aug 2019 02:25:52 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 9AFEC200005; Tue, 6 Aug 2019 08:25:49 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 0D5F5200241; Tue, 6 Aug 2019 08:25:38 +0200 (CEST) Received: from titan.ap.freescale.net (TITAN.ap.freescale.net [10.192.208.233]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id C8109402B5; Tue, 6 Aug 2019 14:25:24 +0800 (SGT) From: Xiaowei Bao To: bhelgaas@google.com, robh+dt@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org, leoyang.li@nxp.com, kishon@ti.com, lorenzo.pieralisi@arm.com, arnd@arndb.de, gregkh@linuxfoundation.org, minghuan.Lian@nxp.com, mingkai.hu@nxp.com, zhiqiang.hou@nxp.com, roy.zang@nxp.com, kstewart@linuxfoundation.org, pombredanne@nexb.com, shawn.lin@rock-chips.com, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org Cc: Xiaowei Bao , Hou Zhiqiang Subject: [PATCHv3 2/3] arm64: dts: ls1028a: Add PCIe controller DT nodes Date: Tue, 6 Aug 2019 14:15:52 +0800 Message-Id: <20190806061553.19934-2-xiaowei.bao@nxp.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20190806061553.19934-1-xiaowei.bao@nxp.com> References: <20190806061553.19934-1-xiaowei.bao@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org LS1028a implements 2 PCIe 3.0 controllers. Signed-off-by: Xiaowei Bao Signed-off-by: Hou Zhiqiang --- v2: - Fix up the legacy INTx allocate failed issue. v3: - no change. arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 52 ++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi index aef5b06..0b542ed 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi @@ -503,6 +503,58 @@ status = "disabled"; }; + pcie@3400000 { + compatible = "fsl,ls1028a-pcie"; + reg = <0x00 0x03400000 0x0 0x00100000 /* controller registers */ + 0x80 0x00000000 0x0 0x00002000>; /* configuration space */ + reg-names = "regs", "config"; + interrupts = , /* PME interrupt */ + ; /* aer interrupt */ + interrupt-names = "pme", "aer"; + #address-cells = <3>; + #size-cells = <2>; + device_type = "pci"; + dma-coherent; + num-lanes = <4>; + bus-range = <0x0 0xff>; + ranges = <0x81000000 0x0 0x00000000 0x80 0x00010000 0x0 0x00010000 /* downstream I/O */ + 0x82000000 0x0 0x40000000 0x80 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */ + msi-parent = <&its>; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 7>; + interrupt-map = <0000 0 0 1 &gic 0 0 GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>, + <0000 0 0 2 &gic 0 0 GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>, + <0000 0 0 3 &gic 0 0 GIC_SPI 111 IRQ_TYPE_LEVEL_HIGH>, + <0000 0 0 4 &gic 0 0 GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>; + status = "disabled"; + }; + + pcie@3500000 { + compatible = "fsl,ls1028a-pcie"; + reg = <0x00 0x03500000 0x0 0x00100000 /* controller registers */ + 0x88 0x00000000 0x0 0x00002000>; /* configuration space */ + reg-names = "regs", "config"; + interrupts = , + ; + interrupt-names = "pme", "aer"; + #address-cells = <3>; + #size-cells = <2>; + device_type = "pci"; + dma-coherent; + num-lanes = <4>; + bus-range = <0x0 0xff>; + ranges = <0x81000000 0x0 0x00000000 0x88 0x00010000 0x0 0x00010000 /* downstream I/O */ + 0x82000000 0x0 0x40000000 0x88 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */ + msi-parent = <&its>; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 7>; + interrupt-map = <0000 0 0 1 &gic 0 0 GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>, + <0000 0 0 2 &gic 0 0 GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>, + <0000 0 0 3 &gic 0 0 GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>, + <0000 0 0 4 &gic 0 0 GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>; + status = "disabled"; + }; + pcie@1f0000000 { /* Integrated Endpoint Root Complex */ compatible = "pci-host-ecam-generic"; reg = <0x01 0xf0000000 0x0 0x100000>; -- 2.9.5