From nobody Mon Jun 29 16:46:12 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 34A4DC433F5 for ; Mon, 7 Feb 2022 05:51:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232184AbiBGFtW (ORCPT ); Mon, 7 Feb 2022 00:49:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351276AbiBGENI (ORCPT ); Sun, 6 Feb 2022 23:13:08 -0500 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1anam02on2056.outbound.protection.outlook.com [40.107.96.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24463C043180; Sun, 6 Feb 2022 20:13:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=evPlkVCnWu6fvxRQacVbZ7oHD7wLy+qRtTay7LR7leFAwewTUr07/PKEQTcbHmG8o8w2xOrtqSIY57DkC6OSSQHBPL7VejGErFHm2cSMgpUfRYsgjTIyOlr8lXCOkjy5pZnN8zPT6HE7C62AIztI2AbUGa/12iPGvUvUvOBS5x6uwOJrWcXySZyjmPXxK+Mql+e+Ncd5YsCPoAT02JnnBmE4pCzc0midI2f9iUWIxejmliG/IBGuTD7SsL3PEJx1Dcm3T1yvSA3fXaYxdUhXAZs5DQsyt888UfGjuUatSKPEgAf4s3iarYOlVH1yeZiKiBkpAa+yeNpwAbFjBRj9tw== 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=IdJI5ur0mYlyE8KZosw09tYlAKu4OjZBFoQ1x1k1vsw=; b=dltrw1A8tb3UaE22AVWENkwK48yzGzAjeN5YszqrovPNpuPhpNwV+9fEuEY8aqLKBo/+5opFDyGz4+ZZ6VKCiBMTyEDCv1d1TCiRuVLBm3N8L01AaxLeq8JrJPawCyjiKra0mLwvICcgiwfcGNhqCYItqOfHkYjkOPo9sFEWopjl27cyymIvCYkWFId0eu+GH8ORnkqQSrTRTVMzm19k7zblDzdK+NzsuF1GCxQJljhKxREU5yaiOd7p8aqa2fcaZxMV4w4j1KcuqFTydOVpQXmfeT097P2cFPCVgZfH4T5/l/cejIQOt0mo//GgfWUcEicNt+bhhMJFyo1SiPb7og== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=vger.kernel.org smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IdJI5ur0mYlyE8KZosw09tYlAKu4OjZBFoQ1x1k1vsw=; b=koOu0Ta2RXDRpGNqlVZdGp/TTpK6cuV8xH5JkxWqGExI1nYU2uq2BFSFpvRvAtozcNc01IbWfvzuiGD3iybMF25ciAuYAZXzHwdAdVBTsSL2GN7R8+cKd2M+LMZ61AvASxreyKm/UYD2gc6kgWirPNSjmTuEI08k232+QOO2ZpM= Received: from DM5PR15CA0041.namprd15.prod.outlook.com (2603:10b6:4:4b::27) by BY5PR02MB6404.namprd02.prod.outlook.com (2603:10b6:a03:1f8::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.17; Mon, 7 Feb 2022 04:13:04 +0000 Received: from DM3NAM02FT009.eop-nam02.prod.protection.outlook.com (2603:10b6:4:4b:cafe::7c) by DM5PR15CA0041.outlook.office365.com (2603:10b6:4:4b::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.18 via Frontend Transport; Mon, 7 Feb 2022 04:13:04 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.62.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.62.198; helo=xsj-pvapexch01.xlnx.xilinx.com; Received: from xsj-pvapexch01.xlnx.xilinx.com (149.199.62.198) by DM3NAM02FT009.mail.protection.outlook.com (10.13.5.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4951.12 via Frontend Transport; Mon, 7 Feb 2022 04:13:04 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch01.xlnx.xilinx.com (172.19.86.40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Sun, 6 Feb 2022 20:13:01 -0800 Received: from smtp.xilinx.com (172.19.127.96) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Sun, 6 Feb 2022 20:13:01 -0800 Envelope-to: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, lorenzo.pieralisi@arm.com, bhelgaas@google.com Received: from [10.140.9.2] (port=45184 helo=xhdbharatku40.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1nGvOe-0005Nx-TP; Sun, 06 Feb 2022 20:13:01 -0800 From: Bharat Kumar Gogada To: , CC: , , , Bharat Kumar Gogada Subject: [PATCH 1/2] PCI: xilinx-cpm: Update YAML schemas for Versal CPM5 Root Port Date: Mon, 7 Feb 2022 09:42:48 +0530 Message-ID: <20220207041250.1658-2-bharat.kumar.gogada@xilinx.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220207041250.1658-1-bharat.kumar.gogada@xilinx.com> References: <20220207041250.1658-1-bharat.kumar.gogada@xilinx.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0b3879f3-9328-4956-3e8b-08d9e9f0232b X-MS-TrafficTypeDiagnostic: BY5PR02MB6404:EE_ X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:2399; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: uGfy8LXPGa4D6Zbo6KE6qd3fVNZKgPHhfbUtMxOJ5ioDpp1rKLErS4hTHIFvGJlljgcyWceFgDnN0vgQPISgXP70T+DmlD723IzSHQAvOz0pOHa+X04PTjlbllSqUVniUYjgeirE0Qyz8qbu8ATtuq61B7yKgF5sWOMUB70ycmrqKKcWZ9f4GEgSkK3W2rnlsEb/S2UJ6Tk2J1L1VWhhou1gtqoPMWfZnJOJgX+cWseh5TLOFibAuchLJSgZL0Upl6d3KyNeBrobp4VkwgHS0UNASzVjDN49xn9qeh7p1n2uF37llThcFalaL7ChnRXDrFE+BnZrTpZJSOpAAzPwADGp4cY93yiFpJxPfhIwfgLLegGw0sil2bN7P3qI3vu5Uo8OK3rMwHnUwG9wT9dD0KV26byDzfqdODTBlgjo1AWV5+6ccvs7iCDTaYG1l7TDqT2x1GeBegebYRI+Lz7R8vZoL38Yh+iW57uF45enM4RIuURFRRz3idrLrtzK+8uucHovxwhiNhtQgxHd2qDnoa/qawZaO/ps580vYqabipPa3vsD4F5AFppowYv43l/vAzh0Od5emfrRTssOKAfV4mtRp8ICL4vMzS5n7AM3eklUkUm77Cj68AUtBV54tzUd9r3w7xluFaiT2Yi/lSVG2uG0tbemNam/5LU5p8ydFMMlUiqDCga1yZNE0PESsc0v X-Forefront-Antispam-Report: CIP:149.199.62.198;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:xsj-pvapexch01.xlnx.xilinx.com;PTR:unknown-62-198.xilinx.com;CAT:NONE;SFS:(13230001)(4636009)(36840700001)(46966006)(103116003)(107886003)(2906002)(508600001)(26005)(186003)(1076003)(336012)(426003)(6666004)(2616005)(7696005)(82310400004)(47076005)(316002)(70586007)(70206006)(36860700001)(8936002)(36756003)(9786002)(83380400001)(5660300002)(54906003)(110136005)(4326008)(8676002)(7636003)(356005)(102446001);DIR:OUT;SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Feb 2022 04:13:04.0314 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0b3879f3-9328-4956-3e8b-08d9e9f0232b X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.62.198];Helo=[xsj-pvapexch01.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: DM3NAM02FT009.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR02MB6404 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Xilinx Versal Premium series has CPM5 block which supports Root port functioning at Gen5 speed. Add support for YAML schemas documentation for Versal CPM5 Root Port driver. Signed-off-by: Bharat Kumar Gogada --- .../bindings/pci/xilinx-versal-cpm.yaml | 47 ++++++++++++++++--- 1 file changed, 40 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/pci/xilinx-versal-cpm.yaml b= /Documentation/devicetree/bindings/pci/xilinx-versal-cpm.yaml index 32f4641085bc..97c7229d7f91 100644 --- a/Documentation/devicetree/bindings/pci/xilinx-versal-cpm.yaml +++ b/Documentation/devicetree/bindings/pci/xilinx-versal-cpm.yaml @@ -14,17 +14,21 @@ allOf: =20 properties: compatible: - const: xlnx,versal-cpm-host-1.00 + contains: + enum: + - xlnx,versal-cpm-host-1.00 + - xlnx,versal-cpm5-host-1.00 =20 reg: - items: - - description: Configuration space region and bridge registers. - - description: CPM system level control and status registers. + description: | + Should contain cpm_slcr, cfg registers location and length. + For xlnx,versal-cpm5-host-1.00, it should also contain cpm_csr. + minItems: 2 + maxItems: 3 =20 reg-names: - items: - - const: cfg - - const: cpm_slcr + minItems: 2 + maxItems: 3 =20 interrupts: maxItems: 1 @@ -95,4 +99,33 @@ examples: interrupt-controller; }; }; + + cpm5_pcie: pcie@fcdd0000 { + compatible =3D "xlnx,versal-cpm5-host-1.00"; + device_type =3D "pci"; + #address-cells =3D <3>; + #interrupt-cells =3D <1>; + #size-cells =3D <2>; + interrupts =3D <0 72 4>; + interrupt-parent =3D <&gic>; + interrupt-map-mask =3D <0 0 0 7>; + interrupt-map =3D <0 0 0 1 &pcie_intc_1 0>, + <0 0 0 2 &pcie_intc_1 1>, + <0 0 0 3 &pcie_intc_1 2>, + <0 0 0 4 &pcie_intc_1 3>; + bus-range =3D <0x00 0xff>; + ranges =3D <0x02000000 0x0 0xe0000000 0x0 0xe000000= 0 0x0 0x10000000>, + <0x43000000 0x80 0x00000000 0x80 0x0000000= 0 0x0 0x80000000>; + msi-map =3D <0x0 &its_gic 0x0 0x10000>; + reg =3D <0x00 0xfcdd0000 0x00 0x1000>, + <0x06 0x00000000 0x00 0x1000000>, + <0x00 0xfce20000 0x00 0x1000000>; + reg-names =3D "cpm_slcr", "cfg", "cpm_csr"; + + pcie_intc_1: interrupt-controller { + #address-cells =3D <0>; + #interrupt-cells =3D <1>; + interrupt-controller; + }; + }; }; --=20 2.17.1 From nobody Mon Jun 29 16:46:12 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 86FA2C433EF for ; Mon, 7 Feb 2022 05:56:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349391AbiBGFwY (ORCPT ); Mon, 7 Feb 2022 00:52:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351301AbiBGENN (ORCPT ); Sun, 6 Feb 2022 23:13:13 -0500 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2044.outbound.protection.outlook.com [40.107.236.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BEC05C061A73; Sun, 6 Feb 2022 20:13:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UShHMPvW3tONAENKVom0tmxK10DyF7cgM6/VgVtKH0A5/cJxrgDNX9PvG5f2LpDy+AaEzqHtR6bfHDWZvhIGwTaJxTR1akGbwtfe8pLr6FqWhG6Ob5RHF1Mi+sFL8u4eD25kTqgSZ7BQ61WrJnzUbxz4caHPbnpwlgaQdDBnDHH0HjLCN21BOkyaYntGy4Ez1isXjbZr7NlydWwv85omFISdMfOIyWwNxB1XZFp9AitIVS2+/+I8rurieH5OroRuywwZjSIyB3BfNybMo9EjDuV8X2sZf+DkOTWdo7WMmd6jZwdphuiJgZnz/KaEQjwaaA1cgBAmMCB+Ps/J6f0GMg== 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=IdJI5ur0mYlyE8KZosw09tYlAKu4OjZBFoQ1x1k1vsw=; b=ObFvaF5RZqwcoKMkwUsoq3JGH/cTi6fNjLurqNw/2uoOK8ST84xoZyqTQX+72dcKYwFmfkRYZurRnXzTWiThDI5ARVjcFK7EuSf2SEDg1TGMGf3suqyAdgAZJMEmoTtbHg3INYF2n7uZr3L8HcXUhqBGobFu16JWCQmHngReFs3MJdXueFCat8ZQuWldiUZfDcAE51FfmYMA/BCHHnNq+mEfkBjulLKuaEfjF5Epm2BfF66wvZ0d00Ry/f9eeflZan27LHI1/Xzi+3zVrEuzUKF+gcsZi8Yt+o2eG8yxq2NQacSXfpwElHMw5TUYbZ8iVuJVRZVEu0BkMDQqHJC5zQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=vger.kernel.org smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IdJI5ur0mYlyE8KZosw09tYlAKu4OjZBFoQ1x1k1vsw=; b=pqTCPVcqpun/CNAS55OxkiQa5Uy2kJaI/BR+tSEV0TAOxqJBgmaQgXCEZbvQQQJJzwQue5DD7vOhFMoaSTyJQilXo2wAkRZ0Dm6ZemwTMTn99dDc2gjIwePluPrfW8YfwEghPGz8si8pxYcAnkQYoqyxdv6CvldhUSRx+l4zgDs= Received: from DM5PR15CA0027.namprd15.prod.outlook.com (2603:10b6:4:4b::13) by CO1PR02MB8348.namprd02.prod.outlook.com (2603:10b6:303:163::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.11; Mon, 7 Feb 2022 04:13:11 +0000 Received: from DM3NAM02FT009.eop-nam02.prod.protection.outlook.com (2603:10b6:4:4b:cafe::9e) by DM5PR15CA0027.outlook.office365.com (2603:10b6:4:4b::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.18 via Frontend Transport; Mon, 7 Feb 2022 04:13:11 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.62.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.62.198; helo=xsj-pvapexch01.xlnx.xilinx.com; Received: from xsj-pvapexch01.xlnx.xilinx.com (149.199.62.198) by DM3NAM02FT009.mail.protection.outlook.com (10.13.5.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4951.12 via Frontend Transport; Mon, 7 Feb 2022 04:13:10 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch01.xlnx.xilinx.com (172.19.86.40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Sun, 6 Feb 2022 20:13:04 -0800 Received: from smtp.xilinx.com (172.19.127.96) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Sun, 6 Feb 2022 20:13:04 -0800 Envelope-to: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, lorenzo.pieralisi@arm.com, bhelgaas@google.com Received: from [10.140.9.2] (port=45184 helo=xhdbharatku40.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1nGvOi-0005Nx-GD; Sun, 06 Feb 2022 20:13:04 -0800 From: Bharat Kumar Gogada To: , CC: , , , Bharat Kumar Gogada Subject: [PATCH 1/2] PCI: xilinx-cpm: Update YAML schemas for Versal CPM5 Root Port Date: Mon, 7 Feb 2022 09:42:49 +0530 Message-ID: <20220207041250.1658-3-bharat.kumar.gogada@xilinx.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220207041250.1658-1-bharat.kumar.gogada@xilinx.com> References: <20220207041250.1658-1-bharat.kumar.gogada@xilinx.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a498fce6-d1b9-4c01-5ae1-08d9e9f0270d X-MS-TrafficTypeDiagnostic: CO1PR02MB8348:EE_ X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:2399; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +Wl8MV5NAhm0bjZfIy57Fv9q7D8laRWT19/EYyCBfstNsm+HAz8sDDA9oS3RHXJ9qyyL7uZKAwcnYbUElvFhyF5DwPiSkLfwDgBaBrZXos54PcZwYlhZ5kHTIcLBeysd31I1kP9KsYs0ngznZe6h7C+m2trbiH5Rds9AkSFhhAxSe8sq97+7RxY6ND1PP5+MY6QukzXmW2TvV8v3sR7Mh4Q+spfJSDUiN9xPrMPorIz2FsdyGyOkPOJzOQZqWlc+MzkTgD2/T8oyyXXbdjmbSwYh9G2cvgpPm90wxvXfT6gtG7vmDkvl4qjRP3sBlPermdgbSCDc7/vVAyLZ796mUv6w6jL5O5zHVqM44H5uJyu+5QKJisRmZAsDkFDlQKsAoi+dBwF/krBLZC7+QfNXqHCG+JfhqJP4xlL/80bWIkldMqHZo9j4Y0GD5kcrUbkgClV5aj07N/6bVaxSdAvwdnvgySEl0znsVva+XYVYvU/UcshxqZcOSIuETfFAn8MGRESwK1/p3m8EHxpdc6YuRsxjrZ+E1kMH1xPyxRkNy6AfoCN2cbNxvpBrsCM3+FPG4lE64ePP2JXUi0cBQ8ZhRmUJtLvZRDl2YnuyOpyr1ZMALaHoamg9eWxsPxRMTbEsAb5y0dJKem4OEP0jmIKxJ5sJ4fVghTme/Vf+6I5CpFQueB6lddYQOvWC4OZKH3lB X-Forefront-Antispam-Report: CIP:149.199.62.198;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:xsj-pvapexch01.xlnx.xilinx.com;PTR:unknown-62-198.xilinx.com;CAT:NONE;SFS:(13230001)(4636009)(36840700001)(46966006)(54906003)(4326008)(186003)(1076003)(26005)(110136005)(336012)(82310400004)(426003)(7636003)(9786002)(356005)(70586007)(8676002)(8936002)(7696005)(316002)(2616005)(103116003)(5660300002)(107886003)(6666004)(2906002)(83380400001)(70206006)(47076005)(36860700001)(508600001)(36756003)(102446001);DIR:OUT;SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Feb 2022 04:13:10.5307 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a498fce6-d1b9-4c01-5ae1-08d9e9f0270d X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.62.198];Helo=[xsj-pvapexch01.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: DM3NAM02FT009.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR02MB8348 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Xilinx Versal Premium series has CPM5 block which supports Root port functioning at Gen5 speed. Add support for YAML schemas documentation for Versal CPM5 Root Port driver. Signed-off-by: Bharat Kumar Gogada --- .../bindings/pci/xilinx-versal-cpm.yaml | 47 ++++++++++++++++--- 1 file changed, 40 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/pci/xilinx-versal-cpm.yaml b= /Documentation/devicetree/bindings/pci/xilinx-versal-cpm.yaml index 32f4641085bc..97c7229d7f91 100644 --- a/Documentation/devicetree/bindings/pci/xilinx-versal-cpm.yaml +++ b/Documentation/devicetree/bindings/pci/xilinx-versal-cpm.yaml @@ -14,17 +14,21 @@ allOf: =20 properties: compatible: - const: xlnx,versal-cpm-host-1.00 + contains: + enum: + - xlnx,versal-cpm-host-1.00 + - xlnx,versal-cpm5-host-1.00 =20 reg: - items: - - description: Configuration space region and bridge registers. - - description: CPM system level control and status registers. + description: | + Should contain cpm_slcr, cfg registers location and length. + For xlnx,versal-cpm5-host-1.00, it should also contain cpm_csr. + minItems: 2 + maxItems: 3 =20 reg-names: - items: - - const: cfg - - const: cpm_slcr + minItems: 2 + maxItems: 3 =20 interrupts: maxItems: 1 @@ -95,4 +99,33 @@ examples: interrupt-controller; }; }; + + cpm5_pcie: pcie@fcdd0000 { + compatible =3D "xlnx,versal-cpm5-host-1.00"; + device_type =3D "pci"; + #address-cells =3D <3>; + #interrupt-cells =3D <1>; + #size-cells =3D <2>; + interrupts =3D <0 72 4>; + interrupt-parent =3D <&gic>; + interrupt-map-mask =3D <0 0 0 7>; + interrupt-map =3D <0 0 0 1 &pcie_intc_1 0>, + <0 0 0 2 &pcie_intc_1 1>, + <0 0 0 3 &pcie_intc_1 2>, + <0 0 0 4 &pcie_intc_1 3>; + bus-range =3D <0x00 0xff>; + ranges =3D <0x02000000 0x0 0xe0000000 0x0 0xe000000= 0 0x0 0x10000000>, + <0x43000000 0x80 0x00000000 0x80 0x0000000= 0 0x0 0x80000000>; + msi-map =3D <0x0 &its_gic 0x0 0x10000>; + reg =3D <0x00 0xfcdd0000 0x00 0x1000>, + <0x06 0x00000000 0x00 0x1000000>, + <0x00 0xfce20000 0x00 0x1000000>; + reg-names =3D "cpm_slcr", "cfg", "cpm_csr"; + + pcie_intc_1: interrupt-controller { + #address-cells =3D <0>; + #interrupt-cells =3D <1>; + interrupt-controller; + }; + }; }; --=20 2.17.1 From nobody Mon Jun 29 16:46:12 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 213D8C4167E for ; Mon, 7 Feb 2022 05:54:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245144AbiBGFv4 (ORCPT ); Mon, 7 Feb 2022 00:51:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351333AbiBGENP (ORCPT ); Sun, 6 Feb 2022 23:13:15 -0500 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2065.outbound.protection.outlook.com [40.107.92.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BEB26C061A73; Sun, 6 Feb 2022 20:13:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=M9K4I7+XWHv/dwDe+n4pL7huhhL/rUt05Q7lD+dSAui9nhoEhQ7gvDseGD33b1jhtZWD/Oi0IaQxiMF7oFCqF0AMWTKoMBip5L8ByqBQtWRJLM35ZOxQtJdOLdvcDNVcf1uwpCld7/EKXRRwTxuhVPyo2zc0V+YJORkm+rBcPhKQPHhYb7GicDgR1yCOED+IkmGJdOjUqWRmdqqBcizxwY/ofvVQBJ7d7p+rkGp2jPut6BaeG9H1RJqToahnEeljtS4OAsQktWaxI+vIUmRldODERBWZTjvlBoas9LZ1xJ8aEkNpFKADCYlKvyKLKRDOxxauEbRSSTAlNxFCcP7Q0g== 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=XQztx4CQJr/b+brzajSB/3W1dw9k+ExjvVcb8QD7fhE=; b=Cgej5+AOUPcbhEn9OCLKw4SDsWIoEQ5hgGfp87KOeXXED9jIj85bSc+gUvHDCKcENmkKi6x863b1j82Hgov4KYYqRyoS1tH7TFG67AY83+WudX9J7KJxPVs0K7yugHdtTl/yg5xC0wirIcTFpfZE5ssIgouyMGvc+aSwN1C36n/RVSFXP1zkagdy9oAJpgiFN2NoCxs02px5kvZZ47DWHvmiWjtfDjsS/RzQ/L6JnAbcjoGQYQF1uXfBc7yBTZdWiG0I6plKaKAXgRRgHdE6g2zV9bc89P8jTqCJpTOCcBI+U7RW/8QZqApTfimo1QJq1+MvVcE/GWxP4gNCX/UHjA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=vger.kernel.org smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XQztx4CQJr/b+brzajSB/3W1dw9k+ExjvVcb8QD7fhE=; b=Gb+9DPVQUpZunJ140mdZ+NpBt8yf5MCqiRxwlXWoPKSCLEeT0k2ucFrM8qVhSx3xXopRDVsw/0WaDKliKRVnZqDyG6uhffhulXEJNITYpklYZMCL6wrhR0nieG6/+K1prB8PyS1ewP17ftBpd4i+LGk8F1Ps0zLdczUGK5TRU7o= Received: from BN6PR16CA0003.namprd16.prod.outlook.com (2603:10b6:404:f5::13) by PH0PR02MB8408.namprd02.prod.outlook.com (2603:10b6:510:10b::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.16; Mon, 7 Feb 2022 04:13:12 +0000 Received: from BN1NAM02FT057.eop-nam02.prod.protection.outlook.com (2603:10b6:404:f5:cafe::e0) by BN6PR16CA0003.outlook.office365.com (2603:10b6:404:f5::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.18 via Frontend Transport; Mon, 7 Feb 2022 04:13:12 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.62.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.62.198; helo=xsj-pvapexch02.xlnx.xilinx.com; Received: from xsj-pvapexch02.xlnx.xilinx.com (149.199.62.198) by BN1NAM02FT057.mail.protection.outlook.com (10.13.2.165) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4951.12 via Frontend Transport; Mon, 7 Feb 2022 04:13:11 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Sun, 6 Feb 2022 20:13:09 -0800 Received: from smtp.xilinx.com (172.19.127.96) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Sun, 6 Feb 2022 20:13:09 -0800 Envelope-to: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, lorenzo.pieralisi@arm.com, bhelgaas@google.com Received: from [10.140.9.2] (port=45184 helo=xhdbharatku40.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1nGvOm-0005Nx-Qx; Sun, 06 Feb 2022 20:13:09 -0800 From: Bharat Kumar Gogada To: , CC: , , , Bharat Kumar Gogada Subject: [PATCH 2/2] PCI: xilinx-cpm: Add support for Versal CPM5 Root Port driver Date: Mon, 7 Feb 2022 09:42:50 +0530 Message-ID: <20220207041250.1658-4-bharat.kumar.gogada@xilinx.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220207041250.1658-1-bharat.kumar.gogada@xilinx.com> References: <20220207041250.1658-1-bharat.kumar.gogada@xilinx.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5fdf97b5-19d1-4cdb-80b6-08d9e9f027e6 X-MS-TrafficTypeDiagnostic: PH0PR02MB8408:EE_ X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:849; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /iCn2rZiHZHsq2NDJ0d8w2Z0UvEWaMM9I0KHqSt0AbR1z4MvwF/L8k0xowz8n3x18IaIfbfZbXvne+MRSFEpQ2yj+7jAeiSlkNlUt6ifjg5ZXnLPt6RBL2g671EEyL8DLHRBtWguV++2IIB2shyJSzKhW7lP3L+FYlUgiAi0gIjQ5m++25eqyy/9IhLOUXxIot+RoXOPuYP/UmtN0u7Oo7vk5ctpRNfI+qctCtceYI4qL7hQ4qhv/mXLwW7bq4J6IinoXUPzdzmmY4mpwaFiYF0CeqIa7266h4P5AA/ZlJgyy1uCzQ5qy9gL/wqc+duGoqd2thtmKfg9g45ylRTkXi79a/NWVNH03smqd6Dm925GW5RzIN6RDslKdRwTKugPZRh4PKztjqtcKsqgd4t+gmrDK7xsIb/3g+XdXWIA1X3vGmzQ4omhM0qDQX6U6ISy+dfcChEIOe24PtNTRkWlx5wIHQWMlQdIqJEV+SKv79seyuwccj4O0rkbwPiMr9gFzsntNvTDlL3z0Te1A6+CD+yQ7nntVcJ475Ih0MPVXRX9IXoVyeAn7MHepRVxdvm5MM2rUI5G6oNP3TaB42P4tBJI+JxQYlsp60rnCvfoRJzO3uNL48m3TvmEeVY7oft8a3Y+wnjd4qvmqRufxQ+F0cE4gxqPqZWTTEthVDMngQq19KpQdZCtHnqeK3gZawO5 X-Forefront-Antispam-Report: CIP:149.199.62.198;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:xsj-pvapexch02.xlnx.xilinx.com;PTR:unknown-62-198.xilinx.com;CAT:NONE;SFS:(13230001)(4636009)(36840700001)(46966006)(8936002)(7636003)(6666004)(4326008)(2616005)(9786002)(70586007)(8676002)(83380400001)(70206006)(356005)(1076003)(186003)(5660300002)(2906002)(103116003)(107886003)(26005)(82310400004)(7696005)(336012)(426003)(54906003)(110136005)(36756003)(36860700001)(508600001)(47076005)(316002)(102446001);DIR:OUT;SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Feb 2022 04:13:11.9070 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5fdf97b5-19d1-4cdb-80b6-08d9e9f027e6 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.62.198];Helo=[xsj-pvapexch02.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: BN1NAM02FT057.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR02MB8408 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Xilinx Versal Premium series has CPM5 block which supports Root port functioning at Gen5 speed. Xilinx Versal CPM5 has few changes with existing CPM block. - CPM5 has dedicated register space for control and status registers. - CPM5 legacy interrupt handling needs additional register bit to enable and handle legacy interrupts. Signed-off-by: Bharat Kumar Gogada --- drivers/pci/controller/pcie-xilinx-cpm.c | 33 +++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/drivers/pci/controller/pcie-xilinx-cpm.c b/drivers/pci/control= ler/pcie-xilinx-cpm.c index c7cd44ed4dfc..eb69f494571a 100644 --- a/drivers/pci/controller/pcie-xilinx-cpm.c +++ b/drivers/pci/controller/pcie-xilinx-cpm.c @@ -35,6 +35,10 @@ #define XILINX_CPM_PCIE_MISC_IR_ENABLE 0x00000348 #define XILINX_CPM_PCIE_MISC_IR_LOCAL BIT(1) =20 +#define XILINX_CPM_PCIE_IR_STATUS 0x000002A0 +#define XILINX_CPM_PCIE_IR_ENABLE 0x000002A8 +#define XILINX_CPM_PCIE_IR_LOCAL BIT(0) + /* Interrupt registers definitions */ #define XILINX_CPM_PCIE_INTR_LINK_DOWN 0 #define XILINX_CPM_PCIE_INTR_HOT_RESET 3 @@ -109,6 +113,7 @@ * @intx_irq: legacy interrupt number * @irq: Error interrupt number * @lock: lock protecting shared register access + * @is_cpm5: value to check cpm version */ struct xilinx_cpm_pcie { struct device *dev; @@ -120,6 +125,7 @@ struct xilinx_cpm_pcie { int intx_irq; int irq; raw_spinlock_t lock; + bool is_cpm5; }; =20 static u32 pcie_read(struct xilinx_cpm_pcie *port, u32 reg) @@ -285,6 +291,14 @@ static void xilinx_cpm_pcie_event_flow(struct irq_desc= *desc) generic_handle_domain_irq(port->cpm_domain, i); pcie_write(port, val, XILINX_CPM_PCIE_REG_IDR); =20 + if (port->is_cpm5) { + val =3D readl_relaxed(port->cpm_base + XILINX_CPM_PCIE_IR_STATUS); + if (val) + writel_relaxed(val, + port->cpm_base + + XILINX_CPM_PCIE_IR_STATUS); + } + /* * XILINX_CPM_PCIE_MISC_IR_STATUS register is mapped to * CPM SLCR block. @@ -484,6 +498,12 @@ static void xilinx_cpm_pcie_init_port(struct xilinx_cp= m_pcie *port) */ writel(XILINX_CPM_PCIE_MISC_IR_LOCAL, port->cpm_base + XILINX_CPM_PCIE_MISC_IR_ENABLE); + + if (port->is_cpm5) { + writel(XILINX_CPM_PCIE_IR_LOCAL, + port->cpm_base + XILINX_CPM_PCIE_IR_ENABLE); + } + /* Enable the Bridge enable bit */ pcie_write(port, pcie_read(port, XILINX_CPM_PCIE_REG_RPSC) | XILINX_CPM_PCIE_REG_RPSC_BEN, @@ -504,6 +524,9 @@ static int xilinx_cpm_pcie_parse_dt(struct xilinx_cpm_p= cie *port, struct platform_device *pdev =3D to_platform_device(dev); struct resource *res; =20 + if (of_device_is_compatible(dev->of_node, "xlnx,versal-cpm5-host-1.00")) + port->is_cpm5 =3D true; + port->cpm_base =3D devm_platform_ioremap_resource_byname(pdev, "cpm_slcr"); if (IS_ERR(port->cpm_base)) @@ -518,7 +541,14 @@ static int xilinx_cpm_pcie_parse_dt(struct xilinx_cpm_= pcie *port, if (IS_ERR(port->cfg)) return PTR_ERR(port->cfg); =20 - port->reg_base =3D port->cfg->win; + if (!port->is_cpm5) { + port->reg_base =3D port->cfg->win; + } else { + port->reg_base =3D devm_platform_ioremap_resource_byname(pdev, + "cpm_csr"); + if (IS_ERR(port->reg_base)) + return PTR_ERR(port->reg_base); + } =20 return 0; } @@ -593,6 +623,7 @@ static int xilinx_cpm_pcie_probe(struct platform_device= *pdev) =20 static const struct of_device_id xilinx_cpm_pcie_of_match[] =3D { { .compatible =3D "xlnx,versal-cpm-host-1.00", }, + { .compatible =3D "xlnx,versal-cpm5-host-1.00", }, {} }; =20 --=20 2.17.1