Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp2237652rwb; Thu, 27 Jul 2023 04:29:04 -0700 (PDT) X-Google-Smtp-Source: APBJJlG22qCaRaEU1gnT924xaBeETXQ/srA8qjfA+rmfCR4+Rd0WYqLb6PWpN3sMksUrC7X5/xsp X-Received: by 2002:a05:6512:3d05:b0:4f1:3d7d:409e with SMTP id d5-20020a0565123d0500b004f13d7d409emr2274416lfv.0.1690457343524; Thu, 27 Jul 2023 04:29:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690457343; cv=none; d=google.com; s=arc-20160816; b=U8kFVgNPDnKVZLTYEf3uulaFnPUbT1SPkUgTPNlP2+61XHC1iBiG6tglMVpq5aVFA7 pSHIWFxfmZpbpcUH9fcJJG47RkttX0hOZNXKGIvd/cPPZkvCWBKHTq60VuWsekttW+uT RHPbwmciM3+C8mm1J2WsTmAUzi2Oy6b8Ix2kPP6MDUw+aRixm+AccQxC6VePK8Urs2b3 3ASBGOdG/+/LhOhjEBRrXIgCZpqpAvqlbw+ZzwN0ihXnuVLowqdXSv1qpH9FkDPlUXZd WkVWVOnT4sXw8/+F8GqlupbiA6PRaGLmJVrkIbxHb+XeU1fbzliuI+cupsFaC3gRtzHa cWkQ== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ga6-20020a170906b84600b0099280a7eeeasi879566ejb.526.2023.07.27.04.28.38; Thu, 27 Jul 2023 04:29:03 -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 S233632AbjG0KkT (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=20Wilczy=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 Content-Type: text/plain 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 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 --- .../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 + +... -- 2.17.1