Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2835700ybl; Sun, 1 Sep 2019 01:02:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqze0RqG36bYQ9qZE1wqhb9m/wvXgfRfi+S5VCWT7n3nyjjFp2/STMVU/8MvMk3TX4fjGUZj X-Received: by 2002:a17:902:244:: with SMTP id 62mr24054644plc.243.1567324954783; Sun, 01 Sep 2019 01:02:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567324954; cv=none; d=google.com; s=arc-20160816; b=dCKUVWeG37nnPy5kETbCsysE8yH6Q/EtswU5Lvxj7p1f6p6Vi+U3+Yn3PtMGXlaGha cOiILGkeAlpebJZR+eW9SXYb0lMeZLcVVNA2npvKGAJm0VNTwNeC9J0WmfPv20KgI45Q F0OzX4BaYLQiHm+jlvNdUNTi5hYYpyULugx61suCUa/LXBqBQDJu/Hfc5dZhDWyyP/Ku hOL5jj6uaWbxl9LSlE/JAykkYSBwSa/rKxNXN4jeMBYcsIHMILc3aR1NL/WFrr2lmTjf IhdSUpBFVXtezLVZAUDAzzvWEfCeRnVy6mhDn/3Tc7sJ6ERiIhum7k/8JpNROuxG5oSt A5jw== 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=LM98L0J+7wjP5M8QBlKaMAimw8P9ApMNCBhD29/mSY4=; b=z9ANEwR+PD1j3l5qJjHYISFRHTYzQh4hw/X/VLtl5vvbnKN7g7JcEtkC/fvoyjDWlU pdc7GI5wOfQ50CrDD2L5ZaX2hidJMUxwR/9LiCNTrmQQM0b5GkgX7p4sDj/UVGCC7NFa F+3OQX8bipDm/RMmcWZdszPTPVGnn0t3dtpV7eZ1jgEdWfas/UAN2ZnEsCF3FC3dfHJ2 Y4rCywByp/DWfzI71+Vy5L/DqODB3tAFYDzTRQblC8Nd1fT5ubC05HG/0qW259hbxcw3 KMBy5MQyy6kF7Wsb1PD3dTeCfxiZOA/Hbu8Gj+r8r/519jptQShz+/7KaPFQ4aOo58Ka 6t1Q== 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 x4si338397pjt.97.2019.09.01.01.02.19; Sun, 01 Sep 2019 01:02:34 -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 S1728852AbfIAHvy (ORCPT + 99 others); Sun, 1 Sep 2019 03:51:54 -0400 Received: from inva021.nxp.com ([92.121.34.21]:35526 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728782AbfIAHvx (ORCPT ); Sun, 1 Sep 2019 03:51:53 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id E5B352005C1; Sun, 1 Sep 2019 09:51:50 +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 C056F2001C5; Sun, 1 Sep 2019 09:51:43 +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 72036402BE; Sun, 1 Sep 2019 15:51:35 +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 Cc: bhelgaas@google.com, Xiaowei Bao , Hou Zhiqiang Subject: [PATCH v5 2/3] arm64: dts: ls1028a: Add PCIe controller DT nodes Date: Sun, 1 Sep 2019 15:41:33 +0800 Message-Id: <20190901074134.24455-2-xiaowei.bao@nxp.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20190901074134.24455-1-xiaowei.bao@nxp.com> References: <20190901074134.24455-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 property. v5: - Add the num-viewport property. 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 72b9a75..c043b1d 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi @@ -625,6 +625,58 @@ }; }; + 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-viewport = <6>; + 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-viewport = <6>; + 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