From patchwork Sun Feb 18 10:15:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Minda Chen X-Patchwork-Id: 13561774 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7BEC4C4829E for ; Sun, 18 Feb 2024 10:16:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=zLxyLDETyyGXcdmNJROdsaGaUPhAG9dY+TOB6stR9zQ=; b=291GHI06+hPo4U rdrQ2MXepObRxRc7fCJ/E7BgngGTEpQq62+8HCwvsNijeV+vcUvFbseiJY35XK4cTbmgHr91YmOHM 95qwZ5m21uN6ehHcIPjvJQO/5v21zwP18bSatUrGMex/4BtJueAu4x+vw53UZTF/XXCcBzH7SZdhd YNEp4GXlqlpiO6FYR2Wzi8YPXqFAttIJtYq2NtdGaSk16oeqzmPMIaQMPO9zVnL+j+AzbclUC/bfw saNfCN5JCTCp/YUSdhDIzTHGehSidQfrXJQ3zheZr11PVtskZBHBiMuQMbug8s1tkeJ5EutFzHCcU /jp+qd3oZZ0bMuXRjQ9w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rbeDP-00000007SyV-1asY; Sun, 18 Feb 2024 10:16:07 +0000 Received: from mail-bjschn02on2070a.outbound.protection.partner.outlook.cn ([2406:e500:4440:2::70a] helo=CHN02-BJS-obe.outbound.protection.partner.outlook.cn) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rbeDJ-00000007SxZ-3283 for linux-riscv@lists.infradead.org; Sun, 18 Feb 2024 10:16:05 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ej7pjPbsqzuqTwj8XbekSN3ETlX4O/GNFg54N+JL+pgbCGHXxYLRT5dj8zFmB1f6ooQASwzNKgnG0oaqRD94Ba64EAzst4WHYHUrZVfAKDz+n+Qv5w1D2naDX/dMg/J9EeCcHRzbb6C6mXG8axIIEK1+HSzDrYcm4VQBTkxZlnXW9Q6Q01PMRuA/8adhqZ3Xio8GqHHh23izbkq/YxyA4NdeC+cSa/nBQnh1Gi3iy4Q2/6Lp9L3057ieepmkTbcN5mw3ph3UriVZ/FOjhltS1NhSha2jKxUmibxzCu85GcjsmQgKfuXnV7QBqFMY0+sx4x+8/Ft9aAWnIIOpq2Cc0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=K7UZdmdyYz24tezUgGACcYCmJKOSO6Q04qEPwmoKWvY=; b=Ctyf8IdVWlTz4QXO21WPLuub6f1TJbAJm7ECo9RHHR2HCCFnwCvq7ZrUsvPDfrtZtWeZbiNQ7wn/uK8J8PCZe24OpQRvaACMX6fpm6pYopYB3Yj3nIrp+EmRDkgCTQrkO4PayuS+L9LSsU8z4vlOeeAhUVambw143vQ+DVPal/0tXkAg/jGxARjmv7BdFFbB7ZUj4DbnIbQl7bTjmzxX1sF0s2oEGANYIwDP5bXRRjOosrcnJVWtv5716hHP86leVDJ/g2bocWMAmM1VdQdiblYOjcotvkHHjQ2aMZJ72nX3/pnN/ckuZO86YXDNjq1S+YWZVOT2qcIN/ImNBUyZ7A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=starfivetech.com; dmarc=pass action=none header.from=starfivetech.com; dkim=pass header.d=starfivetech.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=starfivetech.com; Received: from SHXPR01MB0863.CHNPR01.prod.partner.outlook.cn (2406:e500:c311:25::15) by SHXPR01MB0765.CHNPR01.prod.partner.outlook.cn (2406:e500:c311:26::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7270.46; Sun, 18 Feb 2024 10:15:39 +0000 Received: from SHXPR01MB0863.CHNPR01.prod.partner.outlook.cn ([fe80::5a5a:fa59:15fd:63dc]) by SHXPR01MB0863.CHNPR01.prod.partner.outlook.cn ([fe80::5a5a:fa59:15fd:63dc%3]) with mapi id 15.20.7249.051; Sun, 18 Feb 2024 10:15:39 +0000 From: Minda Chen To: Conor Dooley , =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , Lorenzo Pieralisi , Thomas Gleixner , Daire McNamara , Emil Renner Berthing , Krzysztof Kozlowski Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-pci@vger.kernel.org, Paul Walmsley , Palmer Dabbelt , Albert Ou , Philipp Zabel , Mason Huo , Leyfoon Tan , Kevin Xie , Minda Chen Subject: [PATCH v15 01/23] dt-bindings: PCI: Add PLDA XpressRICH PCIe host common properties Date: Sun, 18 Feb 2024 18:15:30 +0800 Message-Id: <20240218101530.113306-2-minda.chen@starfivetech.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240218101530.113306-1-minda.chen@starfivetech.com> References: <20240218101530.113306-1-minda.chen@starfivetech.com> X-ClientProxiedBy: SHXPR01CA0019.CHNPR01.prod.partner.outlook.cn (2406:e500:c311:1b::28) To SHXPR01MB0863.CHNPR01.prod.partner.outlook.cn (2406:e500:c311:25::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SHXPR01MB0863:EE_|SHXPR01MB0765:EE_ X-MS-Office365-Filtering-Correlation-Id: 256dc340-5454-488e-9396-08dc306a8e3c X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: m07vXg0GA6d+0RHOn43g1WrmmDmvUoSVwCPsw3J/rbCLu5gpSpbBiiOBLihaN3sJJxct8aPEeaDaUHLsny0km4kMQqkCgGbrA2ve7XnElB+yagCq1fnN+PJqpQDtLl4hcdExRdNi5gTC/iJ8kvzwu09iMyOxkrFsdxWXEzCP6tFOS/4KceUa0nM4hbkUCrCm9QvrJq7Y/xvbCOQyz3f0sB317zMV9kvaQshw7d6PgLKsQZLC6ssUOpQZb6PX/C3pmCNtk7uYevSMIlhxfOuyXl75m3Ns3pjtXCIgsRMMLVn6LDJxRnCr0simk/jpec8saXnwngPxjXi0MO0Qd1WZLiwc7dak/y2KLL7B7feTGQlcSTcL0I0nWg5o9CK6ull0gqH4G7D5j3LlkNKcf0aKA7Ixap9vED92AOlBG7rcs07iwRZebCxorL3YDsluu7ViYMibEqhOTdbtSr1aLLwBhzA3eVxgxW2F7oV+urroI+7HpKKQ4pc1LRScBtthJh0bJfnGd4pLifZsersaAny64vPV1O4pyKpmncKAEWO8zL2m+H2cf8MP+rvbDMj5EiKO X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SHXPR01MB0863.CHNPR01.prod.partner.outlook.cn;PTR:;CAT:NONE;SFS:(13230031)(366004)(136003)(396003)(346002)(39830400003)(230922051799003)(64100799003)(186009)(451199024)(1800799012)(2906002)(5660300002)(7416002)(44832011)(41320700001)(26005)(1076003)(6666004)(8936002)(66556008)(66476007)(4326008)(66946007)(107886003)(41300700001)(2616005)(83380400001)(8676002)(40180700001)(38350700005)(52116002)(508600001)(110136005)(54906003)(966005)(38100700002)(86362001)(36756003)(40160700002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Qy25mHapg9j+crG0IE7fOG/0wFKiqF5ePEfK6saGu+Gz7dA5eTQT9pk+MFIfA5AwGWs74XQI9EGjrgcWksF6Xjt5BgT+Ht7CTCLdxtSkyhgIPzs7B3CJEg2txRCMe7vbNdAUfsF8nsGRqam4IIWkwPC95vA9FzlYOc77tHl7V9PAWJou1d7fCHErHqqCYj/znCrxONOwAkQye1JO0z6NiCi91zonDr+EsjM+i6gq4JbNl16OH7ZZoPYZOCCf5bm8wCyR2+/kr15jSxYGiOPDzVz2bHh20u1zdoFvINYzt/InI7RDLax4LV7G30/EH1EHryLE+VU+VBJLED/mZu7hvjs9P+JRpRcCPDKiGdI+UKwgwTYw3Oun3xKggxFVEhC2amEFG1liGOgOAzkcT3Q5lXTNmNQgZce85tkryYEYIU/16VgsdTZ9Idbb5oto+awemyapU/cFGhStmQ8HunhppoakpucVpHd11NzozLAScN6qxZr0dyRviKwTqzcx2ZHkpKczG8OXfkpbvWQxrMR7izPYeb2MTXi4lGcdXmQnY45KN9Phv5BG+WfuD4Z1Qx3J//Fg9/23hQuNz3eoLo/Dy1rhfoA7DqEPYJ3/rBvbh9+AURoQZziMzsgR0kOa5UltZPhNP/ZDu34/KcIcwiW7fSsMnxrPv3QJ8yL/FBMujg+/KZXsfCmFlJ0GFrgK4AtIz85T52EpG7zt6bcUFNxIgKQU5NYHOXNTV48mVsPrHFDtuXYqr/KETyF75cohXoKo7KtqJS22t/3wST9qQrMLEC/mouocS2dVE1WTVhMxGW/LHm5zwKSdpCXWtDCU7FTGkGVrn89XQYpHDYqGE+cl6KbogGAEsyCWBwRHABazbpltqlLDfgqX1VPdfdakwkM+NBpEN0V9lp2vi4zMfYQAFyIwu8r5zyVCxFlkkzZWz4k81fNqDXru/CNeJm2D2dLqhfQN9pbWOi6rwWFBIu45oxMYX+CQvOCHj145GKLT2uTd6XYseSFPfDy15WGYgSrEU8uREH8rFGJ2rNRTotJ3CoTY0nCZLzX9SpFsuCD6drwKNkwtAWKJv3pIohDvV+OYFvOYfXGVV5WIIPkoq19FnhZwuI0veinLB0kmQHWRuZ6VhQZJklGFNr+Fg+el13daDWDDmP4Ql0g2nxEL7QdutufKHgII6nfgtl1Q5DamZ+fq0b01/V7lurM4NkNy5upP0/dQGGuG93l0uGWDv3yQ6TgqB2rzmReEvJys7E97EcRlCgsBkY705l80ESkkH/1rXqi20qRPFjco8cYLi/TxCEz05gwcIftVAJWlSl8c6A0F7IG5edEoJbyMsLJh3uy6vr+xwVjfBTLlsTgvBVIlResmc4kwm8xXnTEpaPNb0+oyv15WO1G6+fd448CjISH/HuSyW0K3oAmsU3XdTvp8Bosz6VKkdsRDTDHjqO6Ii0XeWQ6p1C4blEbaof0bE1EMF1HuhvS6neAApRwEcmnYlznuTVsBM/q/efWxVVGY+e4ftzXq9qlilu+13BcOlgNLraA0tZKvKOy0GYuQtn1Zsnp6EYv9iH1B1kZsiYqUJbI6j8w1xuQ4Smsprqts5P+6QtXtguz5TQThkr2mFpz84A== X-OriginatorOrg: starfivetech.com X-MS-Exchange-CrossTenant-Network-Message-Id: 256dc340-5454-488e-9396-08dc306a8e3c X-MS-Exchange-CrossTenant-AuthSource: SHXPR01MB0863.CHNPR01.prod.partner.outlook.cn X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Feb 2024 10:15:39.2193 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 06fe3fa3-1221-43d3-861b-5a4ee687a85c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: LqeNtsqDqa5RzEhc9JWwKVhFGq23WfFGrEIqqUYK5ZrntCzPusWfiqdHpc/rO7zeBJhdmgQsKTaWlKbtRKUggWSU/bezLZJRwJb7y8WKMKI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SHXPR01MB0765 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240218_021601_794945_38F0EE34 X-CRM114-Status: GOOD ( 11.35 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Add PLDA XpressRICH PCIe host common properties dt-binding doc. 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 Reviewed-by: Rob Herring Tested-by: John Clark --- .../bindings/pci/microchip,pcie-host.yaml | 55 +------------- .../pci/plda,xpressrich3-axi-common.yaml | 75 +++++++++++++++++++ 2 files changed, 76 insertions(+), 54 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..7c2d51221f65 100644 --- a/Documentation/devicetree/bindings/pci/microchip,pcie-host.yaml +++ b/Documentation/devicetree/bindings/pci/microchip,pcie-host.yaml @@ -10,21 +10,13 @@ maintainers: - Daire McNamara 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 +44,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,39 +51,6 @@ 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 examples: 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..31bb17b11e58 --- /dev/null +++ b/Documentation/devicetree/bindings/pci/plda,xpressrich3-axi-common.yaml @@ -0,0 +1,75 @@ +# 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. + +allOf: + - $ref: /schemas/pci/pci-bus.yaml# + +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 + - "#interrupt-cells" + - interrupt-map-mask + - interrupt-map + +additionalProperties: true + +...