From patchwork Tue Feb 27 10:35:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Minda Chen X-Patchwork-Id: 13573515 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 6F71EC5478C for ; Tue, 27 Feb 2024 10:35:56 +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=fPU1pNjGNtv82z c3K6usk5pcNQ5sKcTqPYAz/Bq1Gwk74lTtY3AAKlPGq4O3GOokltfAceZCRas8PoU9gXX52tXN4Nu l/njgiVl6stA1EF88DrXO60WhM/Ivx8cqMc9Sc206nzQi7GihAvNHtHrqeBjP7Rjc9lzHbp9E3OWM SFbn3B5R9/55XIEHXnm32GVH8cNK+/NYtuYfzGyd9wn8zyi1ohoLY/23dCa9cnYiv5KO0TPppgLlo 3LM8LXxsZEco3/I6VxBkjJ7vbOXWzvmjgSTzgpWx+Hrl/YxQ60gijFgzSnRG8LDOplLG/0uixFHt0 bVOJFj8kvy4OXx6fFf+Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1reuoR-00000004lLW-32lb; Tue, 27 Feb 2024 10:35:51 +0000 Received: from mail-sh0chn02on2072a.outbound.protection.partner.outlook.cn ([2406:e500:4420:2::72a] helo=CHN02-SH0-obe.outbound.protection.partner.outlook.cn) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1reuoK-00000004lFs-0wt0 for linux-riscv@lists.infradead.org; Tue, 27 Feb 2024 10:35:45 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i+2aArqtsixf7CXhuvC597uy0nx9trPL4mIILkz4/DPRgTzUt7VtbSzTUWTI/OtbJoQIOYHOCqyLcJSbFh6orhNNy4SLVaVJ6l5AP/OAV41lkTVMO7AT+EcQT/wN4yYVMHL/i7bdf/MbcA2LUcQLQkmxrzDnY+WMiNjbCrBdp4JDme1gwXPi5RXRKrpMs7lg2MYcjPSZ9NuUS+2+5y3Mta331qHt0hV+Vl5yqr7k/NFKpvCW/DG2ugDQNoSUv0awn8tiDkTsStOAQecXkgMRf9haU+2qe1SvDS3kBr7JA5ru2K0VfjnmJfo35SYIUfBw6kf8ECI2G6+focfxVsCWEQ== 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=O87UWnSpskxPx6Nc/5xkcGW1fHZ5+LpFk7QLm6VGB1B1PdyiK90MQyqq56ydNGC0iVkyuGVgggZwxlgdaacTD7QnctS/WEAGfkDdoAzhYlEOwpnz6zhP+NkV92bIUwuTJT6YMdIawPIQPf7ipcRw/PsYswsKpiKoGpZLhmg+17P8I/6KFodb66J097KzBOo1thjheyPxhXL80EzYLm/qmLHaaZz0Ku8DrMlWhC685buYkvRa/tIjE9EJEmKCRCZhiRfOw6ljnRPJeAjGMqVx/HydYYdmKkyhrOaN4AMCdHFxH9rlyFCaY4aETFeDKDZU/AJ1Sg9NLzxU8uu5jnRV6w== 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 SHXPR01MB0863.CHNPR01.prod.partner.outlook.cn (2406:e500:c311:25::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7270.47; Tue, 27 Feb 2024 10:35:31 +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.7270.047; Tue, 27 Feb 2024 10:35:31 +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,RESEND 01/23] dt-bindings: PCI: Add PLDA XpressRICH PCIe host common properties Date: Tue, 27 Feb 2024 18:35:00 +0800 Message-Id: <20240227103522.80915-2-minda.chen@starfivetech.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240227103522.80915-1-minda.chen@starfivetech.com> References: <20240227103522.80915-1-minda.chen@starfivetech.com> X-ClientProxiedBy: NT0PR01CA0003.CHNPR01.prod.partner.outlook.cn (2406:e500:c510::15) 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_ X-MS-Office365-Filtering-Correlation-Id: 8c790bfb-294b-4208-39f0-08dc377fd23e X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rovi3hNTH13hMtc3Te6Id6bqpzGyl5GbBMgdyij6odqYjO2WOijfKZ1QU0aDxdSrDtJF4F2zVAnYmec8nh4GkNLxWPM+/36eBjMjrYGBPBWGCkQ7WNOKAkisZIAehmKsBYTSThmkuLMHxV/BodUZyJqP1tgfg52lEcGTsr6GQleMDR/0RWk+tfyGoFqWsDajp8tyvRlJReVQjZRWlC0WnR9sLoKac75qQGFywmskDKyPNDBQ5FSMOGnBQwbphbPIlNCtosEFxQxuFwFXmD0d8Iqp7a3E83mc5d8uxyuP14HWRAMriem3lb0SWitfaG/dfwRG2OUjWgddXx5RA6ScxgJUXSkktT8nLDP605yR86XHEUnNDn2Gfs5v9uhklSLIAUwV3XEO0ktv/mxWDbY6V1ObKXJdWChTAk7se2/F0GS1wrAG3KfKIIXP2ZiZT8dA8ZVGhgAim285wdGv0hFPAHYtKwoyCO/KD3Uyw3NNYlTKpl3NPqM2liZCBaUhRJ8mHGGfSdq+lmBCdhxCUWDTmnEK8lAYoteeINkKrOUkIQRBCZc3HwEwoZdZIwgeNcRVadkL+kE3hgEoBrvCRXtXrwXmd/xmP06Z8glNamP8ZuWLcDCFvIzAjZj77SWY+Mps 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)(38350700005);DIR:OUT;SFP:1102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t2ySUAmr2g60Xw1LX7DwQNlk7rI9PlNahJ4gcb1bm1VDp5FM6FPlEWW8VJeSy384i8GbD2QvZgeZNF+SqcLY/AcQFydZK/ipYbb9QxLUDcFYv4pWweEb+rJE2oFaJVlcIC322owbgM+1hGOXM288aEZdDVXRq1xnqq+FJEz4f5ucG4WGwITZQtkBAHKICq/1wxBQyeLLcztEmX8DXRfttevs2q/RwQ5+ztjveM4e2FlB4OPaBmtAkEGCYnIIrbb+yNtzbCttGjYZQ9q56EFc4kyYH3hDdcWRL9wvZ3WiWUDglu5QOhG4i1Jo0MvaBqkmZdvOYGTBkLKFEv1LmFI2uDDDXFYecOOLlAEPTDfhPr1VqI31nERaqR8Y5Th0mNIh3IU9q1akXG0rRGP/uTKKWyAFrpLPmuHahDBKZV6GxosrPAbLZxhy6P9jaocckYYpbWzB6563domBsJOI8Hhhe0osKw63s1b+tyM1TDucSFbMfrtfOB3KtM9MkWmhwHUNNi5As3d17m6ILSuWr+PwnwwVa2W2efIMezeX4l/Xk2mXs7+wFmSu6GR9Kgr2vg6f97Y/nh3NaXo/kYBYIv7SKKikoz+edFK/XVw== X-OriginatorOrg: starfivetech.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8c790bfb-294b-4208-39f0-08dc377fd23e X-MS-Exchange-CrossTenant-AuthSource: SHXPR01MB0863.CHNPR01.prod.partner.outlook.cn X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Feb 2024 10:35:30.9094 (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: bMSsNfyBes5AsDh3gKn55KytL/y1vnLoi6FlMgr8A9E5ZGcahvZmjWcfSCloiXB61lbbXlZKffKWQ58SMgP0AhXyq5z0ZfJwt8go8lMqzQE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SHXPR01MB0863 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240227_023544_350665_6CC8A7CD X-CRM114-Status: GOOD ( 11.79 ) 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 + +...