From patchwork Tue Nov 8 03:50:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Havalige, Thippeswamy" X-Patchwork-Id: 16851 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2465609wru; Mon, 7 Nov 2022 19:53:16 -0800 (PST) X-Google-Smtp-Source: AMsMyM7rQEB6uTVk4yXQlvGgigB/30yAwnTA7kjL5c38dKxlCK6hNljRAqZRmJzH6P40mmlItdE5 X-Received: by 2002:a17:906:9bee:b0:7ad:c4a1:b8e4 with SMTP id de46-20020a1709069bee00b007adc4a1b8e4mr47489433ejc.283.1667879596704; Mon, 07 Nov 2022 19:53:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1667879596; cv=pass; d=google.com; s=arc-20160816; b=BGHEbIbHJOjng2Eh/Mmg0IzfNy5MY9EyTCYGamhDmSxYIklWqlnK4gGDX6vi/s8MCu XxjgaMKMf0I3R3mVYpu4t0aVOgLWE6w1meA3yaiO8j5Db917+p+x2P8RJJ2WyCTA8lpD kZGaiJ16bkEn7kMzqylchQpTySd2vzEJSHDjrzfbl/+3yXCyzlaYcuRK1wdRjz8vVjF7 XQIHilDmv+ePhp8VvkgDVzPysbgPlkuj71FIFgugMOPqLRBTNI4IxzW0D6Bbexe/mkRe bNPcxToZHUqpIh+6lTU5H4jFLjtAE27NC5C4juwmnr4a9vPc0eHeDAUsV53zw5ZgyNrD FNQA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=5b01L88zLmoVal4M4hRftfaPvjjmTYZHDrm3s8+GXJI=; b=Ijwt5n17GOWQMc3tgGL4JMpAHrhF5oukwqm/MUNJPny78NWjI6nlD4lAzCd+555W4U ka+1iJ2GTsOJ6YjKBkYWeZZ6UGdaoaBB+UmGAaWOpNbLwMo8aXGQJIzYBCrpN+5fF1QJ ocVeDz2pq/BhlssFdnFAKZgjpgyRxbkzQRlmzzN+OqfSO1SZdPsLLJd5NBpPAFE80Wyi ycnmp9I9OBR+RXhtUv4rS+kCCozFSUo+exuVn+k5Ll3jqBrPf9nelpndbJDjsrqvMdDI TGH4+/+XVdzuQIt/3IxBVV/IzB5rPlZo+9Zqz9d9obw1SYUQ6krUO4nHNC0NI3lOPls6 soEA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=F7VxMcAu; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gs37-20020a1709072d2500b007882936243fsi11213575ejc.772.2022.11.07.19.52.52; Mon, 07 Nov 2022 19:53:16 -0800 (PST) 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; dkim=pass header.i=@amd.com header.s=selector1 header.b=F7VxMcAu; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233175AbiKHDvR (ORCPT + 99 others); Mon, 7 Nov 2022 22:51:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233061AbiKHDvG (ORCPT ); Mon, 7 Nov 2022 22:51:06 -0500 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2040.outbound.protection.outlook.com [40.107.236.40]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7E1F2D1FA; Mon, 7 Nov 2022 19:51:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ItFnqu1EcJLY1THQKLDNLimTj3Ywz76lrWviDqpjU7e64F9baOoNVQ6/ZEFNWaHtQewV9r26Lwuvdpda2NmEnheJas2EqV/yOhbxn313FQM3IzF1AFI0UxBZDWkakaTDkX7/eSCyQz2yrYI3qQDXcgK+D3Dqi8kMec6EbdShZpdsRJYataaSNWAFrYKHTA3ByZ2WsqANJ5ZE2zWQ0umoKWU4loPAaXE7xR7q5JgqrJtQcxCe2RuOZPs0R3h7kebrYn6x/3Z1aWYz8ByRwS+aXKtmVIxXC5+oqWxVCm2IAxDT7AHKpyvTsVikVFQSHWp/3lf7VSW2xV14iOXix2jz2w== 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=5b01L88zLmoVal4M4hRftfaPvjjmTYZHDrm3s8+GXJI=; b=DXy+rlvib4B9+uTJg/eF/LhBqh06nLLw8GhJvwBSbUuTteuSH04hRVE3hBib+gQk8w4UqsPPDwRhkGpHLDOrkdLpXkKHMCZ4HQnRkzKlfsx4Qw45V6z9Y98Lj6SnVI6vlna4yvSoPG3OELaxZB4+ejYgx83GlCeEZqDvWbryi+KsLnutxlqzqWI6/8+4MopfREkVyM26OGCD571106eiNcdaty4a9rUlqN9S4pIxm7OcsCtt9iVejClpVIqy24lxW3EffTB7aegtSf6nZcsZWRXO4Js7MTMm0A7Cdl76CjfUiBuXmYWMw34OrS3trNIw8DgYOWb1ZrmB06dyO9O79Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=vger.kernel.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5b01L88zLmoVal4M4hRftfaPvjjmTYZHDrm3s8+GXJI=; b=F7VxMcAuaCAe8f2w8KGXDO5E8nN8hY6OsHy655vBsbD79PRuicMW2p44FZmhXiN3OZrEK7X/N50ww6L7v/ddndQYju7GA0n8gK8unFas/HAFNIUik+vMApe+ItT4E+EgGJX6DHGIV+k1D2CqP6YYZ1C9ayI75T3Wmfz236gjvls= Received: from DS7PR05CA0081.namprd05.prod.outlook.com (2603:10b6:8:57::6) by MW4PR12MB6873.namprd12.prod.outlook.com (2603:10b6:303:20c::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5791.25; Tue, 8 Nov 2022 03:51:02 +0000 Received: from DM6NAM11FT011.eop-nam11.prod.protection.outlook.com (2603:10b6:8:57:cafe::29) by DS7PR05CA0081.outlook.office365.com (2603:10b6:8:57::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5813.8 via Frontend Transport; Tue, 8 Nov 2022 03:51:02 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by DM6NAM11FT011.mail.protection.outlook.com (10.13.172.108) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5791.20 via Frontend Transport; Tue, 8 Nov 2022 03:51:02 +0000 Received: from SATLEXMB07.amd.com (10.181.41.45) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 7 Nov 2022 21:50:57 -0600 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB07.amd.com (10.181.41.45) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 7 Nov 2022 19:50:35 -0800 Received: from xhdarjunv40.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2375.31 via Frontend Transport; Mon, 7 Nov 2022 21:50:32 -0600 From: Thippeswamy Havalige To: , , , CC: , , , , , Thippeswamy Havalige Subject: [PATCH v5 1/2] dt-bindings: PCI: xilinx-pcie: Convert to YAML schemas of Xilinx AXI PCIe Root Port Bridge Date: Tue, 8 Nov 2022 09:20:29 +0530 Message-ID: <20221108035030.1040202-1-thippeswamy.havalige@amd.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT011:EE_|MW4PR12MB6873:EE_ X-MS-Office365-Filtering-Correlation-Id: 3b667d2a-d566-43e9-282c-08dac13c7468 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6Huo7C6bjfttG1AsZkuBtMmzUyje0M+cfWg9H0zUWsl6d9lIxMVhncVxlHa4ICvXGR5layyUTj9D5joeRRp8AEwysi09ox3PRh95OvObRWRtqCNniaN/Ul+vHEh9tZoTi5//tJ44HXyzsN+nUMm7ncmZEcQNC41NosW6C8tE9Fqa+nEuLcxgCPL4yGh0tFjTyBLofa9NMb45H+XcahXfHV3BAhYeXUyn+duZA4W20q7YxyFI+LqoPYYv440DlQCynIinHseDSHW3FMrirFwLGqILg8iCFmZ3VJOvgtpAszBIeCMMGQAsw3QkOosN2sJkp7j4u8+iMxGCYp0XdvFe7pWzzuk7gn8pvUtwevwquNH1XbdfMjBETr5nP8twRej4GuDiS/JPwWx8WxpzQ9A9ULtYAwQfMYSX5H0tekYKpInyFs9copFKMX2YPVT6yPSYDFJ1LGYji15LyW/oZiv/Xl9e/ZLOb0W5/uoR0BiRJr4SQH7U5nFPGyFk0gbr/45ogmX3BQ5RXyJvteNGjb4NewMd9bpJTUqTv4+IoGM8SrzHQd+8OTj4Bd7kcSVWY9vyBCCOwNNvlkzKsWb1miKc9Nlr5yKnH+cZJVBaaWhUu0/KyBmI7hPLxUUhuflyyuaWi+ei0oXlokWI+ZtCnETM72q7ry7d0MsKmiIpvGY6ZiSO+KAEAzkE5Z4lATGfCH714wGAGmOX01fWoqacjAwkBCfoSX6yLmb0QBoOF/6jIwZcEIx0pSgZoQR+Tp3GCSKB2NTmTa7YmXLqDGarWDKX3hQ1b+Tzs+TkNEQlDlPBZH7rH8Z81nuW2+IqsGCd7MA7EzNHI4cV2yypuCCG3KZ5Pw1+HxdaKaWLLFxkrpOWuAQP1g/GrQLB5T0aJFqrAdas X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230022)(4636009)(396003)(39860400002)(376002)(136003)(346002)(451199015)(40470700004)(46966006)(36840700001)(82310400005)(2906002)(26005)(36756003)(47076005)(478600001)(966005)(41300700001)(6666004)(8936002)(316002)(110136005)(40460700003)(81166007)(70586007)(356005)(36860700001)(70206006)(82740400003)(4326008)(8676002)(5660300002)(40480700001)(86362001)(54906003)(426003)(2616005)(1076003)(83380400001)(186003)(336012)(44832011)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Nov 2022 03:51:02.0590 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3b667d2a-d566-43e9-282c-08dac13c7468 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT011.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR12MB6873 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS 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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748898516309334665?= X-GMAIL-MSGID: =?utf-8?q?1748898516309334665?= Convert to YAML dtschemas of Xilinx AXI PCIe Root Port Bridge dt binding. Signed-off-by: Thippeswamy Havalige Reviewed-by: Krzysztof Kozlowski --- Dropped additional blank line before sob. --- .../devicetree/bindings/pci/xilinx-pcie.txt | 88 ------------------- .../bindings/pci/xlnx,axi-pcie-host.yaml | 88 +++++++++++++++++++ 2 files changed, 88 insertions(+), 88 deletions(-) delete mode 100644 Documentation/devicetree/bindings/pci/xilinx-pcie.txt create mode 100644 Documentation/devicetree/bindings/pci/xlnx,axi-pcie-host.yaml diff --git a/Documentation/devicetree/bindings/pci/xilinx-pcie.txt b/Documentation/devicetree/bindings/pci/xilinx-pcie.txt deleted file mode 100644 index fd57a81180a4..000000000000 --- a/Documentation/devicetree/bindings/pci/xilinx-pcie.txt +++ /dev/null @@ -1,88 +0,0 @@ -* Xilinx AXI PCIe Root Port Bridge DT description - -Required properties: -- #address-cells: Address representation for root ports, set to <3> -- #size-cells: Size representation for root ports, set to <2> -- #interrupt-cells: specifies the number of cells needed to encode an - interrupt source. The value must be 1. -- compatible: Should contain "xlnx,axi-pcie-host-1.00.a" -- reg: Should contain AXI PCIe registers location and length -- device_type: must be "pci" -- interrupts: Should contain AXI PCIe interrupt -- interrupt-map-mask, - interrupt-map: standard PCI properties to define the mapping of the - PCI interface to interrupt numbers. -- ranges: ranges for the PCI memory regions (I/O space region is not - supported by hardware) - Please refer to the standard PCI bus binding document for a more - detailed explanation - -Optional properties for Zynq/Microblaze: -- bus-range: PCI bus numbers covered - -Interrupt controller child node -+++++++++++++++++++++++++++++++ -Required properties: -- interrupt-controller: identifies the node as an interrupt controller -- #address-cells: specifies the number of cells needed to encode an - address. The value must be 0. -- #interrupt-cells: specifies the number of cells needed to encode an - interrupt source. The value must be 1. - -NOTE: -The core provides a single interrupt for both INTx/MSI messages. So, -created a interrupt controller node to support 'interrupt-map' DT -functionality. The driver will create an IRQ domain for this map, decode -the four INTx interrupts in ISR and route them to this domain. - - -Example: -++++++++ -Zynq: - pci_express: axi-pcie@50000000 { - #address-cells = <3>; - #size-cells = <2>; - #interrupt-cells = <1>; - compatible = "xlnx,axi-pcie-host-1.00.a"; - reg = < 0x50000000 0x1000000 >; - device_type = "pci"; - interrupts = < 0 52 4 >; - interrupt-map-mask = <0 0 0 7>; - interrupt-map = <0 0 0 1 &pcie_intc 1>, - <0 0 0 2 &pcie_intc 2>, - <0 0 0 3 &pcie_intc 3>, - <0 0 0 4 &pcie_intc 4>; - ranges = < 0x02000000 0 0x60000000 0x60000000 0 0x10000000 >; - - pcie_intc: interrupt-controller { - interrupt-controller; - #address-cells = <0>; - #interrupt-cells = <1>; - }; - }; - - -Microblaze: - pci_express: axi-pcie@10000000 { - #address-cells = <3>; - #size-cells = <2>; - #interrupt-cells = <1>; - compatible = "xlnx,axi-pcie-host-1.00.a"; - reg = <0x10000000 0x4000000>; - device_type = "pci"; - interrupt-parent = <µblaze_0_intc>; - interrupts = <1 2>; - interrupt-map-mask = <0 0 0 7>; - interrupt-map = <0 0 0 1 &pcie_intc 1>, - <0 0 0 2 &pcie_intc 2>, - <0 0 0 3 &pcie_intc 3>, - <0 0 0 4 &pcie_intc 4>; - ranges = <0x02000000 0x00000000 0x80000000 0x80000000 0x00000000 0x10000000>; - - pcie_intc: interrupt-controller { - interrupt-controller; - #address-cells = <0>; - #interrupt-cells = <1>; - }; - - }; diff --git a/Documentation/devicetree/bindings/pci/xlnx,axi-pcie-host.yaml b/Documentation/devicetree/bindings/pci/xlnx,axi-pcie-host.yaml new file mode 100644 index 000000000000..69b7decabd45 --- /dev/null +++ b/Documentation/devicetree/bindings/pci/xlnx,axi-pcie-host.yaml @@ -0,0 +1,88 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pci/xlnx,axi-pcie-host.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Xilinx AXI PCIe Root Port Bridge + +maintainers: + - Thippeswamy Havalige + +allOf: + - $ref: /schemas/pci/pci-bus.yaml# + +properties: + compatible: + const: xlnx,axi-pcie-host-1.00.a + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + ranges: + items: + - description: | + ranges for the PCI memory regions (I/O space region is not + supported by hardware) + + "#interrupt-cells": + const: 1 + + interrupt-controller: + description: identifies the node as an interrupt controller + type: object + properties: + interrupt-controller: true + + "#address-cells": + const: 0 + + "#interrupt-cells": + const: 1 + + required: + - interrupt-controller + - "#address-cells" + - "#interrupt-cells" + + additionalProperties: false + +required: + - compatible + - reg + - ranges + - interrupts + - interrupt-map + - "#interrupt-cells" + - interrupt-controller + +unevaluatedProperties: false + +examples: + - | + #include + #include + + pcie@50000000 { + compatible = "xlnx,axi-pcie-host-1.00.a"; + reg = <0x50000000 0x1000000>; + #address-cells = <3>; + #size-cells = <2>; + #interrupt-cells = <1>; + device_type = "pci"; + interrupts = ; + interrupt-map-mask = <0 0 0 7>; + interrupt-map = <0 0 0 1 &pcie_intc 1>, + <0 0 0 2 &pcie_intc 2>, + <0 0 0 3 &pcie_intc 3>, + <0 0 0 4 &pcie_intc 4>; + ranges = <0x02000000 0 0x60000000 0x60000000 0 0x10000000>; + pcie_intc: interrupt-controller { + interrupt-controller; + #address-cells = <0>; + #interrupt-cells = <1>; + }; + }; From patchwork Tue Nov 8 03:50:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Havalige, Thippeswamy" X-Patchwork-Id: 16852 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2465607wru; Mon, 7 Nov 2022 19:53:16 -0800 (PST) X-Google-Smtp-Source: AMsMyM5rIqafwJvZ8/Kcavqf5W+qxUf8vF5Nj8pBDtz+ch5h4MVXeG8Nbvm2hhDkB7DslEbcRudA X-Received: by 2002:a05:6402:3887:b0:458:289e:c9cc with SMTP id fd7-20020a056402388700b00458289ec9ccmr54301866edb.101.1667879596389; Mon, 07 Nov 2022 19:53:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1667879596; cv=pass; d=google.com; s=arc-20160816; b=BqZmL334pgt4yNckzZQNjdDLTcH0ztgYcu9ami+sjAMnx8lmY6r7xyKZtC2YBw/r3n W1vBSt2OEhXcGIiqGfAteRpwNaUIv6Wcl4MiswVJjTeTPMbqCqZpLnW3OTYqiEi1NhPE 5f2WxsdIY4nmvbzH0F6mQL69Sf3OJ01fDAKBE9NP1KbX/r7S/Al8d6mVFhNH3VvsV6zk FnkHY3DqC9YItNiFzUhUZPGr9KekKMJITpthP0kszQ1XfR4gczMl6hjFKC4h51c0rJg9 qX0OViuo1gRFd4PFLLGYcA5V7Nm6ROfgBgZjAGWMr+RpX77kx9p1zUoydSQUe50JazWi qtdQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=fjtaZ8SicXvP4R0Uekhw1C/mxNB6d/2bUzB+DvNKUKc=; b=vfEUpDTnZQavLBi37XbQcr5mp/aDX10cJDwpcpckmVviQ6z8POC4YCWsUrW7MJ2v5L 9S6GBCbe3JlI5cR1gqgLM0Wf7m8m3IobQj1dDxdAm/9pf6WVZgEJ/QwWaB2ggBKdautx pYi/bUkGe34l8WKXnTavhupMYQ3XmZ427L7AmgNGhvdEswu5yVnKxcf45gmiJt6Ep7uQ tV+DAX9a5nzpdyRRUiud0FOSmo2sfJn8rMONs2kdStpYbuQ8iyutXjd6EOYe+dRF/3eH vT84h4scrf0c91NAHXlqBagYQphVRZo/UJrLkYlMEImX4jf3XowjRzfxmTmiGDBRiQnf PVIg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=VmU6921M; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hr40-20020a1709073fa800b00781132a4ca6si13468813ejc.850.2022.11.07.19.52.52; Mon, 07 Nov 2022 19:53:16 -0800 (PST) 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; dkim=pass header.i=@amd.com header.s=selector1 header.b=VmU6921M; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233195AbiKHDvM (ORCPT + 99 others); Mon, 7 Nov 2022 22:51:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233067AbiKHDvG (ORCPT ); Mon, 7 Nov 2022 22:51:06 -0500 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2086.outbound.protection.outlook.com [40.107.223.86]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 191122D779; Mon, 7 Nov 2022 19:51:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bMZsGXGgC2gOnwdqutyawDGiOIEo181+JOC8xADgU/877lPa9uuBWA4jqfGXiVi0BRc5jMMi0I+LAuFY+X/Rk8AV82edQuUJ5m9os6qKOXMG9VhPrO2H7X9U2CfFQlhoO03m5UD7AHKBg1TYyWcp6kB5mVSQIAKI/+TjkxQwc6fgz/zAgMMBAHbB5aOc5CZfuntA2RgBvlkYrbNbe0HI9XlwLx0X+s6aLSuxGK0oIAX0CCabworraEeHotA/y3iGA3fjLbxwJ1yBbuUq9bJCTNGWRyI69WAmmaufJSvg3ri8nsENRB8IgNBAEMrO2P4ZmO0ByUBAuDwNIlZym3LUVw== 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=fjtaZ8SicXvP4R0Uekhw1C/mxNB6d/2bUzB+DvNKUKc=; b=CM7lD6wbrOjB+EmTJ1xp9aTIc5erV+qwtLatLm3/chAiajw9FTBNVXMtAJVOTALX1z7YmYQMjNB5CmDQ2pFY+9ndhOXWDeHySdkuGOURLM4wDoFQVBCumA7mLSjXVQ6R6TrF720LNTS4pVvUWWhGlpYUPaxmN7O0TP9En/30/M32S9sT6N1DqzNOJQQ8HQxTNOKhRrK8K3OU0BNygXuDZW7LXhciEUXIjXIOhTrSMoT1O6DgKSipmFISycs6+jDwbd7G+KnwhtJiT5FMrFobp6UiZUA6BMTpO0yGn3ni1b5TqzJBsg8vhVEKnBPq86amgJ5hEsCsDtnd1ki7ghRGlw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=vger.kernel.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fjtaZ8SicXvP4R0Uekhw1C/mxNB6d/2bUzB+DvNKUKc=; b=VmU6921MyiiWyXN9rPNP1ZwolHL6YjX0xRXkWFpmEn9XL9fpf1ILXxphLavN3mS5p+SySKryIXYsMcIAputETbrbTLkmglDdddnTNcii6vWkVZD3vELtK+YG3bS31zE/g4GFgRmcXCV4TyaSV7Ql+qhhkqTLj0ITM87ugnU3fO4= Received: from DS7PR05CA0081.namprd05.prod.outlook.com (2603:10b6:8:57::6) by SJ0PR12MB6734.namprd12.prod.outlook.com (2603:10b6:a03:478::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5791.22; Tue, 8 Nov 2022 03:51:02 +0000 Received: from DM6NAM11FT011.eop-nam11.prod.protection.outlook.com (2603:10b6:8:57:cafe::77) by DS7PR05CA0081.outlook.office365.com (2603:10b6:8:57::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5813.8 via Frontend Transport; Tue, 8 Nov 2022 03:51:02 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by DM6NAM11FT011.mail.protection.outlook.com (10.13.172.108) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5791.20 via Frontend Transport; Tue, 8 Nov 2022 03:51:02 +0000 Received: from SATLEXMB07.amd.com (10.181.41.45) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 7 Nov 2022 21:50:57 -0600 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB07.amd.com (10.181.41.45) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 7 Nov 2022 19:50:38 -0800 Received: from xhdarjunv40.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2375.31 via Frontend Transport; Mon, 7 Nov 2022 21:50:36 -0600 From: Thippeswamy Havalige To: , , , CC: , , , , , Thippeswamy Havalige Subject: [PATCH v5 2/2] dt-bindings: PCI: xilinx-nwl: Convert to YAML schemas of Xilinx NWL PCIe Root Port Bridge Date: Tue, 8 Nov 2022 09:20:30 +0530 Message-ID: <20221108035030.1040202-2-thippeswamy.havalige@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221108035030.1040202-1-thippeswamy.havalige@amd.com> References: <20221108035030.1040202-1-thippeswamy.havalige@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT011:EE_|SJ0PR12MB6734:EE_ X-MS-Office365-Filtering-Correlation-Id: b966b9e1-67ba-4970-3696-08dac13c74b9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rwdPDLWudjZqbAxckV7DaoKf1NuDQVStykovMNQ8KOoL2OkgBjR4cKPN+jmL/PVIuiGpXVtpUY+wswe0qwbAVDru/dXRtaNuZp2oQYtu3+27wc6xiLlE7W21SxpqW7xByJFsHTL0wkBIkrDRXioZTtCiR9rTLwD1Wug/+RW0O83A+eCKDIFc7jCovdNYfI41RlVlAkdmcPwf2jQaFAvhhUGQzPFef251ZvwZYQ1hCrdwDqcAQW6Gd60l188nIPRKZybycAX1KMATJmVKY+app8QB8HYJGw1uyrmlT3G6HL2voCKnnJILitGgXT8lnzuQZTBaUPXgiTlYi2QK+HZUpqgKYJl/C3qmxwFLpLB5+cn4mQ0TLif+DbunEfFusO++i3rtmd1ECH6rcKUMGaJw6QtZhzcrAD+t+0Km77KCdoL1kASB6LODD/ybttG6QzA0Y9HyAZTqEhuC5kJYRS1otmXTmsNdrjrwlIHwmPFBn4AYqSXug51cY8orFV9SxZPMknfqqMO0Xuu5cfFRbjg0D9KWoic/j3MbwlHNUcTSGSrTKG367cBt4QzesLZe8QMx6amP8Q376txma3os5HV/0eK8WnQr1v7o0x/KUoMhsnWvIbcz2CfaHM4Y++TK6JOYZoIqzKwRP5FJeQUlof0enNaBlV75+U5d1Zf4VaP+2Oj6aaZQSAFl6kyg3PP7G6Q1gBobHGs1pH7VZWWrt/0AWMUgWIgxSvXGUa4Ym+eGQKd0HccwjxkgGEt8dk6QqwAV3ZWDDZH4l/q4iTx/TO4/j5l7GVyFTlGVkgwd2TmiSc5LTNNnQIyvs30Bd8dSqMpJq/3gt38cfielwFnpzdxBExYka96NEGcWjuC5vYVaDkDjq6D9oM+sl/IS5y/nCa++ X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230022)(4636009)(376002)(39860400002)(396003)(346002)(136003)(451199015)(40470700004)(36840700001)(46966006)(5660300002)(41300700001)(336012)(186003)(26005)(83380400001)(1076003)(40460700003)(426003)(70586007)(70206006)(8676002)(36756003)(8936002)(4326008)(44832011)(54906003)(82310400005)(110136005)(316002)(36860700001)(2616005)(6666004)(86362001)(966005)(356005)(478600001)(40480700001)(81166007)(82740400003)(2906002)(47076005)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Nov 2022 03:51:02.5746 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b966b9e1-67ba-4970-3696-08dac13c74b9 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT011.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB6734 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS 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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748898515326295412?= X-GMAIL-MSGID: =?utf-8?q?1748898515326295412?= Convert to YAML schemas for Xilinx NWL PCIe Root Port Bridge dt binding. Signed-off-by: Thippeswamy Havalige --- Dropped minItems for interrupt-names property. --- .../bindings/pci/xilinx-nwl-pcie.txt | 73 --------- .../bindings/pci/xlnx,nwl-pcie.yaml | 148 ++++++++++++++++++ 2 files changed, 148 insertions(+), 73 deletions(-) delete mode 100644 Documentation/devicetree/bindings/pci/xilinx-nwl-pcie.txt create mode 100644 Documentation/devicetree/bindings/pci/xlnx,nwl-pcie.yaml diff --git a/Documentation/devicetree/bindings/pci/xilinx-nwl-pcie.txt b/Documentation/devicetree/bindings/pci/xilinx-nwl-pcie.txt deleted file mode 100644 index f56f8c58c5d9..000000000000 --- a/Documentation/devicetree/bindings/pci/xilinx-nwl-pcie.txt +++ /dev/null @@ -1,73 +0,0 @@ -* Xilinx NWL PCIe Root Port Bridge DT description - -Required properties: -- compatible: Should contain "xlnx,nwl-pcie-2.11" -- #address-cells: Address representation for root ports, set to <3> -- #size-cells: Size representation for root ports, set to <2> -- #interrupt-cells: specifies the number of cells needed to encode an - interrupt source. The value must be 1. -- reg: Should contain Bridge, PCIe Controller registers location, - configuration space, and length -- reg-names: Must include the following entries: - "breg": bridge registers - "pcireg": PCIe controller registers - "cfg": configuration space region -- device_type: must be "pci" -- interrupts: Should contain NWL PCIe interrupt -- interrupt-names: Must include the following entries: - "msi1, msi0": interrupt asserted when an MSI is received - "intx": interrupt asserted when a legacy interrupt is received - "misc": interrupt asserted when miscellaneous interrupt is received -- interrupt-map-mask and interrupt-map: standard PCI properties to define the - mapping of the PCI interface to interrupt numbers. -- ranges: ranges for the PCI memory regions (I/O space region is not - supported by hardware) - Please refer to the standard PCI bus binding document for a more - detailed explanation -- msi-controller: indicates that this is MSI controller node -- msi-parent: MSI parent of the root complex itself -- legacy-interrupt-controller: Interrupt controller device node for Legacy - interrupts - - interrupt-controller: identifies the node as an interrupt controller - - #interrupt-cells: should be set to 1 - - #address-cells: specifies the number of cells needed to encode an - address. The value must be 0. - -Optional properties: -- dma-coherent: present if DMA operations are coherent -- clocks: Input clock specifier. Refer to common clock bindings - -Example: -++++++++ - -nwl_pcie: pcie@fd0e0000 { - #address-cells = <3>; - #size-cells = <2>; - compatible = "xlnx,nwl-pcie-2.11"; - #interrupt-cells = <1>; - msi-controller; - device_type = "pci"; - interrupt-parent = <&gic>; - interrupts = <0 114 4>, <0 115 4>, <0 116 4>, <0 117 4>, <0 118 4>; - interrupt-names = "msi0", "msi1", "intx", "dummy", "misc"; - interrupt-map-mask = <0x0 0x0 0x0 0x7>; - interrupt-map = <0x0 0x0 0x0 0x1 &pcie_intc 0x1>, - <0x0 0x0 0x0 0x2 &pcie_intc 0x2>, - <0x0 0x0 0x0 0x3 &pcie_intc 0x3>, - <0x0 0x0 0x0 0x4 &pcie_intc 0x4>; - - msi-parent = <&nwl_pcie>; - reg = <0x0 0xfd0e0000 0x0 0x1000>, - <0x0 0xfd480000 0x0 0x1000>, - <0x80 0x00000000 0x0 0x1000000>; - reg-names = "breg", "pcireg", "cfg"; - ranges = <0x02000000 0x00000000 0xe0000000 0x00000000 0xe0000000 0x00000000 0x10000000 /* non-prefetchable memory */ - 0x43000000 0x00000006 0x00000000 0x00000006 0x00000000 0x00000002 0x00000000>;/* prefetchable memory */ - - pcie_intc: legacy-interrupt-controller { - interrupt-controller; - #address-cells = <0>; - #interrupt-cells = <1>; - }; - -}; diff --git a/Documentation/devicetree/bindings/pci/xlnx,nwl-pcie.yaml b/Documentation/devicetree/bindings/pci/xlnx,nwl-pcie.yaml new file mode 100644 index 000000000000..af20e02500f3 --- /dev/null +++ b/Documentation/devicetree/bindings/pci/xlnx,nwl-pcie.yaml @@ -0,0 +1,148 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pci/xlnx,nwl-pcie.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Xilinx NWL PCIe Root Port Bridge + +maintainers: + - Thippeswamy Havalige + +allOf: + - $ref: /schemas/pci/pci-bus.yaml# + - $ref: /schemas/interrupt-controller/msi-controller.yaml# + +properties: + compatible: + const: xlnx,nwl-pcie-2.11 + + reg: + items: + - description: PCIe bridge registers location. + - description: PCIe Controller registers location. + - description: PCIe Configuration space region. + + reg-names: + items: + - const: breg + - const: pcireg + - const: cfg + + interrupts: + items: + - description: interrupt asserted when miscellaneous interrupt is received + - description: unused interrupt(dummy) + - description: interrupt asserted when a legacy interrupt is received + - description: msi1 interrupt asserted when an MSI is received + - description: msi0 interrupt asserted when an MSI is received + + interrupt-names: + items: + - const: misc + - const: dummy + - const: intx + - const: msi1 + - const: msi0 + + interrupt-map-mask: + items: + - const: 0 + - const: 0 + - const: 0 + - const: 7 + + "#interrupt-cells": + const: 1 + + msi-parent: + description: MSI controller the device is capable of using. + + interrupt-map: + maxItems: 4 + + power-domains: + maxItems: 1 + + iommus: + maxItems: 1 + + dma-coherent: + description: Optional, present if DMA operations are coherent + + clocks: + description: Optional, input clock specifier. + + legacy-interrupt-controller: + description: Interrupt controller node for handling legacy PCI interrupts. + type: object + properties: + "#address-cells": + const: 0 + + "#interrupt-cells": + const: 1 + + "interrupt-controller": true + + required: + - "#address-cells" + - "#interrupt-cells" + - interrupt-controller + + additionalProperties: false + +required: + - compatible + - reg + - reg-names + - interrupts + - "#interrupt-cells" + - interrupt-map + - interrupt-map-mask + - msi-controller + - power-domains + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + soc { + #address-cells = <2>; + #size-cells = <2>; + nwl_pcie: pcie@fd0e0000 { + compatible = "xlnx,nwl-pcie-2.11"; + reg = <0x0 0xfd0e0000 0x0 0x1000>, + <0x0 0xfd480000 0x0 0x1000>, + <0x80 0x00000000 0x0 0x1000000>; + reg-names = "breg", "pcireg", "cfg"; + ranges = <0x02000000 0x0 0xe0000000 0x0 0xe0000000 0x0 0x10000000>, + <0x43000000 0x00000006 0x0 0x00000006 0x0 0x00000002 0x0>; + #address-cells = <3>; + #size-cells = <2>; + #interrupt-cells = <1>; + msi-controller; + device_type = "pci"; + interrupt-parent = <&gic>; + interrupts = , , + , , + ; + interrupt-names = "misc", "dummy", "intx", "msi1", "msi0"; + interrupt-map-mask = <0x0 0x0 0x0 0x7>; + interrupt-map = <0x0 0x0 0x0 0x1 &pcie_intc 0x1>, + <0x0 0x0 0x0 0x2 &pcie_intc 0x2>, + <0x0 0x0 0x0 0x3 &pcie_intc 0x3>, + <0x0 0x0 0x0 0x4 &pcie_intc 0x4>; + msi-parent = <&nwl_pcie>; + power-domains = <&zynqmp_firmware PD_PCIE>; + iommus = <&smmu 0x4d0>; + pcie_intc: legacy-interrupt-controller { + interrupt-controller; + #address-cells = <0>; + #interrupt-cells = <1>; + }; + }; + };