Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3731354ybi; Sun, 2 Jun 2019 22:14:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqwlWsutAPmaXTTsb++D5MS9Iz1mc/HypA+MWqw0D5IwZVDmvVFAXweM139GAEsKUkRUNM4K X-Received: by 2002:a63:6685:: with SMTP id a127mr19942170pgc.22.1559538858487; Sun, 02 Jun 2019 22:14:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559538858; cv=none; d=google.com; s=arc-20160816; b=q1aMkAUsEe9Hw4gEWE96afRKeDTnLZvcp/IGTtTE0yMLiOgyVgpZaxXiXzA9vEq45g iO+xrB6U8BoT+Vqub6UI3sRHAignGYAWBnwpgGDMiOk6RKEXapiXCEmnNvG1SDuBnb0g c5HgjMWLy+H1c+Jie3Eu9FxS8xrSzxRhd/qwk4M/QYxA4sEbkDRa+v0HhNnWnSxqF90u bh9FsTfGxw/CbkUEgSau4j8dtc1UTxhFeMjMKwE1FQblbHgHyBypi1JEcHR+K64DWH1Z ZvoZgoiVIINRhp5m6r3uY+UjlOM+ZztqojF9+vZFndVSRE7hLdnZ9idm9Fv2SQFeqW02 ZMeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=1hhBDceAp7DealibgpzRgQkbsVjG+SPyfDmMhWMC+1k=; b=QbL8OelMxTKT3Ov41AS6IZDp7uzmLJ9feSv6Ad/YjPxbj5r2fzGnhrBbHY9DBfA3VF H42W3sda/CeeyzBvUJ68lpEBlyUW5bh4Hjrgedc4ZPM97uRw/E7hArz2DJdCa1aYUTf8 Us7tYcYUlPqx0bPoZfZfn3OsPCG2Ir5ZqVYXEtlzRH9B2Vebn+Puh1N/LrWxyL/PxTrc pxl1silnL6AKosUK/GlhJ0EjlHhSCsfiGhCJFN6eFWwpbvfGkw/pljGo12ng56eSWFPN D9DIyydyVp9Tmw/xpkymkbI0OYey1FnWoHVLvaVlwMncHNyNj5HqkpmRbTdjuOQrRybE ErTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mobiveil.co.in header.s=google header.b=jG9jP4nT; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o22si950964pgk.118.2019.06.02.22.13.59; Sun, 02 Jun 2019 22:14:18 -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; dkim=pass header.i=@mobiveil.co.in header.s=google header.b=jG9jP4nT; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726537AbfFCFMu (ORCPT + 99 others); Mon, 3 Jun 2019 01:12:50 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:45712 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726354AbfFCFMt (ORCPT ); Mon, 3 Jun 2019 01:12:49 -0400 Received: by mail-lj1-f194.google.com with SMTP id r76so14857588lja.12 for ; Sun, 02 Jun 2019 22:12:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mobiveil.co.in; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1hhBDceAp7DealibgpzRgQkbsVjG+SPyfDmMhWMC+1k=; b=jG9jP4nThSDZwaD/kp6Xib4Vyzog5fkGaOB9Mcgv4DXEGXAX3fPA+ceqLabquL17Cy 7tX1tYLDfASqHNZdWw9421ZUVBGDAvLcloFKmmp0yrGGjo8RmoLOehp9xgiAKKaLYiez 8RIVCutou53+Y/XUepTtiE9JghvqzS/w1te3s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1hhBDceAp7DealibgpzRgQkbsVjG+SPyfDmMhWMC+1k=; b=P9SJhcrv6IydBSXFd84TeXc/vaM2ZeqDTxLR2Xp3QGaMynSyixNU+8chz8Fu52vSKS LrZITaqTe9y4IuMpToFUaOX9QHPNs/a+HjeZ+6YGuJGVt93YJvcCNX2C4o2H0+4qav/7 7jfjuxrDvK4aLMoOEVC6faicwxYqiDzLAEEBjOX/JdPZp7Ng3adocu5Nv2PtMIdba8rO YH1l3OkxDHbxMdgM334G1jauMKpKsgFVeuQk6YdtTQZNvzFOaQsrojCNyBGGEqNvUynb ml4mrHkK6NwpyPqD1lktdEHDaqxdSvXM6UBeEzcHQsrW4MAIZKgp+duErtXZ402xo/vf yOSw== X-Gm-Message-State: APjAAAUExQt9bR4Yv8scqKSQS/KpGuOJbNpEEQwaRxWK2OgnfcrM+OLe Db+IonSVsYQAzsNuU1gwilvJMzXOZqU5TTJ4FWTsmPD2HIOstKdEihxpAhjyupS9DcyHmBhb3RS dZAyx0mkVymNTjM7cPWKQbYm8bK4oOIosBA== X-Received: by 2002:a2e:8555:: with SMTP id u21mr12390145ljj.133.1559538766557; Sun, 02 Jun 2019 22:12:46 -0700 (PDT) MIME-Version: 1.0 References: <20190528065129.8769-1-Zhiqiang.Hou@nxp.com> <20190528065129.8769-6-Zhiqiang.Hou@nxp.com> In-Reply-To: <20190528065129.8769-6-Zhiqiang.Hou@nxp.com> From: Karthikeyan Mitran Date: Mon, 3 Jun 2019 10:42:33 +0530 Message-ID: Subject: Re: [PATCHv6 5/6] arm64: dts: lx2160a: Add PCIe controller DT nodes To: "Z.q. Hou" Cc: "linux-pci@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "bhelgaas@google.com" , "robh+dt@kernel.org" , "arnd@arndb.de" , "mark.rutland@arm.com" , "l.subrahmanya@mobiveil.co.in" , "shawnguo@kernel.org" , Leo Li , "lorenzo.pieralisi@arm.com" , "catalin.marinas@arm.com" , "will.deacon@arm.com" , Mingkai Hu , "M.h. Lian" , Xiaowei Bao Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Hou Zhiqiang Two instances [@3600000 and @3800000] of the six has a different window count, the RC can not have more than 8 windows. apio-wins = <256>; //Can we change it to 8 ppio-wins = <24>; //Can we change it to 8 On Tue, May 28, 2019 at 12:20 PM Z.q. Hou wrote: > > From: Hou Zhiqiang > > The LX2160A integrated 6 PCIe Gen4 controllers. > > Signed-off-by: Hou Zhiqiang > Reviewed-by: Minghuan Lian > --- > V6: > - No change. > > .../arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 163 ++++++++++++++++++ > 1 file changed, 163 insertions(+) > > diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi > index 125a8cc2c5b3..7a2b91ff1fbc 100644 > --- a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi > +++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi > @@ -964,5 +964,168 @@ > }; > }; > }; > + > + pcie@3400000 { > + compatible = "fsl,lx2160a-pcie"; > + reg = <0x00 0x03400000 0x0 0x00100000 /* controller registers */ > + 0x80 0x00000000 0x0 0x00001000>; /* configuration space */ > + reg-names = "csr_axi_slave", "config_axi_slave"; > + interrupts = , /* AER interrupt */ > + , /* PME interrupt */ > + ; /* controller interrupt */ > + interrupt-names = "aer", "pme", "intr"; > + #address-cells = <3>; > + #size-cells = <2>; > + device_type = "pci"; > + dma-coherent; > + apio-wins = <8>; > + ppio-wins = <8>; > + bus-range = <0x0 0xff>; > + ranges = <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,lx2160a-pcie"; > + reg = <0x00 0x03500000 0x0 0x00100000 /* controller registers */ > + 0x88 0x00000000 0x0 0x00001000>; /* configuration space */ > + reg-names = "csr_axi_slave", "config_axi_slave"; > + interrupts = , /* AER interrupt */ > + , /* PME interrupt */ > + ; /* controller interrupt */ > + interrupt-names = "aer", "pme", "intr"; > + #address-cells = <3>; > + #size-cells = <2>; > + device_type = "pci"; > + dma-coherent; > + apio-wins = <8>; > + ppio-wins = <8>; > + bus-range = <0x0 0xff>; > + ranges = <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@3600000 { > + compatible = "fsl,lx2160a-pcie"; > + reg = <0x00 0x03600000 0x0 0x00100000 /* controller registers */ > + 0x90 0x00000000 0x0 0x00001000>; /* configuration space */ > + reg-names = "csr_axi_slave", "config_axi_slave"; > + interrupts = , /* AER interrupt */ > + , /* PME interrupt */ > + ; /* controller interrupt */ > + interrupt-names = "aer", "pme", "intr"; > + #address-cells = <3>; > + #size-cells = <2>; > + device_type = "pci"; > + dma-coherent; > + apio-wins = <256>; > + ppio-wins = <24>; > + bus-range = <0x0 0xff>; > + ranges = <0x82000000 0x0 0x40000000 0x90 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 119 IRQ_TYPE_LEVEL_HIGH>, > + <0000 0 0 2 &gic 0 0 GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>, > + <0000 0 0 3 &gic 0 0 GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>, > + <0000 0 0 4 &gic 0 0 GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>; > + status = "disabled"; > + }; > + > + pcie@3700000 { > + compatible = "fsl,lx2160a-pcie"; > + reg = <0x00 0x03700000 0x0 0x00100000 /* controller registers */ > + 0x98 0x00000000 0x0 0x00001000>; /* configuration space */ > + reg-names = "csr_axi_slave", "config_axi_slave"; > + interrupts = , /* AER interrupt */ > + , /* PME interrupt */ > + ; /* controller interrupt */ > + interrupt-names = "aer", "pme", "intr"; > + #address-cells = <3>; > + #size-cells = <2>; > + device_type = "pci"; > + dma-coherent; > + apio-wins = <8>; > + ppio-wins = <8>; > + bus-range = <0x0 0xff>; > + ranges = <0x82000000 0x0 0x40000000 0x98 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 124 IRQ_TYPE_LEVEL_HIGH>, > + <0000 0 0 2 &gic 0 0 GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>, > + <0000 0 0 3 &gic 0 0 GIC_SPI 126 IRQ_TYPE_LEVEL_HIGH>, > + <0000 0 0 4 &gic 0 0 GIC_SPI 127 IRQ_TYPE_LEVEL_HIGH>; > + status = "disabled"; > + }; > + > + pcie@3800000 { > + compatible = "fsl,lx2160a-pcie"; > + reg = <0x00 0x03800000 0x0 0x00100000 /* controller registers */ > + 0xa0 0x00000000 0x0 0x00001000>; /* configuration space */ > + reg-names = "csr_axi_slave", "config_axi_slave"; > + interrupts = , /* AER interrupt */ > + , /* PME interrupt */ > + ; /* controller interrupt */ > + interrupt-names = "aer", "pme", "intr"; > + #address-cells = <3>; > + #size-cells = <2>; > + device_type = "pci"; > + dma-coherent; > + apio-wins = <256>; > + ppio-wins = <24>; > + bus-range = <0x0 0xff>; > + ranges = <0x82000000 0x0 0x40000000 0xa0 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 129 IRQ_TYPE_LEVEL_HIGH>, > + <0000 0 0 2 &gic 0 0 GIC_SPI 130 IRQ_TYPE_LEVEL_HIGH>, > + <0000 0 0 3 &gic 0 0 GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH>, > + <0000 0 0 4 &gic 0 0 GIC_SPI 132 IRQ_TYPE_LEVEL_HIGH>; > + status = "disabled"; > + }; > + > + pcie@3900000 { > + compatible = "fsl,lx2160a-pcie"; > + reg = <0x00 0x03900000 0x0 0x00100000 /* controller registers */ > + 0xa8 0x00000000 0x0 0x00001000>; /* configuration space */ > + reg-names = "csr_axi_slave", "config_axi_slave"; > + interrupts = , /* AER interrupt */ > + , /* PME interrupt */ > + ; /* controller interrupt */ > + interrupt-names = "aer", "pme", "intr"; > + #address-cells = <3>; > + #size-cells = <2>; > + device_type = "pci"; > + dma-coherent; > + apio-wins = <8>; > + ppio-wins = <8>; > + bus-range = <0x0 0xff>; > + ranges = <0x82000000 0x0 0x40000000 0xa8 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 104 IRQ_TYPE_LEVEL_HIGH>, > + <0000 0 0 2 &gic 0 0 GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>, > + <0000 0 0 3 &gic 0 0 GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>, > + <0000 0 0 4 &gic 0 0 GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>; > + status = "disabled"; > + }; > + > }; > }; > -- > 2.17.1 > -- Thanks, Regards, Karthikeyan Mitran -- Mobiveil INC., CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain proprietary confidential or privileged information or otherwise be protected by law. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please notify the sender and destroy all copies and the original message.