Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp2250767ybh; Sun, 4 Aug 2019 21:17:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqyj8ZbI57FP2d7rKutpKtmVX3YFJC69QCw4eL2a1hJXWF9M3ePv9Bbv5k5KPwccBHPxZDOg X-Received: by 2002:a17:902:9688:: with SMTP id n8mr139334338plp.227.1564978637982; Sun, 04 Aug 2019 21:17:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564978637; cv=none; d=google.com; s=arc-20160816; b=X8cH4iuOiF+hEmD8L4ii09y4IOcHlOaUj4d+7k4wjx2dgggKIgqcRzNrqZHuqHp322 vFkM8Woc/lwt66il0Tppa24dK773G8NcNim4sgv1Frw+/u572DByWSytaGX5WyEN1nDT j9BPzTvRUXEQFwTBSO/waSkaDOQuV6nC47eFCj9Z9GXpHU6GkLPxnVz4UAo9pUeiVG/Y wkX2nR33IYRrdkTttLDQh2KFljdp5OmGvb2CIlFeWuXOsorCI0il3l/cgIMYu9Xe8Vwx OxWcXVviNVN3o2bA2yOTZfh4j2zTOpwRghD7KdsabYVYqsOl5BqUYQAy4Z1Ul1CCPHJp R5UA== 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=WXwyFm3Ab6nltklRoqkniCxGonikF0WEaDVkZl5u2Fs=; b=A6w7dnwj6fSnJPMP9HYB3ZFTxfFPSH2JtYh6LqBRGHcxMbBygMrxbuviMzd6GkdtcB Lj3GKINgXLnqDfJdKon1rBgXCBcv+wsXcWid9QpOF8YO6tRrhux1sTnoZMKThZ0Pbw// LC3atzGg9mFq/Y6SoLVmASWWOxl5JbzhPWDHxpGCdNlqpRli4vR8Znzc7DaQihz+varg UCmNTOjiFjB5VqF8qkI1mU8oVsLn2lBckVKD1wDjb+OZT0sdng/EN1YysYYzwgVRxkRK XH0rn92xZ/0qePG2gOPWdikZiNZ7EdYTFRlMPV5fmyIEPG8wB2V6ZcvQw65cI0GT5rrw D3eA== 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 p1si48056626pff.250.2019.08.04.21.16.25; Sun, 04 Aug 2019 21:17:17 -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 S1726880AbfHEEOx (ORCPT + 99 others); Mon, 5 Aug 2019 00:14:53 -0400 Received: from inva020.nxp.com ([92.121.34.13]:51720 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725613AbfHEEOv (ORCPT ); Mon, 5 Aug 2019 00:14:51 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id E27CD1A00F2; Mon, 5 Aug 2019 06:14:47 +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 C5A7D1A0084; Mon, 5 Aug 2019 06:14:36 +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 9EF42402B5; Mon, 5 Aug 2019 12:14:23 +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 Subject: [PATCHv2 2/3] arm64: dts: ls1028a: Add PCIe controller DT nodes Date: Mon, 5 Aug 2019 12:04:52 +0800 Message-Id: <20190805040453.48009-2-xiaowei.bao@nxp.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20190805040453.48009-1-xiaowei.bao@nxp.com> References: <20190805040453.48009-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 --- v2: - Fix up the legacy INTx allocate failed issue. 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