Received: by 10.213.65.68 with SMTP id h4csp3872759imn; Tue, 10 Apr 2018 06:04:07 -0700 (PDT) X-Google-Smtp-Source: AIpwx49AztMiDThUtNCSK+ZD05tzE2bXpT8uytarr3EpvfTeZsFA1igAOqhnMWI6fJ32KduUXZfb X-Received: by 10.98.35.90 with SMTP id j87mr283861pfj.59.1523365447574; Tue, 10 Apr 2018 06:04:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523365447; cv=none; d=google.com; s=arc-20160816; b=cloYmrIEHJyLDRnxX5es9+osgpaC4hIOn+jj/HysrmY1rHYet9hz7Rk84klc4EwheT EjqJWbNJ8Vl6WBQc8HDFLQ4+e8c68a0UyE0dju6imCmRXy8uIzB6v58BIIgsNBGxbqAJ KBlzvdbtC7WL9Pyw6xfbE3+7saAKuxq6XGDTznrP0KZmcc2dj+8ZH1lk1ehv5fygHqfo hwQFDEXRmzTLIetHvNgql4+G1Esmu5HYKfvwmgQajhvnzfy6vwhcScff+gyRE5MPbJEV UQFgJtAlODLZ6LMtU1IFYIkEvjuKJN6MDaA/KUu2Yc6pyxB/dVGPH46DWTQI1Vi1bufE zoXQ== 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=+1dtphY4iRHfLWaj9k3yMcmGViPVaCWsbE/XHwrkQsA=; b=S8MKgpinNI2237snaQPuE55EW3SQPCQ+nzacTbdLJlro+fQ685sgzEqdlbnayerXGT 6AJeluaIOQdLQZS6JOm2l7gBEDz7JuNLUuez51/03WkAx9NjpmrRKHfYChO1pXPiJlj0 FY92ynhkD2IkQNsI0Io1OF1LwZHjnkrLw82H4tLMgmkQPfXvMiGaLfg/l+gSto15JwUH 5eP1C1w0Ogz3KpsKrr1Su2/Jv2UON9fbi9aZl3CTOzr7aMXyvTDDPwm242lCe9qvwNBI ysef9mZutUkaWe7lwaBQ6wXRl1eo/4C5skXyWBHpqcprgqc+10nCDOTWL1qIJFrCpTS2 8Ngw== 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 l128si1820610pgl.248.2018.04.10.06.03.30; Tue, 10 Apr 2018 06:04:07 -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 S1753541AbeDJM67 (ORCPT + 99 others); Tue, 10 Apr 2018 08:58:59 -0400 Received: from smtprelay4.synopsys.com ([198.182.47.9]:58164 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752832AbeDJM6u (ORCPT ); Tue, 10 Apr 2018 08:58:50 -0400 Received: from mailhost.synopsys.com (mailhost2.synopsys.com [10.13.184.66]) by smtprelay.synopsys.com (Postfix) with ESMTP id 539B524E1347; Tue, 10 Apr 2018 05:58:50 -0700 (PDT) Received: from pt02.synopsys.com (pt02.synopsys.com [10.107.23.240]) by mailhost.synopsys.com (Postfix) with ESMTP id 0EB723271; Tue, 10 Apr 2018 05:58:50 -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 69FC53E525; Tue, 10 Apr 2018 13:58:49 +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 v3 04/10] bindings: PCI: designware: Add support for the EP in Designware driver Date: Tue, 10 Apr 2018 13:58:36 +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. Change v2->v3: - Reverted pcie_ep name to pcie. 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..3ba2080 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: pcie@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