From patchwork Thu Sep 26 11:29:15 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: 174461 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp1919818ill; Thu, 26 Sep 2019 04:30:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqzG+XmyqKxPE6L5GVm/YPnRK0ot7gIU6Fw66Cg925k+GHGVDvjTjrk0cpzwgnLA3w2lM2KG X-Received: by 2002:a17:906:fc02:: with SMTP id ov2mr2575893ejb.273.1569497457283; Thu, 26 Sep 2019 04:30:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569497457; cv=none; d=google.com; s=arc-20160816; b=Mnu66g7pqj4zlfFe8bollCseqN5EKDRGChRi5C0Bk5RdV9Z4yQLo1ZZtQab444VgQu 1xRtTS48NpGKqKTmrwktkCkbov5AC99rX07E2wyE/tzHw0RqG26MkdHts1eMk/maDarb bHgnS1YItuvWbR0cXcS4SWlIAJ3GtyMMeQoXdvJyk08wtHy4awunp6AF4dyLTXMZzdlP GNtlXY4RxIPrEX2jsFo++xesCN2rYVH0ldvcwpnOZDNEmb/3N2vWytZtJTM5Hu5ObPZF KtAPJ1+UBjuctDPPJvdRRYp5EgfXthgqJZd5ZfZy9ANnlrki1XvfG+0owcnhvOBF7Eig Ba3Q== 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=kAwPRxdL1IzoZOayvlUYSsrr9LV2V6bEEofoVpSjJg8=; b=tI2V9iQp6AlQElUoFSkLuRLMjkENxdXFY92CqprznhW+EU9uGiztAJI2PC5PjBjWW9 5NIwBN7xw1l2ydH6rthcKGTFxWkdp5DYlI02P/rnZgJITNnIpvEroUvvL2zj5VKNyBer TVrGL/JPs+cA1q5EicbELBbuVzzcWKEIJwLC54q8qgZEpi/kVyPcOKOzewtvdENS7AaD mICW58p5hLsRkdnywwLrZrmvoCjdwmbRjolLESuFiBkZ6AoOndBQiBtRP/Zkkn4EYOGw 4lsjPSvXEpk/mJigXLMvKEeJaWrzFXcUqskYkmBGlRnKvDAzNRTGEUvHZwKm0mwUVUSo 6OJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=TI7jM4Nw; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=TI7jM4Nw; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S1726248AbfIZLaz (ORCPT + 8 others); Thu, 26 Sep 2019 07:30:55 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:50088 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725554AbfIZLaz (ORCPT ); Thu, 26 Sep 2019 07:30:55 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x8QBUkYQ025811; Thu, 26 Sep 2019 06:30:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1569497446; bh=kAwPRxdL1IzoZOayvlUYSsrr9LV2V6bEEofoVpSjJg8=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=TI7jM4NwXQzoUFUPR2HA2qpvyu4JpjUhuP8P5O5nsWLXjiWgTfmVtUU2EsCHicYhR F+TUSEIBBeRj1XEDjN9qThsAcEidjvenuTCwJ5Jl+Jyg9RH+xnENXNC4wWk/sQIvxt MCd+AwLGSz4XDg/pFG6XBKxv+WMLgaOv1eaYg9WY= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id x8QBUkLZ013299; Thu, 26 Sep 2019 06:30:46 -0500 Received: from DFLE101.ent.ti.com (10.64.6.22) by DFLE104.ent.ti.com (10.64.6.25) 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:46 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE101.ent.ti.com (10.64.6.22) 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:46 -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 x8QBUTju069017; Thu, 26 Sep 2019 06:30:42 -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 03/21] dt-bindings: PCI: Endpoint: Add DT bindings for PCI EPF NTB Device Date: Thu, 26 Sep 2019 16:59:15 +0530 Message-ID: <20190926112933.8922-4-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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add device tree bindings for PCI endpoint NTB function device. Signed-off-by: Kishon Vijay Abraham I --- .../bindings/pci/endpoint/pci-epf-ntb.txt | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/endpoint/pci-epf-ntb.txt -- 2.17.1 diff --git a/Documentation/devicetree/bindings/pci/endpoint/pci-epf-ntb.txt b/Documentation/devicetree/bindings/pci/endpoint/pci-epf-ntb.txt new file mode 100644 index 000000000000..e7896932423e --- /dev/null +++ b/Documentation/devicetree/bindings/pci/endpoint/pci-epf-ntb.txt @@ -0,0 +1,31 @@ +PCI Endpoint NTB Function Device + +This describes the bindings to be used when a NTB device has to be +exposed to the remote host over PCIe. + +Required Properties: + - compatible: Should be "pci-epf-ntb" + - epcs: As defined in generic pci-epf bindings defined in pci-epf.txt + - epc-names: As defined in generic pci-epf bindings defined in pci-epf.txt + - vendor-id: As defined in generic pci-epf bindings defined in pci-epf.txt + - device-id: As defined in generic pci-epf bindings defined in pci-epf.txt + - num-mws: Specify the number of memory windows. Should not be more than 4. + - mws-size: List of 'num-mws' entries containing size of each memory window. + +Optional Properties: + - spad-count: Specify the number of scratchpad registers to be supported + - db-count: Specify the number of doorbell interrupts to be supported. Must + not be greater than 32. + +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>; +};