Received: by 10.213.65.68 with SMTP id h4csp2390172imn; Mon, 9 Apr 2018 02:45:36 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/XtKN+gx8wVrh37SDD3Ic2pzSHXTq+x4jNhe9DcoYxfMSm5a4milkf+whLtTj+HEVmmCL0 X-Received: by 2002:a17:902:7b97:: with SMTP id w23-v6mr3536530pll.45.1523267136724; Mon, 09 Apr 2018 02:45:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523267136; cv=none; d=google.com; s=arc-20160816; b=Kp9kkK1XNHxNbES8IrywFL4eal1ye7seWpfHycROc+NyDaGtuLDQH3dnDwVpvWWBxS Zrh3mScCHcHhRwWg8pN4cnSoOIXWl7MtvomCzMZG6Wmv6LZDVeTgRrPvWxK3ZtJ0rD5V 8OHmsz/7h8dZhSKXEclnXNEAymViWxHGoVxLr+CxtWbxyb1ke19BrhS+4hcN/7u228EQ Z5mo9yFwScBzOn9NH3GEuZdmSCjel6h6YIfKPa6SRNwbfoQrKjk0UFvl+FxU5CMyQIZO a1ZAy3j6tVF2QmvPhxfuMWRfDRqzLipp3dOTziZ6gf5I4NpLlGe/gu/tgHWzGPKNgW/d IT1w== 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:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=k1I/PTlKgEbB0Gkh3Lu/Szs0n/78YilbGiDCtvKKcAs=; b=IN7qqo7MuDDi4HSK3Ovy0aV4mZM0Zvjjrr1tpYaRaFhoQzZRAD00CIFJAmCpdmIrGn IQEl2rx+A9QWOnSOnObxdrNgPo7+H8N316DRqBtiCQDPQ/lsPzBF0w2gwqXZ8xNpuAlc gVz79B0lSYU8mp/1RIphcoX8puLyH7cdKO64I7OqIOWXaFAruolRrIzRoKTI2K4ssvtW rfqxYd8D8Zi47FWmbNPjrJhJrddscviKzwcAie0NsGNyimorWMAFYIpiRD4eCOA/OMgL eFyMThupnJSjFRxypLQcBVRCqQLwtX6y4HqVxef0INBF6OKu83GkXAq7iwlZTPyxQoOC rB4w== 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 o17si10842072pge.787.2018.04.09.02.44.59; Mon, 09 Apr 2018 02:45:36 -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 S1752591AbeDIJl2 (ORCPT + 99 others); Mon, 9 Apr 2018 05:41:28 -0400 Received: from us01smtprelay-2.synopsys.com ([198.182.47.9]:56229 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752289AbeDIJlY (ORCPT ); Mon, 9 Apr 2018 05:41:24 -0400 Received: from mailhost.synopsys.com (mailhost3.synopsys.com [10.12.238.238]) by smtprelay.synopsys.com (Postfix) with ESMTP id 54EF824E1257; Mon, 9 Apr 2018 02:41:24 -0700 (PDT) Received: from pt02.synopsys.com (pt02.internal.synopsys.com [10.107.23.240]) by mailhost.synopsys.com (Postfix) with ESMTP id 0A36935E9; Mon, 9 Apr 2018 02:41:24 -0700 (PDT) Received: from UbuntuMate-64Bits.internal.synopsys.com (gustavo-e7480.internal.synopsys.com [10.107.25.102]) by pt02.synopsys.com (Postfix) with ESMTP id 650153E9DB; Mon, 9 Apr 2018 10:41:23 +0100 (WEST) From: Gustavo Pimentel To: bhelgaas@google.com, lorenzo.pieralisi@arm.com, Joao.Pinto@synopsys.com, jingoohan1@gmail.com, kishon@ti.com, robh+dt@kernel.org, mark.rutland@arm.com Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, gustavo.pimentel@synopsys.com Subject: [PATCH v2 3/9] bindings: PCI: designware: Add support for the EP in Designware driver Date: Mon, 9 Apr 2018 10:41:12 +0100 Message-Id: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add device tree binding documentation for the Endpoint in PCIe Designware driver. Signed-off-by: Gustavo Pimentel --- Change v1->v2: - Add a missing log description. - Add "snps,dw-pcie" compatible string following Kishon's suggestion. 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 f02cd20..f5da9cf 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-rc", "snps,dw-pcie" for RC mode; + "snps,dw-pcie-ep", "snps,dw-pcie" 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 { + compatible = "snps,dw-pcie-ep", "snps,dw_pcie"; + 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