From patchwork Thu Sep 26 11:29:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kishon Vijay Abraham I X-Patchwork-Id: 174460 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp1919809ill; Thu, 26 Sep 2019 04:30:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqzEXAOIWubXN2pbupa0Ejqw05dAN4sB42w8qyjPdEqRrxPg+5Ci1Dw72z3PjxFNL/OgRjag X-Received: by 2002:a50:fa9a:: with SMTP id w26mr2964154edr.227.1569497456731; Thu, 26 Sep 2019 04:30:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569497456; cv=none; d=google.com; s=arc-20160816; b=OJv0Pn77Dvq27hij6g6lf9hS3XfcCa0e2vc+18RcpdULaYpm50jraV8Q+UawiJ2w0L 0S0ztqxBRUKvUBO/Bv2l1Rr5bJY4lt4k+KaJd+Wc+exm/vpg3EhU0eNP1wxbj0SrU4p9 StIQ4QBthRPLsqxV9OEZ7osMs2Pi9EBQJEi1NWsTY0R22YHYvo8Q0QKI42YrRKmFUZ0d 7TpMFNeKSYh2gyd4mqZ++Z73x1U39PyVvuoGzO80U/MJU+FN8u7HdnP8EZekpb0nUb4z En6GMO6he04n35Vs+P8H/ngaogielLnHNrE3vhTarwk+LaUoE8htpzCHdgNi02GzEqD/ 6gjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=w4V1m2OIe5LxeaAVTxkVjAlE3hYEXz8xzCprrL6Lk3E=; b=rtQWGq5qs2wUIop2p21NL27CYD0lMkgw9xyMZjrAh2e1kJ8yhmzne5CBay7ee4i/4a iR0LPRZP7a/rxZKOkLWNZ3hhh3dQqouh9Uy4c0FjxOPhFKGRETbtkeXXXTYgkp8rDsAd 3IvNwR5NcaU8qgCKYDMZTtpyJZeFo0Fk2DGLpBflSFhO+RUlagF3iWNDi8UDuMT5Nfnj mrcjM7PhSGSxJDKwPC2MGuHh2DibG09C0L3BfFBAzf+Hi6YMpqZnwxN5mlOenImKz15j +zsdYEhqfr+LuSLD4/pbAPJcgnnrmGB/TcsBvz9hmf7L0Wpsp/5DH2vyL3+xmg9EBYtm 7zVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Uf7JmbNG; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z11si1195081edl.1.2019.09.26.04.30.56; Thu, 26 Sep 2019 04:30:56 -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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Uf7JmbNG; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726244AbfIZLax (ORCPT + 26 others); Thu, 26 Sep 2019 07:30:53 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:50076 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725554AbfIZLav (ORCPT ); Thu, 26 Sep 2019 07:30:51 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x8QBUg2U025799; Thu, 26 Sep 2019 06:30:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1569497442; bh=w4V1m2OIe5LxeaAVTxkVjAlE3hYEXz8xzCprrL6Lk3E=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Uf7JmbNG6w90r/mXZUmOwfHwc9w/+6ts5g9vsD7NkUymYzdwe9dyvO+6wE7SC1Rm5 cN+vwTY7+MxWSYWMAKAdeoXJ2HCvuzwlTIYuHg3pSwccNIHb67pjHo0ABqHmoF+1Go XbjyXbTKllanp7dKTj163h0SaWzKX0/UjoieX518= Received: from DFLE105.ent.ti.com (dfle105.ent.ti.com [10.64.6.26]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x8QBUg3m090981 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 26 Sep 2019 06:30:42 -0500 Received: from DFLE109.ent.ti.com (10.64.6.30) by DFLE105.ent.ti.com (10.64.6.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Thu, 26 Sep 2019 06:30:42 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Thu, 26 Sep 2019 06:30:35 -0500 Received: from a0393678ub.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id x8QBUTjt069017; Thu, 26 Sep 2019 06:30:38 -0500 From: Kishon Vijay Abraham I To: Bjorn Helgaas , Jonathan Corbet , Rob Herring , Jon Mason , Dave Jiang , Allen Hubbe , Lorenzo Pieralisi CC: Mark Rutland , , , , , , Subject: [RFC PATCH 02/21] dt-bindings: PCI: Endpoint: Add DT bindings for PCI EPF Device Date: Thu, 26 Sep 2019 16:59:14 +0530 Message-ID: <20190926112933.8922-3-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190926112933.8922-1-kishon@ti.com> References: <20190926112933.8922-1-kishon@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add device tree bindings for PCI endpoint function device. The nodes for PCI endpoint function device should be attached to PCI endpoint function bus. Signed-off-by: Kishon Vijay Abraham I --- .../bindings/pci/endpoint/pci-epf.txt | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/endpoint/pci-epf.txt -- 2.17.1 diff --git a/Documentation/devicetree/bindings/pci/endpoint/pci-epf.txt b/Documentation/devicetree/bindings/pci/endpoint/pci-epf.txt new file mode 100644 index 000000000000..f006395fd526 --- /dev/null +++ b/Documentation/devicetree/bindings/pci/endpoint/pci-epf.txt @@ -0,0 +1,28 @@ +PCI Endpoint Function Device + +This describes the generic bindings to be used when a device has to be +exposed to the remote host over PCIe. The device could be an actual +peripheral in the platform or a virtual device created by the software. + +epcs : phandle to the endpoint controller device +epc-names : the names of the endpoint controller device corresponding + to the EPCs present in the *epcs* phandle +vendor-id: used to identify device manufacturer +device-id: used to identify a particular device +baseclass-code: used to classify the type of function the device performs +subclass-code: used to identify more specifically the function of the device +subsys-vendor-id: used to identify vendor of the add-in card or subsystem +subsys-id: used to specify an id that is specific to a vendor + +Example: +Following is an example of NTB device exposed to the remote host. + +ntb { + compatible = "pci-epf-ntb"; + epcs = <&pcie0_ep>, <&pcie1_ep>; + epc-names = "primary", "secondary"; + vendor-id = /bits/ 16 <0x104c>; + device-id = /bits/ 16 <0xb00d>; + num-mws = <4>; + mws-size = <0x100000>, <0x100000>, <0x100000>, <0x100000>; +};