Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1186762ybl; Fri, 23 Aug 2019 14:57:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqzrY3DO07S0LaLm/WXz7rLWk9aqffGk3HfoG/7B0oGvMPZq+IJpqPMoaNHZFZTYFky8vtUb X-Received: by 2002:aa7:8dc9:: with SMTP id j9mr814061pfr.233.1566597470098; Fri, 23 Aug 2019 14:57:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566597470; cv=none; d=google.com; s=arc-20160816; b=rpAOvaT9OuEqrXn3H/hu50RogyMUMognSzdeqwYUQOriQaT8hDI19V01XXdzQXAAnN kRMCL+R2Ex4feVTDfwuPFLD7fbWxxRMmpX+9fvZ/r+Ad8qbwrusCF+6LEK6H+P9nNlqQ XdQmTSutEDz6TFL5OP8kGz76uOjx3FF6P25DvIJqnBcv1J6/EcnmMapyIytXHQNHknDL MV5k1+uUI5+EdWYCVKhLyuqnJZnagA8kSAnnllRfdMw8ez7q6p3F1ph/N1df4grmcLzB hl9Mcn8QLcq54CLE+cHnQoO7IgjPWi1J2diZg2O+gugs5jyDyvEr3GbELgY1rgiwwQn+ Ou8g== 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=K6mAUFgJBxlkop3lfNKfOs+AyDPC9ByS4PXjb/7FzKU=; b=oaR+wOOF0A2BbmoaZoHwcU4+UECd2KuxyxPwFAgPmBGvTGaOl2hi0kumzfCukg0mhJ K8PsfayW5iE5rD3X3kJpLCkg0hX2N6rPAeJ0GRz5r5yn6S9NQ218kY+OKye5TaeUo9BW Jzj8lRyS+xdPfLwia2BgEKpd2jqPMHmiZp3Kb3ZCX17O2sV6JXifVLNL72YM3801bp2V TwbWUi/6MsL5wJ/aEV0m+YdxnQa/gLnjgVYFrRU7AZii5fjiUlEdRtmzeNieFlyg5MkO d6EsMvX3QN6hpGogL5OCJHsPDE5a6nHYKQlNbzDK4y4zFxzEl/RaYsOtLvWHxfFQsF2j pBzA== 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 a187si2840194pgc.524.2019.08.23.14.57.34; Fri, 23 Aug 2019 14:57:50 -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 S2393026AbfHWIhE (ORCPT + 99 others); Fri, 23 Aug 2019 04:37:04 -0400 Received: from inva020.nxp.com ([92.121.34.13]:35862 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392980AbfHWIg6 (ORCPT ); Fri, 23 Aug 2019 04:36:58 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id C73C71A0004; Fri, 23 Aug 2019 10:36:55 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 6A8041A003E; Fri, 23 Aug 2019 10:36:47 +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 CE418402E1; Fri, 23 Aug 2019 16:36:37 +0800 (SGT) From: Xiaowei Bao To: robh+dt@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org, leoyang.li@nxp.com, minghuan.Lian@nxp.com, mingkai.hu@nxp.com, roy.zang@nxp.com, lorenzo.pieralisi@arm.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, zhiqiang.hou@nxp.com Cc: bhelgaas@google.com, Xiaowei Bao , Hou Zhiqiang Subject: [PATCH v4 2/3] arm64: dts: ls1028a: Add PCIe controller DT nodes Date: Fri, 23 Aug 2019 16:26:42 +0800 Message-Id: <20190823082643.10903-2-xiaowei.bao@nxp.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20190823082643.10903-1-xiaowei.bao@nxp.com> References: <20190823082643.10903-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. v4: - Remove the num-lanes proparty. depends on: https://patchwork.kernel.org/project/linux-pci/list/?series=162215 arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 50 ++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi index 72b9a75..a25f9d9 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi @@ -625,6 +625,56 @@ }; }; + 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; + 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; + 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