Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1289102ybg; Fri, 18 Oct 2019 15:17:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqx5G4PH2lp52kJjZ/KiJBH1KN5kl0ghsJ0SwOT24+OIcKyaPO3IFsCw9TqpHunbzDgDG1HY X-Received: by 2002:aa7:c959:: with SMTP id h25mr12264549edt.216.1571437034982; Fri, 18 Oct 2019 15:17:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571437034; cv=none; d=google.com; s=arc-20160816; b=O+7N+fhJ7nPMP7dwcUjWngPJco7K2rsurT7UD29gMAxnzdYgE7bzDgG2dkAP3S6C/P 3bwmXLKOSsm/vnrtoiycQkwfMSXfSfC9epzYQdAb6QZ/U4VFzb2Ax02GvwiUVj6AKYPx gbnlyY/V5Ad3CwUMgFOKaqB/A5o39qQAl1hmbO7Gb+i+LuIpbN7jI4P9iOQ9nlzcEJ9C JE5mhusgyfoW9OrfiwWuxVfhy2KREiYQZTOcuOrrN9b+7aLyzvrTgHfRpG8J7L30icle NyMq3nr16T5nHXsMwJHrBIotzqpqY3/N+Dt4Wj0jIsix7aoPragwRA+H4LBItBlgNqtr pKGQ== 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=+qxiN1i8NgnAmFnuqifw0bfYtiKy3k77tTLRGy5BhP4=; b=ThYZ9caB0eP99V4s+TOxg6YIaeSL0IwdoI0ADKPuLX+B3258qhUW3kUpP6r+bbimzv XGHA9894rtwhucfXZP0LgwtsfdGzvvB7m2mCU3Kb++nVKgkRnsgeKTmvfiTECi0+6SM/ PeH2wT9sWLbMx0+McQIG3AoSf0Eo0CkB1U2QbAc8/5NmFQTLGGLgnfRSNpFhOCS94oVQ 1GKCibJpFwVuCCFMTgvGa/f0b1LIi11wgbk8Arh9aLxrpSQIqU86+34eErH03t5YqPRl 8zfQUYZaDsZDblS9EJccLdNJ8il1nMXZ1NS/vJA/d73Z+rM4SOpd92WoXzEPeq/yHGX4 rGuQ== 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 x25si5079089edd.350.2019.10.18.15.16.52; Fri, 18 Oct 2019 15:17:14 -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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2439116AbfJQTDN (ORCPT + 99 others); Thu, 17 Oct 2019 15:03:13 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:46659 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728796AbfJQTDN (ORCPT ); Thu, 17 Oct 2019 15:03:13 -0400 Received: by mail-ot1-f68.google.com with SMTP id 89so2809374oth.13; Thu, 17 Oct 2019 12:03:12 -0700 (PDT) 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=+qxiN1i8NgnAmFnuqifw0bfYtiKy3k77tTLRGy5BhP4=; b=O/Oo1gEpAcxCAUaEZll3xiDTGBUIoSZ1NVehn4WYIm1NtaLjVvATVLLo6pFsC3h4Zs zM85mFFFlMqweP1HA9fTcrfhtrtjBmhbltqaTsC67MGqL+DNXveEIi1USe1PgW3jEFtc Nq4EMSJ1o8G5YTZzljQZb18LpRwz/S6CD/L6TSHaNYSUIhEQnsh3O194wPuGc/qJbeVH tP/T/sk89Fv4/+w1ixzjV7skQd7jcU7bSS92CqNfgxbVoMhAiLhcEVdIYimW6PNCw/kv MvKBwCMpWdxtO3w8iw93TMu5I0a9HdGHhB7tdGjq3qN0WgMtyd+x5qBW4S97S1/bSeqa cwmg== X-Gm-Message-State: APjAAAWDSNyhpevYkqiMq33+xeGuTSj6STCH0GZBD/+kUaNpsbNQz5wd lmjgWm9VaDBVgk2cJaPIrQ== X-Received: by 2002:a9d:6c0a:: with SMTP id f10mr4511862otq.155.1571338992427; Thu, 17 Oct 2019 12:03:12 -0700 (PDT) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id m14sm799068otl.26.2019.10.17.12.03.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Oct 2019 12:03:10 -0700 (PDT) Date: Thu, 17 Oct 2019 14:03:10 -0500 From: Rob Herring To: Xiaowei Bao Cc: Zhiqiang.Hou@nxp.com, bhelgaas@google.com, mark.rutland@arm.com, shawnguo@kernel.org, leoyang.li@nxp.com, kishon@ti.com, lorenzo.pieralisi@arm.com, Minghuan.Lian@nxp.com, andrew.murray@arm.com, mingkai.hu@nxp.com, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/6] dt-bindings: Add DT binding for PCIE GEN4 EP of the layerscape Message-ID: <20191017190310.GA32063@bogus> References: <20191015083702.21792-1-xiaowei.bao@nxp.com> <20191015083702.21792-3-xiaowei.bao@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191015083702.21792-3-xiaowei.bao@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, Oct 15, 2019 at 04:36:58PM +0800, Xiaowei Bao wrote: > Add the documentation for the Device Tree binding of the layerscape > PCIe GEN4 controller with EP mode. > > Signed-off-by: Xiaowei Bao > --- > v2: > - remove the status entry in EP Example. > > .../bindings/pci/layerscape-pcie-gen4.txt | 27 +++++++++++++++++++++- > 1 file changed, 26 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/pci/layerscape-pcie-gen4.txt b/Documentation/devicetree/bindings/pci/layerscape-pcie-gen4.txt > index b40fb5d..06f9309 100644 > --- a/Documentation/devicetree/bindings/pci/layerscape-pcie-gen4.txt > +++ b/Documentation/devicetree/bindings/pci/layerscape-pcie-gen4.txt > @@ -3,6 +3,8 @@ 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. > > +HOST MODE > +========= > Required properties: > - compatible: should contain the platform identifier such as: > "fsl,lx2160a-pcie" > @@ -23,7 +25,20 @@ Required properties: > - msi-parent : See the generic MSI binding described in > Documentation/devicetree/bindings/interrupt-controller/msi.txt. > > -Example: > +DEVICE MODE > +========= > +Required properties: > +- compatible: should contain the platform identifier such as: > + "fsl,lx2160a-pcie-ep" > +- reg: base addresses and lengths of the PCIe controller register blocks. > + "regs": PCIe controller registers. > + "addr_space" EP device CPU address. > +- apio-wins: number of requested apio outbound windows. > + > +Optional Property: > +- max-functions: Maximum number of functions that can be configured (default 1). > + > +RC Example: > > pcie@3400000 { > compatible = "fsl,lx2160a-pcie"; > @@ -50,3 +65,13 @@ Example: > <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>; > }; > + > +EP Example: > + > + pcie_ep@3400000 { To repeat my previous comment: pcie-endpoint@... > + compatible = "fsl,lx2160a-pcie-ep"; > + reg = <0x00 0x03400000 0x0 0x00100000 > + 0x80 0x00000000 0x8 0x00000000>; > + reg-names = "regs", "addr_space"; > + apio-wins = <8>; > + }; > -- > 2.9.5 >