Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4725871rwb; Sun, 13 Nov 2022 12:10:25 -0800 (PST) X-Google-Smtp-Source: AA0mqf5e8kKjysMo/QhA04kTY3gWjc6/No58sGFYwFGxIuM3VFx0g/6AyJZHgIas0t9SeiefoQbY X-Received: by 2002:a17:906:498b:b0:7ad:f270:c128 with SMTP id p11-20020a170906498b00b007adf270c128mr8316723eju.84.1668370225014; Sun, 13 Nov 2022 12:10:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668370225; cv=none; d=google.com; s=arc-20160816; b=HoS0m+PPN/b9D7j9MsStzIVwjvVMCAFvtvUMse1CQ68upZqasjLmZ2M6Z4AoQmjkZy 0vb1bEtrRtCjAs0YvbILzhcwhAjDUNgxYkNDEwt9cAIPg5GpoMccwOFb9CHBPE8+etsX qKN7q80X0NOfXe3h8/pPXTOgmPkNVdXCwfY7KiN5Gb9BxtaFDTtwTCgEllGTqR+1FJo7 GEwlM934fi/jnBz8HILJgQd+BDTlU/tlFF6wzlimONjCYxvUy9GEcYPPWcyq1lqVCzm8 yyWfKGP55w0kGV2nPBGK7SCbDqWGgXCmNX006vZ7SqWROECcTi6doyQTEAAO235uuhL6 6I7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=YTQ06LL154l1o/r167ELxMzkkoYvk/hoYp1I5dESTd0=; b=eKZJNXsSMwdANz25YLLcOMzybbsWV9z0LGxEFbDetGd5oRzoHiuG77iQLxYdrTvyrb nul82045MYjz1zbLvUcB0VeimhBpMizp7GO0AtMa/OWnJKPxmcG3atEDD/LEEUiTvKhc kgfgbBo2rs0hq7kMACCA43N2owKQqgwjquVvYGglWM8tRm8bAZ4Hv1pxcdPTgcz8vjqt E0l+dFH2xmm8nt0Cgm39W6wGn1/JPgzpmM8r3qj7oLwPh3ZnDoMQZRc4RVuberBSXRQf 9ikEfoMgx6gHDeQelA686uzq2ptMVxbvbrHnEddcGuokuIArMbpqCTtSQ147o0rfo0uC mgcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baikalelectronics.ru header.s=post header.b=cVjog2vW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=baikalelectronics.ru Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i15-20020a1709061e4f00b0073d6c0facdcsi5553310ejj.259.2022.11.13.12.10.02; Sun, 13 Nov 2022 12:10:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@baikalelectronics.ru header.s=post header.b=cVjog2vW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=baikalelectronics.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235624AbiKMTPU (ORCPT + 89 others); Sun, 13 Nov 2022 14:15:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235388AbiKMTOx (ORCPT ); Sun, 13 Nov 2022 14:14:53 -0500 Received: from post.baikalelectronics.com (post.baikalelectronics.com [213.79.110.86]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 44708DF87; Sun, 13 Nov 2022 11:14:53 -0800 (PST) Received: from post.baikalelectronics.com (localhost.localdomain [127.0.0.1]) by post.baikalelectronics.com (Proxmox) with ESMTP id C5D01E0EB1; Sun, 13 Nov 2022 22:14:52 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= baikalelectronics.ru; h=cc:cc:content-transfer-encoding :content-type:content-type:date:from:from:in-reply-to:message-id :mime-version:references:reply-to:subject:subject:to:to; s=post; bh=YTQ06LL154l1o/r167ELxMzkkoYvk/hoYp1I5dESTd0=; b=cVjog2vWiI6Y hgUso9ZytJwxdqO9Eg3DnVSkaaVPy9Bo338x1L/kDkmWWaFWMr3czl6hraRemhmJ J38blhatqZXTgR8mln7bGUBGAR8krXA+Os4nNnHvdFCvDfgHashRUV4fH4DmG0t9 DHX/7oD7N1En5BiFLdfbpL4fLUTbiWc= Received: from mail.baikal.int (mail.baikal.int [192.168.51.25]) by post.baikalelectronics.com (Proxmox) with ESMTP id ACDADE0E6A; Sun, 13 Nov 2022 22:14:52 +0300 (MSK) Received: from localhost (192.168.168.10) by mail (192.168.51.25) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Sun, 13 Nov 2022 22:14:52 +0300 From: Serge Semin To: Rob Herring , Rob Herring , Krzysztof Kozlowski , Bjorn Helgaas , Lorenzo Pieralisi , Cai Huoqing , Robin Murphy , Jingoo Han , Gustavo Pimentel CC: Serge Semin , Serge Semin , Alexey Malahov , Pavel Parkhomenko , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Frank Li , Manivannan Sadhasivam , caihuoqing , Vinod Koul , , , Subject: [PATCH v7 08/20] dt-bindings: PCI: dwc: Add max-functions EP property Date: Sun, 13 Nov 2022 22:12:49 +0300 Message-ID: <20221113191301.5526-9-Sergey.Semin@baikalelectronics.ru> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221113191301.5526-1-Sergey.Semin@baikalelectronics.ru> References: <20221113191301.5526-1-Sergey.Semin@baikalelectronics.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [192.168.168.10] X-ClientProxiedBy: MAIL.baikal.int (192.168.51.25) To mail (192.168.51.25) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In accordance with [1] the CX_NFUNC IP-core synthesize parameter is responsible for the number of physical functions to support in the EP mode. Its upper limit is 32. Let's use it to constrain the number of PCIe functions the DW PCIe EP DT-nodes can advertise. [1] Synopsys DesignWare Cores PCI Express Controller Databook - DWC PCIe Endpoint, Version 5.40a, March 2019, p. 887. Signed-off-by: Serge Semin Reviewed-by: Rob Herring --- Changelog v3: - This is a new patch unpinned from the next one: https://lore.kernel.org/linux-pci/20220503214638.1895-2-Sergey.Semin@baikalelectronics.ru/ by the Rob' request. (@Rob) --- Documentation/devicetree/bindings/pci/snps,dw-pcie-ep.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/pci/snps,dw-pcie-ep.yaml b/Documentation/devicetree/bindings/pci/snps,dw-pcie-ep.yaml index d04001248b53..71dd19ae1060 100644 --- a/Documentation/devicetree/bindings/pci/snps,dw-pcie-ep.yaml +++ b/Documentation/devicetree/bindings/pci/snps,dw-pcie-ep.yaml @@ -41,6 +41,9 @@ properties: items: enum: [dbi, dbi2, config, atu, addr_space, link, atu_dma, appl] + max-functions: + maximum: 32 + required: - compatible - reg @@ -61,4 +64,5 @@ examples: phy-names = "pcie0", "pcie1", "pcie2", "pcie3"; max-link-speed = <3>; + max-functions = /bits/ 8 <4>; }; -- 2.38.1