Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10023934imu; Wed, 5 Dec 2018 14:39:48 -0800 (PST) X-Google-Smtp-Source: AFSGD/XWl7wZ3vmTFIGFw8IoxCP7qAjoK568F+ZvE8/kXs6FA1SzfUmABAi5wQN6gNQZ9I/VWbKZ X-Received: by 2002:a17:902:f082:: with SMTP id go2mr26084929plb.115.1544049588256; Wed, 05 Dec 2018 14:39:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544049588; cv=none; d=google.com; s=arc-20160816; b=xC1hlvMWJYXJALyuz2EQJLKbLhr8zHQY1ROCuT6xZGtJyajLzKR9AagY0UKD1eqgB0 G8TkCg/ZtgzSlqW4Fm1AUUwcqUlx2BhCv/WbEQtQOXFIuOrI8QaQ1QSzfJWlKa2pcuoG Onn3C1dOhuAG5xe8h6Fr0et3cz4i0EtRPabafsWWq0oyzOdbz+GmJt5sMDfH4ZWMhcJE YXqt25dLmMWdmgKFEWlzkyG2Jpw9EK7EiJx1QFVdtGPRmBvs+odnebQ5zcctAdTWPP/I Tw4s04qePohSZOhWynBFPawPdoinAKXdXrsQT/3T4E5jPLD7Jd4hJu3odJFcCV4/DQWb u8wQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=6DfVtxcb7yKOs0ymB/s1S2dtFE6SR0aOXu/Nu1wH+9Y=; b=1LMnj0Pm4kV8vgRh8EzdvbVJOg/Ks4BBkI4HzpKFMMMXPR3fARj9a8sawCeDcF9aCn FaAzTlx8ihAkcuBmqo6byPURDbFT8dxDTjWZrecm3NkO2Nym13psD6zXrBMzukBEyzc6 j+PyWpPryOC2P12+yEdAZVuVN1vYmAp95raD8DGp/THzQiN22TZuzNtZLo8r8KBlhXjj ri56gewb6o/kj+Dl7pZWRM4zzUWG40/Oole8/cv0TIeKXMx+HFoiwEDVIdQnFi1IQ++7 J2d5oFkoIuR94PpK3JH5/McZq0g/xjYDFYqwNx4FsW36B1r2hfQjj0/0TqeFc+7Ov3Xx 4rEA== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e184si20751167pfg.185.2018.12.05.14.39.33; Wed, 05 Dec 2018 14:39:48 -0800 (PST) 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728738AbeLEWiq (ORCPT + 99 others); Wed, 5 Dec 2018 17:38:46 -0500 Received: from mail-ot1-f67.google.com ([209.85.210.67]:41490 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727620AbeLEWiq (ORCPT ); Wed, 5 Dec 2018 17:38:46 -0500 Received: by mail-ot1-f67.google.com with SMTP id u16so20255306otk.8; Wed, 05 Dec 2018 14:38:45 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=6DfVtxcb7yKOs0ymB/s1S2dtFE6SR0aOXu/Nu1wH+9Y=; b=j2cOI8+pnikJ65eet6ZoBfDNXP8Pam/NV4Z+ZIKCCD4Lkm6XBsOLlY+nhMc5ALvVDp gLOXAbbc5XcWqL5pea7xFvEH62y6tGg/7mcHYc5+ihqUUndMdYdVe2w9DSlBgzoCa69i qliYTRythw+GUUz81CfynvenP6GetflFwOpbr/QrXrbJLADlM6SaBCHtJveMYjGiDlKu CPuAU1S9BRW50ZqSHyAz4yogQBab5JiRhg0XFdXt4RjsEeOtPqrpULycIMmeK7LO0y9B lfML9NDVHANkOatqnVQ5aNiDaqaFMg1pMWmnLPW1UPO0u4YoBdCas2W+/OoBPJryG3wo 80oQ== X-Gm-Message-State: AA+aEWZj4mLazV90jzcKzPn7GwpY+Rt2Avpq1hgQObzwsrR2hKqPd9Kq EfoOT5gYy+FqtRBncBmKbw== X-Received: by 2002:a9d:3662:: with SMTP id w89mr17192742otb.55.1544049524558; Wed, 05 Dec 2018 14:38:44 -0800 (PST) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id s66sm22074407oia.55.2018.12.05.14.38.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 05 Dec 2018 14:38:43 -0800 (PST) Date: Wed, 5 Dec 2018 16:38:43 -0600 From: Rob Herring 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" , "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 Subject: Re: [PATCHv2 22/25] dt-bindings: pci: Add NXP Layerscape SoCs PCIe Gen4 controller Message-ID: <20181205223843.GA2125@bogus> References: <20181120092615.11680-1-Zhiqiang.Hou@nxp.com> <20181120092615.11680-23-Zhiqiang.Hou@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181120092615.11680-23-Zhiqiang.Hou@nxp.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 20, 2018 at 09:27:51AM +0000, Z.q. Hou wrote: > From: Hou Zhiqiang > > Add PCIe Gen4 controller DT bindings of NXP Layerscape SoCs. > > Signed-off-by: Hou Zhiqiang > --- > V2: > - Change to use the layerscape-pci.txt for PCIe Gen4 controller > dt-bindings Sorry someone suggested this, but it seems there's no point in having these in the same file. New IP block, do a new file. > > .../bindings/pci/layerscape-pci.txt | 57 +++++++++++++++++++ > MAINTAINERS | 8 +++ > 2 files changed, 65 insertions(+) > > diff --git a/Documentation/devicetree/bindings/pci/layerscape-pci.txt b/Documentation/devicetree/bindings/pci/layerscape-pci.txt > index 66df1e81e0b8..3ef8836b6e97 100644 > --- a/Documentation/devicetree/bindings/pci/layerscape-pci.txt > +++ b/Documentation/devicetree/bindings/pci/layerscape-pci.txt > @@ -1,4 +1,6 @@ > +==================================== > Freescale Layerscape PCIe controller > +==================================== > > This PCIe host controller is based on the Synopsys DesignWare PCIe IP > and thus inherits all the common properties defined in designware-pcie.txt. > @@ -58,3 +60,58 @@ Example: > <0000 0 0 3 &gic GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH>, > <0000 0 0 4 &gic GIC_SPI 192 IRQ_TYPE_LEVEL_HIGH>; > }; > + > +=================================== > +NXP Layerscape PCIe Gen4 controller > +=================================== > + > +This PCIe controller is based on the Mobiveil PCIe IP and thus inherits all > +the common properties defined in mobiveil-pcie.txt. > + > +Required properties: > +- compatible: should contain the platform identifier such as: > + "fsl,lx2160a-pcie" > +- reg: base addresses and lengths of the PCIe controller register blocks. > + "config_axi_slave": PCIe controller registers > + "csr_axi_slave": Bridge config registers Wouldn't 'config' and 'csr' be sufficient? And these should be listed under reg-names. > +- interrupts: A list of interrupt outputs of the controller. Must contain an > + entry for each entry in the interrupt-names property. > +- interrupt-names: It could include the following entries: > + "intr": The interrupt that is asserted for controller interrupts > + "aer": Asserted for aer interrupt when chip support the aer interrupt with > + none MSI/MSI-X/INTx mode,but there is interrupt line for aer. > + "pme": Asserted for pme interrupt when chip support the pme interrupt with > + none MSI/MSI-X/INTx mode,but there is interrupt line for pme. > +- dma-coherent: Indicates that the hardware IP block can ensure the coherency > + of the data transferred from/to the IP block. This can avoid the software > + cache flush/invalid actions, and improve the performance significantly. > +- msi-parent : See the generic MSI binding described in > + Documentation/devicetree/bindings/interrupt-controller/msi.txt. > + > +Example: > + > + 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"; The order should match what's defined above. Also, normally the config space would be the bigger region unless config accesses are windowed. > + interrupts = , /* AER interrupt */ > + , /* PME interrupt */ > + ; /* controller interrupt */ > + interrupt-names = "aer", "pme", "intr"; > + #address-cells = <3>; > + #size-cells = <2>; > + device_type = "pci"; > + apio-wins = <8>; > + ppio-wins = <8>; If these have specific values on your h/w, please specify above. > + dma-coherent; > + bus-range = <0x0 0xff>; > + msi-parent = <&its>; > + ranges = <0x82000000 0x0 0x40000000 0x80 0x40000000 0x0 0x40000000>; > + #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>; > + };