From patchwork Sun Nov 13 19:12:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Serge Semin X-Patchwork-Id: 19426 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1801559wru; Sun, 13 Nov 2022 11:17:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf4l7lnbKtfFlln0xUX48lF4z3OEDzCoXAWZG4cg23Zwy9VwiK6GBeNJrdkNRZpK7f6hQce7 X-Received: by 2002:a17:907:bc6:b0:7ae:1e53:95b2 with SMTP id ez6-20020a1709070bc600b007ae1e5395b2mr7948451ejc.333.1668367061284; Sun, 13 Nov 2022 11:17:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668367061; cv=none; d=google.com; s=arc-20160816; b=sOZc0Wr3nUJTswWbmZOo4uvo8dxBr2YH/KKOco+i4mctJA1lK30oVscC4OsjLCtK3+ 9b8Uoz3csbd2Fybovu7YouI111OawDbMPmiQO/3JX/mv8nxLce1LTaSvAqxGJeQLwc6t 6CxSJHFt758f74B+f6lKoKI4cea48TUvkmcfw8w3XQhks18Dfne5XobylZBbcPjO1LC+ 1+rIDyUYeWOPVbmeDSpwjU1wfonPTkra1A08XP0m1tMqBDD7gpd17KxzWMNx0mZNstFW Qv7AbFaxAIfH6pB3SgrzXmTGPWcJKwM1VS0dUd9hpixV6gvWGPXmpJFshNvTZjsZ5xqO Bizw== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t18-20020a056402525200b0046356ff4d4esi7972361edd.593.2022.11.13.11.17.17; Sun, 13 Nov 2022 11:17:41 -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 + 99 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?Krzys?= =?utf-8?q?ztof_Wilczy=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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749409659668135585?= X-GMAIL-MSGID: =?utf-8?q?1749409659668135585?= 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>; };