Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4719880rwb; Sun, 13 Nov 2022 12:03:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf7bvH/yRp8x/lp9e1lVc4aB11snf/w5cDCdxYz1sZTCkIKL0uIv0U69vyQO153445YkJ8+w X-Received: by 2002:a17:902:c612:b0:17c:5b30:6a1e with SMTP id r18-20020a170902c61200b0017c5b306a1emr10533079plr.138.1668369781555; Sun, 13 Nov 2022 12:03:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668369781; cv=none; d=google.com; s=arc-20160816; b=uEwyVlj7KP80Ee5jPhfVmHFTqL4i5He8VISrbqBwXCxXd5nOwKu+ilZnQPMYIai6DU q+C1vA3NsqI5sv4evjRn7Smpl2Y1IQtS4BvGX47ki6rLE19gr33XlNqh2xX+REvMAdvX s4gUXVmEQ/KyXbUWPsYIObB79ZK0ROt6zL2mzCDtuCMMXH3ThdfmfoL+QyYZhx1bh1VG BePwLmCc1ASGdbFHIudasS5QsSm+EBf400WWTblxK2kBbOY+OSFD/K91MB8aD89jWh3R MEfc4iL4kNBkbN4cZfNwd8UfR9PhmllfVolItqzviRXismR+pinc6oxE5uXhZvc80VvQ s6zA== 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=/9K7NMCL896MSTvyV9CnD5aqS5CeN4V7M4CFqf6I+CY=; b=zPHWnv2vh1sqosf10ZyoJel4QjuI8bmAmmpu3eIxkEwxSm/qNQVe+5m1kVNn//gjMl i5lj58PAevEUC+iKlfrcTXKOiiic4O6GMeRgP2ZnklKxe04tzIDXmJoXscQnMLUzt2h5 djfM5t46kuvXmMkZrWe/JwwGqiVzcm/YZCZRddT15/eqs2AQanamhV6U1UTH7jEdUIXx XdKqysA0JOITU6WXbQacKCLKCEQF1oxSYOd0UMU7OHpaXj06tjDiAQssaYHWp3l6NFr1 Mi3swe4N1petmTeShi833mQLWeE+eIaUWLrue/DrSQRgXYEZ6askyXT8xzg7vXHm65zI IUDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baikalelectronics.ru header.s=post header.b="rHS/AVTM"; 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 x3-20020aa79563000000b0054307ac90f1si7375588pfq.319.2022.11.13.12.02.50; Sun, 13 Nov 2022 12:03:01 -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="rHS/AVTM"; 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 S235561AbiKMTPK (ORCPT + 89 others); Sun, 13 Nov 2022 14:15:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235377AbiKMTOx (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 9DB2BDF7A; Sun, 13 Nov 2022 11:14:51 -0800 (PST) Received: from post.baikalelectronics.com (localhost.localdomain [127.0.0.1]) by post.baikalelectronics.com (Proxmox) with ESMTP id BD5B5E0EAF; Sun, 13 Nov 2022 22:14:50 +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=/9K7NMCL896MSTvyV9CnD5aqS5CeN4V7M4CFqf6I+CY=; b=rHS/AVTM2cHs Af20WwrMf2FHYZ4g0FaCUAVn06mfCorjxg2BRuMd3qDpw9EAu9+IYE7OwzSPaWx8 nuWi+rUdXCaOYjQx9JTN6pBd89f6KTp9e7CPFZ6hrm8fe5vsKrvKkNB6n64GCUOA qct2MxQbeItoQybkjf9rryYmd/QReyo= Received: from mail.baikal.int (mail.baikal.int [192.168.51.25]) by post.baikalelectronics.com (Proxmox) with ESMTP id AF868E0E6A; Sun, 13 Nov 2022 22:14:50 +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:49 +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 06/20] dt-bindings: PCI: dwc: Add max-link-speed common property Date: Sun, 13 Nov 2022 22:12:47 +0300 Message-ID: <20221113191301.5526-7-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] DW PCIe controllers support up to Gen5 link speed. Let's add the max-link-speed property upper bound to 5 then. The DT bindings of the particular devices are expected to setup more strict constraint on that parameter. [1] Synopsys DesignWare Cores PCI Express Controller Databook, Version 5.40a, March 2019, p. 27 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-common.yaml | 3 +++ Documentation/devicetree/bindings/pci/snps,dw-pcie-ep.yaml | 2 ++ Documentation/devicetree/bindings/pci/snps,dw-pcie.yaml | 1 + 3 files changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/pci/snps,dw-pcie-common.yaml b/Documentation/devicetree/bindings/pci/snps,dw-pcie-common.yaml index 91d24e400dfc..e63c21783fc1 100644 --- a/Documentation/devicetree/bindings/pci/snps,dw-pcie-common.yaml +++ b/Documentation/devicetree/bindings/pci/snps,dw-pcie-common.yaml @@ -54,6 +54,9 @@ properties: the peripheral devices available on the PCIe bus. maxItems: 1 + max-link-speed: + maximum: 5 + num-lanes: description: Number of PCIe link lanes to use. Can be omitted if the already brought diff --git a/Documentation/devicetree/bindings/pci/snps,dw-pcie-ep.yaml b/Documentation/devicetree/bindings/pci/snps,dw-pcie-ep.yaml index dcd521aed213..fc3b5d4ac245 100644 --- a/Documentation/devicetree/bindings/pci/snps,dw-pcie-ep.yaml +++ b/Documentation/devicetree/bindings/pci/snps,dw-pcie-ep.yaml @@ -55,4 +55,6 @@ examples: phys = <&pcie_phy0>, <&pcie_phy1>, <&pcie_phy2>, <&pcie_phy3>; phy-names = "pcie0", "pcie1", "pcie2", "pcie3"; + + max-link-speed = <3>; }; diff --git a/Documentation/devicetree/bindings/pci/snps,dw-pcie.yaml b/Documentation/devicetree/bindings/pci/snps,dw-pcie.yaml index d9512f7f7124..e787b9727589 100644 --- a/Documentation/devicetree/bindings/pci/snps,dw-pcie.yaml +++ b/Documentation/devicetree/bindings/pci/snps,dw-pcie.yaml @@ -74,4 +74,5 @@ examples: phy-names = "pcie"; num-lanes = <1>; + max-link-speed = <3>; }; -- 2.38.1