Received: by 10.213.65.68 with SMTP id h4csp3756189imn; Tue, 10 Apr 2018 04:19:33 -0700 (PDT) X-Google-Smtp-Source: AIpwx49pjCB6ZfyuDf4BAvYgA2aBO7TGQ8TEotCPQY3UiGPFnJaxppxMRtcAlC6qx117zXcUa4py X-Received: by 10.167.130.2 with SMTP id k2mr2438877pfi.14.1523359173316; Tue, 10 Apr 2018 04:19:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523359173; cv=none; d=google.com; s=arc-20160816; b=JpzP6GpLHlya61h4huZCfvZ+oDJ46aMTS+N3iybaTyacXVmEmISzAmWr8hpdPcXOZW e9139gFGc7WghCIExu4liv2VzwvaT7bs+KrUIJN53hbO07vwkpV2P7qqutwM5g3gb2yW XNwoKvfQR4jhyVVbLZbyfMRShuYgQ4Ow/N3KthauLQAoEoiftSdozsu6uhdakvjIkquP DJ+JKWncIwLh8cdtjw54L/28sEVLmrAaxkS67v+RFt6Nyt5URn6+9ohlDb5vGLA11yf6 UNcfqtSB3Z7v1EnUH5NtWoYoHt7HF0VtxvW/7tkoOjCBjZw+O1P6MWv/3+kN5VCEk1XW nM/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=I7G8m86BcEHq5sG3sIlzTTIu6U3cN4NzjYiVUlWQei0=; b=05GxCii3wetq8tbYN9mLNnBwgKxOJAc+Y00H/Q9zF18XE9gd1r3Ti61lNypOjGuH1G PFqSAOqZuwDk+8u3EWvyi6/rNylx0LOfiDC/SO2nvHLX2HmsMkuIASCy5zm4xtLJg5Xf CqViEw7AAyrVJH+vprH72RunxaNR2/pAzU7X9+QeQlC9+GHWlw9W5M8dFFsgXOUS76Ht nfH+ovNlHinEMY8kn8OZt3W2wKYNL0enz8cYXATbZT4oIF6r1zHCGICQ2itmvlosWYuY wR52oYZSYrM14vcIIWglCxCOhZ+yjun9/2Y7iJeR2cxepPBVEb0A1UMymNBl/PDcYGY3 f59A== 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=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h3-v6si2421512plb.285.2018.04.10.04.18.56; Tue, 10 Apr 2018 04:19:33 -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=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752849AbeDJLMB (ORCPT + 99 others); Tue, 10 Apr 2018 07:12:01 -0400 Received: from smtprelay.synopsys.com ([198.182.47.9]:56430 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752469AbeDJLL7 (ORCPT ); Tue, 10 Apr 2018 07:11:59 -0400 Received: from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239]) by smtprelay.synopsys.com (Postfix) with ESMTP id 5035824E1326; Tue, 10 Apr 2018 04:11:59 -0700 (PDT) Received: from pt02.synopsys.com (pt02.internal.synopsys.com [10.107.23.240]) by mailhost.synopsys.com (Postfix) with ESMTP id C42F1592C; Tue, 10 Apr 2018 04:11:58 -0700 (PDT) Received: from [127.0.0.1] (gustavo-e7480.internal.synopsys.com [10.107.25.102]) by pt02.synopsys.com (Postfix) with ESMTP id 22DBD3DCB5; Tue, 10 Apr 2018 12:11:58 +0100 (WEST) Subject: Re: [PATCH 3/8] bindings: PCI: designware: Add support for the EP in designware driver To: Rob Herring Cc: "bhelgaas@google.com" , "lorenzo.pieralisi@arm.com" , "Joao.Pinto@synopsys.com" , "jingoohan1@gmail.com" , "kishon@ti.com" , "mark.rutland@arm.com" , "linux-pci@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" References: <20180409191233.l2s5hnrq7gejrmq6@rob-hp-laptop> From: Gustavo Pimentel Message-ID: <8336d41a-daa7-ea11-9182-74b2ceeda159@synopsys.com> Date: Tue, 10 Apr 2018 12:11:01 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180409191233.l2s5hnrq7gejrmq6@rob-hp-laptop> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, On 09/04/2018 20:12, Rob Herring wrote: > On Wed, Mar 28, 2018 at 12:38:33PM +0100, Gustavo Pimentel wrote: >> Signed-off-by: Gustavo Pimentel >> --- >> Documentation/devicetree/bindings/pci/designware-pcie.txt | 13 +++++++++++++ >> 1 file changed, 13 insertions(+) >> >> diff --git a/Documentation/devicetree/bindings/pci/designware-pcie.txt b/Documentation/devicetree/bindings/pci/designware-pcie.txt >> index 6300762..4bb2e08 100644 >> --- a/Documentation/devicetree/bindings/pci/designware-pcie.txt >> +++ b/Documentation/devicetree/bindings/pci/designware-pcie.txt >> @@ -3,6 +3,7 @@ >> Required properties: >> - compatible: >> "snps,dw-pcie" for RC mode; >> + "snps,dw-pcie-ep" for EP mode; >> - reg: Should contain the configuration address space. >> - reg-names: Must be "config" for the PCIe configuration space. >> (The old way of getting the configuration address space from "ranges" >> @@ -56,3 +57,15 @@ Example configuration: >> #interrupt-cells = <1>; >> num-lanes = <1>; >> }; >> +or >> + pcie_ep: pcie_ep@dfc00000 { > > pcie-ep@... > > Or what others have used. We should define a standard name in the DT > spec for this. > By looking to [1] and [2], I think I should maintain the pcie name instead of pcie-ep. [1] -> https://elixir.bootlin.com/linux/latest/source/Documentation/devicetree/bindings/pci/ti-pci.txt [2] -> https://elixir.bootlin.com/linux/latest/source/Documentation/devicetree/bindings/pci/axis,artpec6-pcie.txt Thanks for noticing it. >> + compatible = "snps,dw-pcie-ep"; >> + reg = <0xdfc00000 0x0001000>, /* IP registers 1 */ >> + <0xdfc01000 0x0001000>, /* IP registers 2 */ >> + <0xd0000000 0x2000000>; /* Configuration space */ >> + reg-names = "dbi", "dbi2", "addr_space"; >> + device_type = "pci"; >> + num-ib-windows = <6>; >> + num-ob-windows = <2>; >> + num-lanes = <1>; >> + }; >> -- >> 2.7.4 >> >> Regards, Gustavo