From patchwork Thu Nov 12 17:53:53 2020 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: 324215 Delivered-To: patch@linaro.org Received: by 2002:a17:906:d156:0:0:0:0 with SMTP id br22csp902455ejb; Thu, 12 Nov 2020 09:54:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJwfQWUJxhdFtbRmrvTEWX898c4ij5/cF7C8fUGzpCFwEBzMaZa6ZY1C4wUDu6ftT1zXnEaa X-Received: by 2002:a17:906:4e56:: with SMTP id g22mr444386ejw.49.1605203696702; Thu, 12 Nov 2020 09:54:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605203696; cv=none; d=google.com; s=arc-20160816; b=VCWBp4rlUl+LUd7nJvEjsQroI7SxGrBCMqlpyhn5GsbM0mlOkFvmupKXugDjjJff+H WAlrl0KfPHZDzr2Q7PS8+TtDJx3rvBC8gw9WB4LJYgymFEYib8Vu8dv6dKJtyTg/Zoir wcA9tE/iqW/7p+RCn9OgfSJmreNs4geEaRBYtG/ykX51J96qxU8Obyl9souqu2IcbZ+6 SPf78dCTqAAFFOogN6TzRY2GfBuSfBTuqXsKriuiZ8p4w14f6QlDYyBMeJ5+HOc18Ke8 5HhgtZp2sAiUfFaljAVlMU++TGMuacDwtvPX/RjNyR4LyCdmGtM3DnSz8OZdz9njjIlT 1GCw== 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=Pzu2oXCQtTb83PcoZ+kFBBJlfvT1Z84qnceRe8Z0kPU=; b=jNNHvaIJRbS7mrP0mvLyopbdBVX3wyusJl2ORin8Sc8BWW9/0awNxWhgd6JTReGGX5 3hjcRiSjZ7zM73rH/Tos8j38bnMLIssL/BxpDgVtI85es+4VkVhqZ3gIwimS8Dnxr0gs jmPmxGJ179zC8Fm9p2lpP7Gn8Kw1SbArNLOIrtpYrB9M+9fjniSF5bJdh+gUwjfuA5YJ naEsEEEsLihk68mf7Ar3JWVOAYZCP75VQxTk7SZd78dNoz5qKguedleAe5KvdbyhnrWj 210gAYY4qdNMi79Z5CO891WmKgxNQ8h3WfBSAtSs+qUn3z1DfS2Lb9+3d8wQtDZbRvFv jGuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=lnT89pLf; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id jr8si4389348ejb.304.2020.11.12.09.54.56; Thu, 12 Nov 2020 09:54:56 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-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=lnT89pLf; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 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 S1726249AbgKLRyh (ORCPT + 6 others); Thu, 12 Nov 2020 12:54:37 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:52418 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726041AbgKLRyh (ORCPT ); Thu, 12 Nov 2020 12:54:37 -0500 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 0ACHsD4X055775; Thu, 12 Nov 2020 11:54:13 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1605203653; bh=Pzu2oXCQtTb83PcoZ+kFBBJlfvT1Z84qnceRe8Z0kPU=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=lnT89pLfZoqdO5ea6uy7twkilIEuXOGm/rVx4D/jOmGXYoHBXueCnTSMIoMBaeLxR i55d+GkX1gD/3ErL37IbfQBHLuegp8XZdiPA9DyouShCvcQWcfarD3Cyd75jyqQUUB z3izKAIO7SLlaj+i5biw0oGT1AoPFfWaiE0Y3+uc= 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 ESMTPS id 0ACHsCWr027706 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 12 Nov 2020 11:54:12 -0600 Received: from DFLE114.ent.ti.com (10.64.6.35) 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.1979.3; Thu, 12 Nov 2020 11:54:12 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE114.ent.ti.com (10.64.6.35) 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; Thu, 12 Nov 2020 11:54:12 -0600 Received: from a0393678-ssd.dal.design.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 0ACHrx9r094087; Thu, 12 Nov 2020 11:54:06 -0600 From: Kishon Vijay Abraham I To: Bjorn Helgaas , Rob Herring , Kishon Vijay Abraham I , Lorenzo Pieralisi , Arnd Bergmann , Tom Joseph , Jingoo Han , Gustavo Pimentel , Marek Vasut , Yoshihiro Shimoda , Shawn Lin , Heiko Stuebner CC: Greg Kroah-Hartman , , , , , , Subject: [PATCH v2 1/6] dt-bindings: PCI: pci-ep: Add binding to specify virtual function Date: Thu, 12 Nov 2020 23:23:53 +0530 Message-ID: <20201112175358.2653-2-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201112175358.2653-1-kishon@ti.com> References: <20201112175358.2653-1-kishon@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add binding to specify virtual function (associated with each physical function) in endpoint mode. Signed-off-by: Kishon Vijay Abraham I --- Documentation/devicetree/bindings/pci/pci-ep.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) -- 2.17.1 diff --git a/Documentation/devicetree/bindings/pci/pci-ep.yaml b/Documentation/devicetree/bindings/pci/pci-ep.yaml index 7847bbcd4a03..90c85a0c44a1 100644 --- a/Documentation/devicetree/bindings/pci/pci-ep.yaml +++ b/Documentation/devicetree/bindings/pci/pci-ep.yaml @@ -23,6 +23,15 @@ properties: default: 1 maximum: 255 + max-virtual-functions: + description: Maximum number of virtual functions that can be configured + allOf: + - $ref: /schemas/types.yaml#/definitions/uint8-array + minItems: 0 + maxItems: 255 + items: + maximum: 255 + max-link-speed: $ref: /schemas/types.yaml#/definitions/uint32 enum: [ 1, 2, 3, 4 ]