From patchwork Mon Nov 7 09:54:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Havalige, Thippeswamy" X-Patchwork-Id: 16353 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1958808wru; Mon, 7 Nov 2022 02:14:28 -0800 (PST) X-Google-Smtp-Source: AMsMyM6loaE/ddNSFZ7KRkMD4nzG8HBUGGvjRs5Ew7TPyWBXhG6F1YtIw+LzWJaS45mavun/BFfH X-Received: by 2002:a17:907:3e14:b0:7ae:4066:a0f2 with SMTP id hp20-20020a1709073e1400b007ae4066a0f2mr13916204ejc.446.1667816067859; Mon, 07 Nov 2022 02:14:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1667816067; cv=pass; d=google.com; s=arc-20160816; b=D/HpRBC6B7sWjh7WVDAaT02as10DwqLzbjpa84k23mWMtIbT+LmijJ6sDeJ3TBC0Pg is8mViARLQGWCiwnGMzbIzlEBzmynjNkEX3OHcZr3QXVNA5f6ug7lDG5oeppDL6zoV3g Bhq7IrEg7TANKWl8d6iyguy0wq9q+xG+4GsXTDyTHFq88whPeiZKO5QtVIz7qhRbsJtT w0DyR5dD0YUh502H6h2Y6M26YE9ZwNCRSVh7dPzLIZBD6GzISmHXOCL2u3GdpfQIQLVh u/L1KECbN78dTqmYWufQn0s9yoz5yAjEsrWiSgthPSeGYQrFVcjpC0z01cB5OGUL1sCE gg9g== 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=HDKJA7zAsGFlGzz/dqLsc0TJ44lqo0ytS3dblT7cNNs=; b=MZsItvapbs/EGUGubuwjJmTELf4iX3fdaUOoh/XaQMMNjClexRbLXHDSFAez9ilGLG Zdfsq+211cLpdyw2ldk8JMa9pV/FTg3nqpeAbjulIXcAQHWqRkGLwy5eGOQSde+YvLyZ 8ZE/rcalEwlvSL55d4+V6Y0OQigDGZLsOLIqsmQ/F5qHk3zOGboS1My+CvWKUHa05E1C SrQujYiLuJR/I5Pv2my47GotFnwSWaSxyXwnRw6qaIItThj/2MwiKv6d4OZVsfGNsuK4 EvrYwmiPufd/ss9TrPXTezQgpUGfhpSRhRxaCLWk5/reMl1vSk6ABhz33E1anO5JM8fz LVPw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=v5UE5hFv; 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 t8-20020a056402524800b00461d726439asi10433124edd.538.2022.11.07.02.14.03; Mon, 07 Nov 2022 02:14:27 -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=v5UE5hFv; 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 S231605AbiKGJzP (ORCPT + 99 others); Mon, 7 Nov 2022 04:55:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231375AbiKGJzM (ORCPT ); Mon, 7 Nov 2022 04:55:12 -0500 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2047.outbound.protection.outlook.com [40.107.92.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 050CD2D2; Mon, 7 Nov 2022 01:55:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=g3MwMJsGag+7DzH5BBNXaYFqL/T1H0D+QYFsn8a4OzeLJLzvwJlBBqmGBz13fReOED8Wu/Bo6zPYaKwhzMWtugSbijzSbyoNxhXlyqgPMyQIUUecL44b1rHQHFcJ95a+fEhTyki5fG6oXYbbbFLOfiZiQRwykC6grIt/vPY5b5WJlQGRYN5jTmNu457766A2WcIw7nzraJOdPijEiCeMIOVulPRmDN+dX/8OtrO8tLermwLcTnw+uyWfj1K9QyCoZZ9BQ/AMmQPag7Ua396nul6XjoGSEAjD9q2pD2Gk2wipXM6SnuSYemqHqkH0q2/C5MqHda2jPOI4m+EyiY4BmA== 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=HDKJA7zAsGFlGzz/dqLsc0TJ44lqo0ytS3dblT7cNNs=; b=aemWRFL9qJbXfIuyMWlgKPWYCkiGMFrwU0xaxTFEhvdlR7UNgHMtBSqJer+WmZKssmQ2YZjvGdlmTxgM6IBPYtsBaTfGRnn+Il/5DbX8kgr//fxWrinYi8ZSjMMzVyE9PVtU6wObbAeM3HksV9KPG3YC6gPwuQk3AQ5KqfJxWgQxUrhhy5eBiywHO+3behH7RFCI3vCfGol8AUYbcO9IBLzZn2vUu7E4g08o4Q8kVUj5ptqJfEqtuIFPyb1SZ4skcZa1+42HCwlzGosrhf5gVGJxh1KJ5i/DhQhZvy+FBqR+irnYLHUb2Ib6O7o9m9gJOxXLOwC2uTpUcBEZ1q8H8w== 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=HDKJA7zAsGFlGzz/dqLsc0TJ44lqo0ytS3dblT7cNNs=; b=v5UE5hFviwex4wnMVJTvAZxaTfKLe6Ra7Nk1ZgP5+grvX68Y74ZEfhEy5mOFTafgvVumzqE4z3kTEcVkRKwzWa40j4Hoko0Bl1bpPCDCbvvk5srekDyZf/YAbNBxDEcUUm6MtzcPz1HlZPA3HLf92pSy16dOaZ/zlGU3fzzpI/M= Received: from DS7PR03CA0116.namprd03.prod.outlook.com (2603:10b6:5:3b7::31) by PH8PR12MB7446.namprd12.prod.outlook.com (2603:10b6:510:216::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5791.22; Mon, 7 Nov 2022 09:55:08 +0000 Received: from DM6NAM11FT077.eop-nam11.prod.protection.outlook.com (2603:10b6:5:3b7:cafe::a2) by DS7PR03CA0116.outlook.office365.com (2603:10b6:5:3b7::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5791.26 via Frontend Transport; Mon, 7 Nov 2022 09:55:08 +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 DM6NAM11FT077.mail.protection.outlook.com (10.13.173.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5791.20 via Frontend Transport; Mon, 7 Nov 2022 09:55:08 +0000 Received: from SATLEXMB04.amd.com (10.181.40.145) 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 03:55:07 -0600 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 03:54:29 -0600 From: Thippeswamy Havalige To: , , , CC: , , , , , "Thippeswamy Havalige" Subject: [PATCH v4 1/2] dt-bindings: PCI: xilinx-pcie: Convert to YAML schemas of Xilinx AXI PCIe Root Port Bridge Date: Mon, 7 Nov 2022 15:24:07 +0530 Message-ID: <20221107095408.924778-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: DM6NAM11FT077:EE_|PH8PR12MB7446:EE_ X-MS-Office365-Filtering-Correlation-Id: 4b32906f-cdf8-4871-34da-08dac0a62761 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cRd3ftcNUMTeC2iop3Or40VUEOV/CNdg4wqTTckqWb7T3l1vQ85FcGM+UBGMTj8FFFTN2kZWVRrhbuRbtVeAElgbnLrJUfhLut6sZkWT2VRLS2q28XpZFHYp01URxSPTY1T8BxSkIoxUDQi+gFUxa++ysoHW9aY9f2BpRklvbe104NntP7HdJPkKOzc3CEjkL5Lvgcxy1sIK0ZeY7JMawObucxqusitCZqwl4TXng3C5ZzDTGfMcmHPkRBkRGAnCnPHwCk2/XiJx4s2t/nDriu4YT0mqF0w25WKMd5ujTAlutNj+bNr7FEPIn4uy6fSbrS/ngC/6zrZEquazvq0Lqbjn/txv/JqM6wJy/0iutpoI5ExMMiybEzE3u0aVjpjNNZAshKWN1FFbXbr2IclWepSXe0nmqRocGkz1XFkjp7UU5sgGyCcfNExlAzIVJFRY9aAWfl9JUELQDG/HvqHNSgnnoAjT/AIyuQVlo/ve/HSa2fT9miy4dZsmn5udwlgFf+3Yg2VW+EfzxSf3ugD0T7JT/tHXjucidj5znR1e8xqtxGYsB10ZkW71GXP601taDswqPkHlIOW8mQFVSN6kQvFqzYj8inkKR+awqOZyAJ2e44FUW179bGz34TI34hax2gxjTzJkJ1NzJcqrvWJgcKQgD+FOy3tHh6sQyxewEnJtmZEGuYduQcb4JFdp6WIQJTAhkQBmvarwR75NIMI1rSF54lK9tpigonspdKx7ahnld6oSfiW/1FLZA+WPF5asT6P0JNOhcu1w5FHgzOExRpdClza+t5HB8E9a4FJ5Ay78XT0o/i70dBIBGCyD9/FxPN+ExYO6nEztw21ck1bA4XcMgxUyZn5vqtW6hdOzXOfMuQ3GlUZy2e/NMvTcigKY 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)(346002)(39860400002)(136003)(396003)(451199015)(36840700001)(46966006)(40470700004)(36756003)(44832011)(82310400005)(2906002)(81166007)(966005)(70206006)(356005)(70586007)(4326008)(83380400001)(41300700001)(478600001)(54906003)(40480700001)(316002)(5660300002)(426003)(26005)(8936002)(186003)(336012)(1076003)(47076005)(2616005)(8676002)(40460700003)(110136005)(36860700001)(86362001)(6666004)(82740400003)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Nov 2022 09:55:08.3351 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4b32906f-cdf8-4871-34da-08dac0a62761 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: DM6NAM11FT077.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR12MB7446 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?1748831901221153143?= X-GMAIL-MSGID: =?utf-8?q?1748831901221153143?= Convert to YAML dtschemas of Xilinx AXI PCIe Root Port Bridge dt binding. Signed-off-by: Thippeswamy Havalige Reviewed-by: Krzysztof Kozlowski --- Changes in v4: Modified to same style of quotes as in other places. Removed spaces between <> of reg, ranges, interrupts properties. --- .../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 Mon Nov 7 09:54:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Havalige, Thippeswamy" X-Patchwork-Id: 16354 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1959736wru; Mon, 7 Nov 2022 02:16:12 -0800 (PST) X-Google-Smtp-Source: AMsMyM4gEM+C3gZL3iCJ3/xp9X6gnGi28+Mf5rNfu797ZMiFRQ2owcGO5PTeyXKlyElLYcgxy7tO X-Received: by 2002:a05:6402:27cf:b0:462:75b3:a277 with SMTP id c15-20020a05640227cf00b0046275b3a277mr51685849ede.175.1667816172169; Mon, 07 Nov 2022 02:16:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1667816172; cv=pass; d=google.com; s=arc-20160816; b=fmAN+YBX1VZxFqo88KjeDHrgxBFWifNV+dtvDa0ndTcRxXY56q/usxeGzGBQ0HOnEr sDDT/RfWSayiuz8aAZ8yyRgBh3gMDUSjvUbPtQZ8SiQYzDqnZQEiLVmhj15epqT0Ddcj bMUDRgNfoLf7NosATpU7RcgQg8iVhxtRNs5O0KVh8Mi5ihoq3VdpNA7X8IkYzGFvc2Lx oqIWzdDs5Urmy7ChJSFinzTnOwAZiDbXttwMjrpDGJ/ss0yod+vP/wtc7JubZac7mTo0 7Nk2JVdYzxWEBu19H/rGGFsph3Jc5bbapFXTs27mrxHdgFeppOKcxZ9HuucZGvd6t56o yttA== 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=HzA6/QRpm+MQjDQwJjy2BMQTp8YunuxP9G88Kxzgpgs=; b=vMonHaLZd73HvCIvH8KD/jMcCK5rzFlNb4m5JmJlVF19+pLFATJ8Tg7v2lIk8TIpZx yRQxFyHFx1dL7/oSY32dibLfBZZ6hn5/3cDvxD7lJKmRV/G0fcTkUOc9OJ6t2qWGe6xd ZvNxt4IhQCofFdlmdqo5JDCBSEVrOd8fxMe4l7jZ2qdjGCk3HWHDEm+489Dvu5nQsc4L mEOPTD54blyLVwwofPlrcFeZGx1+g5s/EQ0rwkikFuhZqLXGx0oVJcMYVuwAuUz0qFHm 2sbti6o0HsY28wHvkg6JGEs54UtlSSPm9ICOVsDiDgKsARs75qNclpiu2sCOTRl+VF+o hnCw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=eFZ3hWDt; 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 t8-20020a056402524800b00461d726439asi10433124edd.538.2022.11.07.02.15.41; Mon, 07 Nov 2022 02:16:12 -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=eFZ3hWDt; 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 S231773AbiKGJ4C (ORCPT + 99 others); Mon, 7 Nov 2022 04:56:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231149AbiKGJz7 (ORCPT ); Mon, 7 Nov 2022 04:55:59 -0500 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2078.outbound.protection.outlook.com [40.107.100.78]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22EE925C2; Mon, 7 Nov 2022 01:55:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RV2K73V+OagVuRPVWVhlnDUVk8v1Zs24LMWt4NrwcDdptD5o/EPHDOnzV15Shb5bkuUoimVyqBvbTaVd5BYWhsOntwwK9umrAMMuOZZbiCX0jYGZR/sGC0qN9F7bzomqCWEJjn6dPqWvz3CNwUVbyxNMBOhGvqNI2V7l0W61CmSq9SRPuz7b1bLGqD+KBVYlo5FMIEHIc8wZY21jZkuqPtG6ocbYBoO/wsRtz8jlbb+4oA4VWjCQTFUdir9T2SWavv0tRy59JbmOaEp0mSwPx/eG/bmAdTT93IIrZJ4ihXGPbkARAD7/SgyWeeShq+dHkCIqLU+3BCUfOXMA21EsVA== 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=HzA6/QRpm+MQjDQwJjy2BMQTp8YunuxP9G88Kxzgpgs=; b=dIxrpdfkJxEML3w/yKfoBI/xKgIwdPGeLpmWW0OcZ0XXPHmE9q/MN0qvc7Yg0POFlP7d/x9e1XMuynlR13F6eHrpsxk5X/BlFMt475u4ky30z1q3DaisAcNBLcwC/oRoJatRC9+qPuGHp/k086WZFwkAwNWsI6p2aUEuF7uI5UArhK67e49hN9y6iy/Q97jDKrGCiyaTGmR/qeFFaLpfGwA3L7td6b8yISRliye61zzGbF9CRHjFONJQiVSIsKio2ZUstPrtmRG7utiYPoGbA+RwEEyjg1YvwWdjTAmzs0wdcVP8AthWTTLKxzKgvklwr6iLfxLOub8w7u6w0nsAwg== 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=HzA6/QRpm+MQjDQwJjy2BMQTp8YunuxP9G88Kxzgpgs=; b=eFZ3hWDt/bZ2fLeFF39AgPBue1zb5BRvWH6Ybcq1EJnUOM9bjQlEmj0LtJiXTj8zWGN6wnJcoyXJKv+yxx9x6sDjCX8I1+yfvDd1AAbq1tHTpQjqZ4a4QZt+6T9eI2eKtzEUYjYlR348tc8CDdcESk1A3DJ+/XKyaCR8cEmhMW4= Received: from DS7PR03CA0347.namprd03.prod.outlook.com (2603:10b6:8:55::6) by BL1PR12MB5174.namprd12.prod.outlook.com (2603:10b6:208:31c::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5791.25; Mon, 7 Nov 2022 09:55:54 +0000 Received: from DM6NAM11FT030.eop-nam11.prod.protection.outlook.com (2603:10b6:8:55:cafe::ad) by DS7PR03CA0347.outlook.office365.com (2603:10b6:8:55::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5791.25 via Frontend Transport; Mon, 7 Nov 2022 09:55:54 +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 DM6NAM11FT030.mail.protection.outlook.com (10.13.172.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5791.20 via Frontend Transport; Mon, 7 Nov 2022 09:55:54 +0000 Received: from SATLEXMB04.amd.com (10.181.40.145) 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 03:55:51 -0600 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 03:55:08 -0600 From: Thippeswamy Havalige To: , , , CC: , , , , , "Thippeswamy Havalige" Subject: [PATCH v4 2/2] dt-bindings: PCI: xilinx-nwl: Convert to YAML schemas of Xilinx NWL PCIe Root Port Bridge Date: Mon, 7 Nov 2022 15:24:08 +0530 Message-ID: <20221107095408.924778-2-thippeswamy.havalige@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221107095408.924778-1-thippeswamy.havalige@amd.com> References: <20221107095408.924778-1-thippeswamy.havalige@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT030:EE_|BL1PR12MB5174:EE_ X-MS-Office365-Filtering-Correlation-Id: a2c0bfda-1604-48ce-5402-08dac0a642c8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: d9lQXx6mVhY3UqII9PJe5HRN+wrDT26YlYs1eRmgGfbxVwVCnSlR0jNm8WG+x5BmbLlmo4sF7+i3Xu2eD+fX6MLiyUhTwGCPP9fTk2UcOMU8CPiBiVilqTcvAqk+nlNELXV/chwmhhv8tJTKmaNn/pbKqJnTSH7Cm5JdXdNpDM6JnJeqbuoN0vQ3gJpuw9Jinp5gTR7OylCpfacxcZ3gIQ0+fwsJ6JTggs8EGHZStCUcALaHOIewcafXB/mqWA4msodfWn0iqcBCHKeARloZz0TTfAhL1zDdoOTiHziVoWQsbKVABjuKNrXIfRvi/05Ecd1SMV3Ml0IjSmCTprhoN61rWMjJ1LZO4e4l2zjff7GmTmTD96Eej79dI1dStk416cNrsW3uJkCYg2NMM/aBzxrC3gAD/ApE8WSILN/ASQCHWQWqiRrcbN2IvGzq0GAdYK8wmTWgsX+JEVP8d9dM1EzFKS7ZHnvLpZJFbDMW9XBolqQLz4iEC+POuffaqSoqvS9AlO7H5iwfTNXYUEzpEv9RXyAi6RLYce8CH6ua+5iSEM6+2+HR8s7m7rgKGg+YUqYHXDggDazTI2h92FYgoWKj78CpVWG+dIawM6Z+v/3GZNM5okEdWvLvDdtPwA2g0SUd2wA9N/3Tgxf68Ew4hCI1EHoRPORvAtzgig6uw2WPb6Ms+ItocPGhxHFEk5WlqIubUUi6ZQWb+soElXQBES1PpxxgX++EI+TdOKX8FutNm20YHL5BnWWc/AVzV0Yb+xl5bM6tQ3WHQtByphN9mIdXEXBNzbrq0DLZnpPz21wcxpRw/AgsOUZnOAr8UXLYeRuQa7uG5f9UVfJCNNWpwyJ2LsstN+iuNcrItgXhPsEp58NXUqcV3bVaqWhy+d6k 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)(136003)(396003)(376002)(346002)(39860400002)(451199015)(40470700004)(36840700001)(46966006)(82310400005)(36756003)(82740400003)(2906002)(41300700001)(5660300002)(8936002)(4326008)(70206006)(54906003)(70586007)(36860700001)(8676002)(966005)(44832011)(316002)(110136005)(40480700001)(356005)(81166007)(86362001)(40460700003)(83380400001)(2616005)(336012)(26005)(186003)(1076003)(478600001)(47076005)(426003)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Nov 2022 09:55:54.3094 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a2c0bfda-1604-48ce-5402-08dac0a642c8 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: DM6NAM11FT030.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR12MB5174 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?1748832010806964548?= X-GMAIL-MSGID: =?utf-8?q?1748832010806964548?= Convert to YAML schemas for Xilinx NWL PCIe Root Port Bridge dt binding. Signed-off-by: Thippeswamy Havalige --- Changes in v4: Dropped, msi-controller property as it comes from msi schema. Rearranged interrupts description as per example. Used same style of quotes. --- .../bindings/pci/xilinx-nwl-pcie.txt | 73 --------- .../bindings/pci/xlnx,nwl-pcie.yaml | 149 ++++++++++++++++++ 2 files changed, 149 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..35c2d9fb3b9b --- /dev/null +++ b/Documentation/devicetree/bindings/pci/xlnx,nwl-pcie.yaml @@ -0,0 +1,149 @@ +# 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: + minItems: 4 + 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>; + }; + }; + };