From patchwork Thu Jul 27 10:39:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Minda Chen X-Patchwork-Id: 126911 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp1015621vqo; Thu, 27 Jul 2023 04:04:58 -0700 (PDT) X-Google-Smtp-Source: APBJJlE7VXeD9UqzW7C0nVoljoeKIkuIx2OTowD1SsNt1SIuSGkJd+As68qRfR3+KDur5jyzCOkc X-Received: by 2002:a17:90b:384c:b0:268:abc:83e4 with SMTP id nl12-20020a17090b384c00b002680abc83e4mr3628869pjb.26.1690455897962; Thu, 27 Jul 2023 04:04:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690455897; cv=none; d=google.com; s=arc-20160816; b=P0qc5PQRRvTlp6LmQl36inyqSY/VYReuuFjVY2pt+S97lW77BybREQeLA+QV9XRmb3 99m/UNowDxtfNJ6ep302tA6lb9XqEbhbKC4raKQFk7gm8APIMrpPE95FTDUQ2oiI37L3 s+CPqlRAMeWa9rczE5HwElSWpLHRHBdcWLhgjyc4JqcN0UsMohqbtghOTAFP0LhxSHVc 4A6u162DT4+4IqgGImhn8ejQhuGEYR7YiekW18z+zFdTS36hhBjTegkEyvY0PzMfB24M z5+0P2rqwtcU6Y8ookXL+3yMsJ8jEX0ZMQpGPca/YCpXTfrbVNCnHmbaRvSH/jrs/Kol gYnQ== 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; bh=uRflfHcXLV6tqzVOx7+n8hQ0YY0AVxLTJHkcnLJX3CY=; fh=mYNwWIT0I+BTQpMor0NWfIt/1vO9zgcMdxlytwlX0A4=; b=0wQNCwlOGLurpEtP4fXW4ewF/4CTe6h7k60PM5WBbXa3ykdNe+ETMp2I4mnMnMnuXn vqTpUHXS1KoHhNzMQva4NYspk2dYHNq72606e9jQkQeRtBG0iZ7WsnwSXabnyjtG88Zc wgffHx2f7m232VM9CSaELsGbGcCVcIO7v1arUwX/vdgQLo+tIUqZYZ6d0XF7y1C83rX7 QMWscMO21eDceo8dym+NuQESJkJusuAB/Fp1n9lSrcX45nErzYXydwj/g/z2FOQk8Gex s7cXqOzPoyT3burxclGJV7USNiHgd9HLZF+WIMYfJoTkYVCfCjSEncuwYrvhzI/rSOyp TFaw== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b9-20020a63d809000000b0055b640a6b3csi1088638pgh.884.2023.07.27.04.04.44; Thu, 27 Jul 2023 04:04:57 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233640AbjG0KkT (ORCPT + 99 others); Thu, 27 Jul 2023 06:40:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231674AbjG0KkL (ORCPT ); Thu, 27 Jul 2023 06:40:11 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E02A26A8; Thu, 27 Jul 2023 03:40:08 -0700 (PDT) Received: from EXMBX166.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX166", Issuer "EXMBX166" (not verified)) by fd01.gateway.ufhost.com (Postfix) with ESMTP id 7C32980C4; Thu, 27 Jul 2023 18:39:59 +0800 (CST) Received: from EXMBX171.cuchost.com (172.16.6.91) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Thu, 27 Jul 2023 18:39:59 +0800 Received: from localhost.localdomain (113.72.147.196) by EXMBX171.cuchost.com (172.16.6.91) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Thu, 27 Jul 2023 18:39:58 +0800 From: Minda Chen To: =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= , Daire McNamara , Conor Dooley , Rob Herring , Krzysztof Kozlowski , Bjorn Helgaas , Lorenzo Pieralisi , Emil Renner Berthing CC: , , , Philipp Zabel , "Mason Huo" , Leyfoon Tan , Kevin Xie , Minda Chen Subject: [PATCH v2 1/4] dt-bindings: PCI: Add PLDA XpressRICH PCIe host common properties Date: Thu, 27 Jul 2023 18:39:46 +0800 Message-ID: <20230727103949.26149-2-minda.chen@starfivetech.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230727103949.26149-1-minda.chen@starfivetech.com> References: <20230727103949.26149-1-minda.chen@starfivetech.com> MIME-Version: 1.0 X-Originating-IP: [113.72.147.196] X-ClientProxiedBy: EXCAS062.cuchost.com (172.16.6.22) To EXMBX171.cuchost.com (172.16.6.91) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE 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: INBOX X-GMAIL-THRID: 1772571483298316262 X-GMAIL-MSGID: 1772571483298316262 Add PLDA XpressRICH PCIe host common properties dt-binding doc. Microchip PolarFire PCIe host using PLDA IP. Move common properties from Microchip PolarFire PCIe host to PLDA files. Signed-off-by: Minda Chen Reviewed-by: Hal Feng Reviewed-by: Conor Dooley --- .../bindings/pci/microchip,pcie-host.yaml | 49 +------------ .../pci/plda,xpressrich3-axi-common.yaml | 69 +++++++++++++++++++ 2 files changed, 70 insertions(+), 48 deletions(-) create mode 100644 Documentation/devicetree/bindings/pci/plda,xpressrich3-axi-common.yaml diff --git a/Documentation/devicetree/bindings/pci/microchip,pcie-host.yaml b/Documentation/devicetree/bindings/pci/microchip,pcie-host.yaml index f7a3c2636355..cff46f8b8320 100644 --- a/Documentation/devicetree/bindings/pci/microchip,pcie-host.yaml +++ b/Documentation/devicetree/bindings/pci/microchip,pcie-host.yaml @@ -11,20 +11,13 @@ maintainers: allOf: - $ref: /schemas/pci/pci-bus.yaml# + - $ref: plda,xpressrich3-axi-common.yaml# - $ref: /schemas/interrupt-controller/msi-controller.yaml# properties: compatible: const: microchip,pcie-host-1.0 # PolarFire - reg: - maxItems: 2 - - reg-names: - items: - - const: cfg - - const: apb - clocks: description: Fabric Interface Controllers, FICs, are the interface between the FPGA @@ -52,18 +45,6 @@ properties: items: pattern: '^fic[0-3]$' - interrupts: - minItems: 1 - items: - - description: PCIe host controller - - description: builtin MSI controller - - interrupt-names: - minItems: 1 - items: - - const: pcie - - const: msi - ranges: maxItems: 1 @@ -71,38 +52,10 @@ properties: minItems: 1 maxItems: 6 - msi-controller: - description: Identifies the node as an MSI controller. - - msi-parent: - description: MSI controller the device is capable of using. - - interrupt-controller: - type: object - properties: - '#address-cells': - const: 0 - - '#interrupt-cells': - const: 1 - - interrupt-controller: true - - required: - - '#address-cells' - - '#interrupt-cells' - - interrupt-controller - - additionalProperties: false - required: - - reg - - reg-names - "#interrupt-cells" - - interrupts - interrupt-map-mask - interrupt-map - - msi-controller unevaluatedProperties: false diff --git a/Documentation/devicetree/bindings/pci/plda,xpressrich3-axi-common.yaml b/Documentation/devicetree/bindings/pci/plda,xpressrich3-axi-common.yaml new file mode 100644 index 000000000000..1a27ade931ff --- /dev/null +++ b/Documentation/devicetree/bindings/pci/plda,xpressrich3-axi-common.yaml @@ -0,0 +1,69 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pci/plda,xpressrich3-axi-common.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: PLDA XpressRICH PCIe host common properties + +maintainers: + - Daire McNamara + - Kevin Xie + +description: + Generic PLDA XpressRICH PCIe host common properties. + +properties: + reg: + maxItems: 2 + + reg-names: + items: + - const: cfg + - const: apb + + interrupts: + minItems: 1 + items: + - description: PCIe host controller + - description: builtin MSI controller + + interrupt-names: + minItems: 1 + items: + - const: pcie + - const: msi + + msi-controller: + description: Identifies the node as an MSI controller. + + msi-parent: + description: MSI controller the device is capable of using. + + interrupt-controller: + type: object + properties: + '#address-cells': + const: 0 + + '#interrupt-cells': + const: 1 + + interrupt-controller: true + + required: + - '#address-cells' + - '#interrupt-cells' + - interrupt-controller + + additionalProperties: false + +required: + - reg + - reg-names + - interrupts + - msi-controller + +additionalProperties: true + +...