Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp449790pxb; Wed, 11 Nov 2020 07:40:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJwUU7rhhRQ50Ax1u3pcjw587PmEl1V9RyxmStTiYaEYsUR+wKgmxkHIaauXLbUlAP7JkUuK X-Received: by 2002:a17:906:c357:: with SMTP id ci23mr25024750ejb.311.1605109257799; Wed, 11 Nov 2020 07:40:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605109257; cv=none; d=google.com; s=arc-20160816; b=PnHoQTOjkXzt4tWO5s7ymrZ7vkMd2oVhqv5RPi+lMASct26ueWeT3HNDJdnVpG2uqd GL7MhEOI/E6wxrTBCRRR+gJs4Yl7lF2ag8/ELmKFCJcKlOfL7bGB/gsi05Due+Bl69kG gjg3seZFPkVYVXErfENA7mMMNU7eWpqCknEsC+zom24DqXKv47/H/xZofP0dptt15cMU ul1s0tVyYYaDm0vnepMmicOuXq4nSeI1u9S2A7+EuAG4W4xXkV2Qc+F1E90pdLULxl69 tIt1Q8cQ2yyB7kellAfqe51vTdTfXhRN6DAmv5tqGyKdDrIkqSWohrDsb8wppOIUMxDw KQ0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=WksIlAP2St63/dYiNF+cCQGpadcOB7vBxhhFZVaW4Fw=; b=Su0K3SABtHZ8bsd6DiG9QcrT6q4a6xWg1YYzGdLhZJIbXE4LfQS/BnRc4tG+Z8jQ0b fBz0N2mUJfeakPTDOkctb1ShcA/yexHRpDab6duqNj/28cSJPJto7seGbbuR6jH32nVM c8ZtQu97ASGPwLBQzOIKRAlEvo/+E5vyATL2yLRTO74kgU7Olvw6Wb5Gs62gp84m8t6O AHCwPAhCixUOssBqWeDEshZdgX7o+xiWZbj75okUxZlKq7N+RQmoWETa08hu3pE9W9zY UvMyhvylnSq2Pzeb4var6kg1z4rot9HIMKURJcKkFqDLA316I0JHEWFm9xpGrH2yAsDv G98A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=SB9xCMEv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id u13si1634253eje.376.2020.11.11.07.40.33; Wed, 11 Nov 2020 07:40:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=SB9xCMEv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1727652AbgKKPia (ORCPT + 99 others); Wed, 11 Nov 2020 10:38:30 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:59382 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727679AbgKKPi3 (ORCPT ); Wed, 11 Nov 2020 10:38:29 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 0ABFcHx7125355; Wed, 11 Nov 2020 09:38:17 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1605109097; bh=WksIlAP2St63/dYiNF+cCQGpadcOB7vBxhhFZVaW4Fw=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=SB9xCMEvXxSbFjFMrDtdGxZDeeq2T0unHxCYMR6R/WGU9VeHfxY1DvpEuYN5GJsw/ 1ieakofGjEB67mxO/SVd0cV6w7EvQMfr/8WiP7sQt6cmGWKu/WdFayC7/IB1J20cXk dx1MaDCK88PbPkYcrvIWVr2ktdk217tkXuTxikO4= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 0ABFcHwv097085 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 11 Nov 2020 09:38:17 -0600 Received: from DLEE108.ent.ti.com (157.170.170.38) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Wed, 11 Nov 2020 09:38:16 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Wed, 11 Nov 2020 09:38:16 -0600 Received: from a0393678-ssd.dal.design.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 0ABFa048042109; Wed, 11 Nov 2020 09:38:12 -0600 From: Kishon Vijay Abraham I To: Bjorn Helgaas , Jonathan Corbet , Kishon Vijay Abraham I , Lorenzo Pieralisi , Arnd Bergmann , Jon Mason , Dave Jiang , Allen Hubbe , Tom Joseph , Rob Herring CC: Greg Kroah-Hartman , , , , Subject: [PATCH v8 17/18] Documentation: PCI: Add configfs binding documentation for pci-ntb endpoint function Date: Wed, 11 Nov 2020 21:05:58 +0530 Message-ID: <20201111153559.19050-18-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201111153559.19050-1-kishon@ti.com> References: <20201111153559.19050-1-kishon@ti.com> MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add binding documentation for pci-ntb endpoint function that helps in adding and configuring pci-ntb endpoint function. Signed-off-by: Kishon Vijay Abraham I --- .../PCI/endpoint/function/binding/pci-ntb.rst | 38 +++++++++++++++++++ Documentation/PCI/endpoint/index.rst | 1 + 2 files changed, 39 insertions(+) create mode 100644 Documentation/PCI/endpoint/function/binding/pci-ntb.rst diff --git a/Documentation/PCI/endpoint/function/binding/pci-ntb.rst b/Documentation/PCI/endpoint/function/binding/pci-ntb.rst new file mode 100644 index 000000000000..40253d3d5163 --- /dev/null +++ b/Documentation/PCI/endpoint/function/binding/pci-ntb.rst @@ -0,0 +1,38 @@ +.. SPDX-License-Identifier: GPL-2.0 + +========================== +PCI NTB Endpoint Function +========================== + +1) Create a subdirectory to pci_epf_ntb directory in configfs. + +Standard EPF Configurable Fields: + +================ =========================================================== +vendorid should be 0x104c +deviceid should be 0xb00d for TI's J721E SoC +revid don't care +progif_code don't care +subclass_code should be 0x00 +baseclass_code should be 0x5 +cache_line_size don't care +subsys_vendor_id don't care +subsys_id don't care +interrupt_pin don't care +msi_interrupts don't care +msix_interrupts don't care +================ =========================================================== + +2) Create a subdirectory to directory created in 1 + +NTB EPF specific configurable fields: + +================ =========================================================== +db_count Number of doorbells; default = 4 +mw1 size of memory window1 +mw2 size of memory window2 +mw3 size of memory window3 +mw4 size of memory window4 +num_mws Number of memory windows; max = 4 +spad_count Number of scratchpad registers; default = 64 +================ =========================================================== diff --git a/Documentation/PCI/endpoint/index.rst b/Documentation/PCI/endpoint/index.rst index ef6861128506..9cb6e5f3c4d5 100644 --- a/Documentation/PCI/endpoint/index.rst +++ b/Documentation/PCI/endpoint/index.rst @@ -14,3 +14,4 @@ PCI Endpoint Framework pci-ntb-function function/binding/pci-test + function/binding/pci-ntb -- 2.17.1