From patchwork Thu Sep 26 11:29:13 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: 174459 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp1919664ill; Thu, 26 Sep 2019 04:30:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqwwAu+zWo405xOKNUhZZbMy0vTA3IuOp5URYdJ08I66bJOtx0/l4aoYwlOhyRbDng+USeCp X-Received: by 2002:a50:eb41:: with SMTP id z1mr2975943edp.261.1569497449521; Thu, 26 Sep 2019 04:30:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569497449; cv=none; d=google.com; s=arc-20160816; b=ypyJE5w/CDVPxYd5lYltvOPYf1+OWFHTcxyjHNlUMAy01dgVZF5HJJ8S2/fs74d0HK 1HkRlF4Ueh1RkEng2Fmz0/kal+faP9OyF8FdcIC8Xn24tSqXbDjQ5VeEbJMETayQed6+ HkM5zUVKBIB2GEMtBY9w6w49xA1tOjSamzkEB9s5k7nwIQ5Jf9HGBnd5Un6be3RUZxQJ /S40Oy6zPJ0iQMInaiGgYcjO7PIFFH4fP+Th4EdWVWf2OS2aOJByPLbv3PZwtxAvsvi4 j8xW9NsM5sfhv3Vbc5DYFTGxstFGCVpAvdTmGC3n5iaqZZ0tzdvqWYKYZ/EdJRuwdyTb fazw== 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=x66YoPfkVrSslDYTR1it1VZ0fOMT2dXKRxNtTuO8skc=; b=pdrR5nVj1eekNPOfNrE6cPTdl+iih2VJPbW8GRrqhOuSu/7ksAARQrWH6yvfqaKfii ELDuqWsHGCtxoX54r2w3QqU6uidbzDodeXFVP6fv8onmCGv18D1vZuG5XG3fdFFfbgkQ JGJTWDp8e3h0bZjJ2Jts0Z3+Mb1lF1IX+wJmQb6aTUKBbNgV0ctQhnEhcN3HHJWTURuS NbIkZlEF28z4rUmBxZ1MZplFrVn1WVi5HgkxHzXHF/82JIatOhct55H63hOwT/pxJdQx Qbr2+jQSXscZ2S67NGCupgpZjySBoNgeybFA/D6LCUdJYB9XtgjBkDJvAFC3sxPlRXNz jQTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=TmjtRAWb; 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 w12si1148913edx.223.2019.09.26.04.30.49; Thu, 26 Sep 2019 04:30:49 -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=TmjtRAWb; 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 S1726191AbfIZLas (ORCPT + 26 others); Thu, 26 Sep 2019 07:30:48 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:57100 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725554AbfIZLaq (ORCPT ); Thu, 26 Sep 2019 07:30:46 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x8QBUcr9026304; Thu, 26 Sep 2019 06:30:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1569497438; bh=x66YoPfkVrSslDYTR1it1VZ0fOMT2dXKRxNtTuO8skc=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=TmjtRAWbIZKJfVZ26xthEV/qMcEchITjWlq+rtNw//czY8az0TSdTWyfakfAgprvy 6+uywSjIeSNxuOlsf11Anmw5+bQMyL21Nmqtc+WAJ6w2Dn2O4QL57T2qNX9gmDcTL7 sSN7h3HQu8Ly4IT83pwr0Q7gmtkGVsPrBQHHeB38= Received: from DFLE105.ent.ti.com (dfle105.ent.ti.com [10.64.6.26]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x8QBUcWY049632 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 26 Sep 2019 06:30:38 -0500 Received: from DFLE110.ent.ti.com (10.64.6.31) 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:38 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE110.ent.ti.com (10.64.6.31) 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:31 -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 x8QBUTjs069017; Thu, 26 Sep 2019 06:30:34 -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 01/21] dt-bindings: PCI: Endpoint: Add DT bindings for PCI EPF Bus Date: Thu, 26 Sep 2019 16:59:13 +0530 Message-ID: <20190926112933.8922-2-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 bus to which endpoint function devices should be attached. Signed-off-by: Kishon Vijay Abraham I --- .../bindings/pci/endpoint/pci-epf-bus.txt | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/endpoint/pci-epf-bus.txt -- 2.17.1 diff --git a/Documentation/devicetree/bindings/pci/endpoint/pci-epf-bus.txt b/Documentation/devicetree/bindings/pci/endpoint/pci-epf-bus.txt new file mode 100644 index 000000000000..16727ddf01f5 --- /dev/null +++ b/Documentation/devicetree/bindings/pci/endpoint/pci-epf-bus.txt @@ -0,0 +1,27 @@ +PCI Endpoint Function Bus + +This describes the bindings for endpoint function bus to which endpoint +function devices should be attached. + +Required Properties: + - compatible: Should be "pci-epf-bus" + +One or more subnodes representing PCIe endpoint function device exposed +to the remote host. + +Example: +Following is an example of NTB device exposed to the remote host. + +epf_bus { + compatible = "pci-epf-bus"; + + 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>; + }; +};