From patchwork Fri Nov 4 04:41:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Havalige, Thippeswamy" X-Patchwork-Id: 15324 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp170490wru; Thu, 3 Nov 2022 21:53:07 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4yWrVHsXRGM4il7CDvPZpPJT+fyEaQPhbmI4EfLPpYI0LfXLKV8l3nEf4tOxTurKpLihYH X-Received: by 2002:a17:907:3181:b0:787:d81c:a6ad with SMTP id xe1-20020a170907318100b00787d81ca6admr31780333ejb.769.1667537587505; Thu, 03 Nov 2022 21:53:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1667537587; cv=pass; d=google.com; s=arc-20160816; b=mpKXTVP9oK51aaLP3kyh9+xyeG3mTNZtlmiOwMY+dojU/18ZVgduRZ16bHgbT7KTMe ZX5pRRZW4t2eEVUq7HGTu52ShE8s10vq4fcqKlzSqwZL1rV3hCGM+4g535sMoLhagMk6 pixmjIgiRgb9l1g4xzQisenf+d+2tuV7kROkY+13CbDrrol0Dv031H+1/78Rg0wn8C97 c6JExBXrs1jgvVpRkFDceWtMDrVVtT5U1xo/VcfzQonrL/lWg8ImidolR6GPdPvASrUg y223ccZAz/hoFLv1uRUPnbmCBtc7N45Bwcj99lQqZSAboTkhatcUW7j/U1PrDnMvpFyb U/cQ== 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=sZNZY/iH+9fdeqCJDbAPtUEzGr5io8/3KkAWxZqzmWg=; b=zJ/+Q94nYZrZUxE/gtWav5B3Shpgen4MTZWscrZ+Y1+ROzJt62XJZoTlY4cMS53NnS 08/gYcSw1hOgkWmdElxitORuQ0+MU3rljeR+38gC2dVHIPi9CrUsO4iRsTibOYmZ/I1C kM/e7doniqtPkeKT6cDmO40NwNF9m3ptxdx2YW/kvSX8hS1BS0J2eIY+GvsnTflVMtPE mVpDu9IWN9Xk6BwXCh3YmUEjytrO2d9pirJsDbqyDlgOeSjHS/sBHi50/LKN5/LoBoSY X+vkHNkRFpJ8q2Q5UlcsZr/sVgFDMVOV+F9UfOfLKLrsrjmn1t7/i56RsCXenNDeFFvt uZow== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=AcNdLwRO; 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 ew9-20020a056402538900b00461540620f1si3458742edb.169.2022.11.03.21.52.29; Thu, 03 Nov 2022 21:53:07 -0700 (PDT) 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=AcNdLwRO; 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 S230099AbiKDEl4 (ORCPT + 99 others); Fri, 4 Nov 2022 00:41:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229547AbiKDElx (ORCPT ); Fri, 4 Nov 2022 00:41:53 -0400 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2043.outbound.protection.outlook.com [40.107.93.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A75027913; Thu, 3 Nov 2022 21:41:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Gn61fyyg5UwQfxDsXB1Vg5QfXKr0ydVi9CowCOY00dN/tDS4glSDsgjzBsPJxEiJWPY1m47VS9ewgPy8ZgEjbQVFfV/YeQAVd/vwZalT6Zfv3lhP8jn9gvQq8QZ+I9H5FMy4R5TX+1ZCKfEzNCf2YplkHCrmOxLKcjFiU30kjVYfWI0hGZ1WEjCfxLEnlNND/HiW+T4vD9nL6r7YzQcX3sD3va64SxH5+lMEov+IsPGKhenKldWKDtwSbVhhBWTOymKOhlvFhu0exieoO8MI9ZeZyEGI1BkkzhVZ8R5zddEW5fEwdKeoofePfZy/LdSxW5d1WntLy2qVmf0PuMTfWg== 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=sZNZY/iH+9fdeqCJDbAPtUEzGr5io8/3KkAWxZqzmWg=; b=QPe8NHhzThDYJD/wCoGb6U3WjlXXh9vNT6y9rm2/jRHNcePwtaEp0NrOBOg7+KnyDEo17RUi5SbtZdtZvdzWGUv8PHG3xLRI4P66de9pU1bk6+mwBJ7fm8Xb3VZ07PLq2Ef5BZ+msAGBHWKF4KdP8xHUWTcL4xWWIW5Lo/0LbiZfI8KzP/yuwQbwjJRapesY0E+9vgax3O43vSAqmGPqhL4eCi+IC9/CCRGDLwrhC6CL/SDhpM+g5Wt/aIPxcGxaMamAuX65KDewDZAZyfW1V0jw680lccGeiacABYUdRV3bm7jz+zAFN4VPTA4Lzkx03EW1Z+oP88pH83Avmpq3bw== 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=sZNZY/iH+9fdeqCJDbAPtUEzGr5io8/3KkAWxZqzmWg=; b=AcNdLwROdqPrjq5uR9xw4mb1ccRlEHAOypu6hTlhgsYHDYhIec+zyMhglkCKsKg3edh+mTiOaCNshxMLmpBcGz6LN7pSgq3Gad+Gs/yQwgm2DrQLh2368iNF23WLEDwiQu9lJucnex2X3XGSksILLs6gSkfxrRymnfOwH+W/LRQ= Received: from BN0PR04CA0010.namprd04.prod.outlook.com (2603:10b6:408:ee::15) by DS0PR12MB6630.namprd12.prod.outlook.com (2603:10b6:8:d2::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5791.20; Fri, 4 Nov 2022 04:41:50 +0000 Received: from BN8NAM11FT023.eop-nam11.prod.protection.outlook.com (2603:10b6:408:ee:cafe::fe) by BN0PR04CA0010.outlook.office365.com (2603:10b6:408:ee::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5791.22 via Frontend Transport; Fri, 4 Nov 2022 04:41:50 +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=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by BN8NAM11FT023.mail.protection.outlook.com (10.13.177.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5791.20 via Frontend Transport; Fri, 4 Nov 2022 04:41:49 +0000 Received: from SATLEXMB05.amd.com (10.181.40.146) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 3 Nov 2022 23:41:49 -0500 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB05.amd.com (10.181.40.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 3 Nov 2022 23:41:44 -0500 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; Thu, 3 Nov 2022 23:41:42 -0500 From: Thippeswamy Havalige To: , , , CC: , , , , , Thippeswamy Havalige Subject: [PATCH v3 1/2] dt-bindings: PCI: xilinx-pcie: Convert to YAML schemas of Xilinx AXI PCIe Root Port Bridge Date: Fri, 4 Nov 2022 10:11:34 +0530 Message-ID: <20221104044135.469797-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: BN8NAM11FT023:EE_|DS0PR12MB6630:EE_ X-MS-Office365-Filtering-Correlation-Id: 63bb2e48-a015-4c56-b08c-08dabe1ee366 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cLW6RV9akzNqglhtg/4DLovzRYxymjQ+nAiE+RDG/eWLfBEkFIMtU89enxEVY+yLygbXot7d0jaBfUxCo93d3lAqHopeGqfWzitu/QimOQXIpK/ITIkt3GrTEBz5W3LBSwaKNePiXiS4f2OrRiFqMGL4x6bbFJOm0P7YAAyHaorO43IoDnKiggrPPqf4ppRkBD4IjvdjT+u392m0CGtjQs1TYe25KJjpaPSddHkY52aErXpsa4jtCNzKLItAFR+cDZLu/dlpARZUnX6ivSYexIjanKOXsdu3yIUIgYtHW/15SOvADxeo6ODs9bX+XNN1XHToNg76/QP219xwlh+/tTKU+qVG+43ycHsQmXNPMGxn8pue6mccsAhxliH0ZDCjmZG/qjJ8680uf3iu98LDuFJ0sMP+rUlq5OIvM0uuHQVSLSs78qeAKbhZpJtSMqRoKebdZ+goqWZiPoCRXN0DAh8JRaGX8KKV/RGiemtDDFYnFUtWps4zdlz1YmFvRGCrVhSwQwjYH5VJxtyJ3tltMUcxMKxE/KW7Oq4/DCF2/NrpNZcnq7dpEb7YyeicQBuYh4Esjn0+a1QN9x8k1aHcZoXNU4xY8vHJ58xUrzXpQWLInS1b2jdIXlZjw73UbO+Uzmzx19NpJg48d/vgavbOAeagYGGIltpiiEKyynm7JFvz30F4O68lVXqFycaqTsjmKe29qTxlRZ4Bd4U65b2qmzrHdej8QHzpTiu4+c1MrRlE49FIxz3xI9oeskyW730UlikZ+VxURlTa4ahJ/eUKzKcuWRVcAdqDgg/eZY40+Jcv6+ESEY+LF7HpS545dE5YMAgtIOX7n7kbm4Wk5IU8svfDc96ZkCMf1LGGNM/1FeTpNXPTE/OO5scq4Q0UUqkR X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB03.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230022)(4636009)(136003)(39860400002)(396003)(376002)(346002)(451199015)(46966006)(40470700004)(36840700001)(40480700001)(186003)(478600001)(336012)(5660300002)(2906002)(426003)(47076005)(1076003)(8936002)(83380400001)(316002)(82310400005)(2616005)(110136005)(70206006)(6666004)(44832011)(8676002)(81166007)(70586007)(40460700003)(4326008)(54906003)(36756003)(356005)(36860700001)(86362001)(82740400003)(966005)(41300700001)(26005)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Nov 2022 04:41:49.9331 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 63bb2e48-a015-4c56-b08c-08dabe1ee366 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=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT023.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB6630 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?1748539893412193997?= X-GMAIL-MSGID: =?utf-8?q?1748539893412193997?= Convert to YAML dtschemas of Xilinx AXI PCIe Root Port Bridge dt binding. Signed-off-by: Thippeswamy Havalige --- .../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..cfe2b04d148b --- /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 = < GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH >; + 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 Fri Nov 4 04:41:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Havalige, Thippeswamy" X-Patchwork-Id: 15325 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp170510wru; Thu, 3 Nov 2022 21:53:10 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4f+cgyCcYhIeT/UEJbRX2YGvwlYvSxyHd1gkYd4Q1LI7b6bhob6KDK2bINrRApGaF2NF4y X-Received: by 2002:a17:902:ef4d:b0:181:98d1:69c0 with SMTP id e13-20020a170902ef4d00b0018198d169c0mr34271331plx.45.1667537590223; Thu, 03 Nov 2022 21:53:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1667537590; cv=pass; d=google.com; s=arc-20160816; b=sSnkaN5EZ+zrJlGFQn8DKdusqGetkhXHumWUBIjZ08HNSxf1YM70PQhG30QcVmzOD4 7MHaNG/AQI9xezMiiMstFjgUEdscoxYU9ga0QVwdBw/DZIrVmugIsOPQLfzvWTsNclTH kWg9+DQ5qfzyHmJ+noHgOdeDgVR5yRyVkxfuVjskihvXn4ybYTZQIBlT72vfUuFpOWid be6evEQ+8i75UYL++TsGR9d0JY57fsxl+487IYWP8GVA1KpoaIcDu3cUQCFHnZGaaBZg ub2r1QSTDfKwO6uDf0YxYA3GiTWysUgkOJ3U6cBulByeWXI9BaxYwwVDxD5EtT2bCguu XHgw== 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=WPf5slXD/0A/lzoCCQmUrBL/5eUL8LwhIv0isd3h2XY=; b=v9DhOlsTxnmvS3fR9jvOGOPzLtBid7QxBNXeUF7Qv0N35Nc6u7Eif++VKyuFNHB1oa bsYDx9M8G9KUY0RTXvXHXk6eoMyS2FzDOyHH5hpWI0MgilM5AhXpsz82Yp2dxgDV6pUA yBT+rtsF9SjqQTJxlCn11emwwk2PJ3zyjpc+r1MxZF/XUn8H7jq7QDJAhwtZtIa4tHoJ wlzTxUhhj4zN/eGMm+MwNqueKtmyYyxOvlr65+xUs84Bc7SSGjc6+VW3VxQ59+UWv+sW FpL7wyHSdezb3FF0nXtXk2kgS/bBhjVufl9tpTtExg354ttbqEe60lATsVgTkR5z2UEJ XZZg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=RWuOI33P; 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 v25-20020a637a19000000b0046265702353si3412609pgc.203.2022.11.03.21.52.56; Thu, 03 Nov 2022 21:53:10 -0700 (PDT) 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=RWuOI33P; 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 S230504AbiKDEmJ (ORCPT + 99 others); Fri, 4 Nov 2022 00:42:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230460AbiKDEl7 (ORCPT ); Fri, 4 Nov 2022 00:41:59 -0400 Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2059.outbound.protection.outlook.com [40.107.101.59]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4336C27B3F; Thu, 3 Nov 2022 21:41:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WqlpDlNwxCAFIfPttwdDECu35/sXhWQas7SQfgqS/KOqNg5ndFsd4717Ujwe00cDNQDitSwagw+Gk7sb/AUuptU8xXRMDgxrcu9GMAvjuV3yR5I64co9wBB1H5ngPTPQV0KISiHh5gt90R56ZTnHfVyf29khmpcM0Wt3fwHgBHUWx5/mffF/F17Z+tJuk3Bgup/YQAVQkbeBtQXS1nKUkzHtU2J/kFpp8PX5QGG+VgHQdLW9lqQL9Te507nqDl+j+5lbi+bCGRT7ayb4J1b6Bgwo0HzEOuwqo/99DPdLsnQIb0NNLRFMfOHutPTJo8OLWPP+lyZmVklxsnWjMDZs2A== 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=WPf5slXD/0A/lzoCCQmUrBL/5eUL8LwhIv0isd3h2XY=; b=Gb9XvMoxo69WdqcQUSrME0jWCFEAyKmiUhUAlMNVIC5hz4t8QNS5o0wTe0I8hjwTdFRtiqwBpgJt5aIJjXFDRZYtqGdPYfiyUO97tM9fZi37Z8ezNX0RDqSRTBrv6armtkTMPv4aKIUa55MBOkgjjvsFRf3raaLxOb3tcDQt+5SrOkekkURJXH93Qlcz06yJTPYiQlRTZOPbp2BEEc4bed87x1N10v5cc4Hnwi6UuPNIVdlJKhYJ80RWEiu/2fFR6zPAodlVRQ5j8rOhPnKyPX+M3Awqfn8sMnc61HZmrAV0XWEHVnciU0+wHc9aKldZUwmdXUhah/dutEPESJaSzg== 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=WPf5slXD/0A/lzoCCQmUrBL/5eUL8LwhIv0isd3h2XY=; b=RWuOI33P2wQXByK19xsWpoO9q7Vu4UTJoeLq21ZPI6d87udTcznAqIXqGS1OaVzbhOaOSZXxfCz6WoAI3DxD6MEwqhsU6YZ6l84q8k2VZGGQ43ZJVG0k0N+k/pxgijzAnYhgH3ul6J7Shpdxrsk8sL246rsmZoxwnQaW0/5XQCo= Received: from BN0PR04CA0006.namprd04.prod.outlook.com (2603:10b6:408:ee::11) by SA0PR12MB4431.namprd12.prod.outlook.com (2603:10b6:806:95::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5791.22; Fri, 4 Nov 2022 04:41:51 +0000 Received: from BN8NAM11FT023.eop-nam11.prod.protection.outlook.com (2603:10b6:408:ee:cafe::cc) by BN0PR04CA0006.outlook.office365.com (2603:10b6:408:ee::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5791.22 via Frontend Transport; Fri, 4 Nov 2022 04:41:51 +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=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by BN8NAM11FT023.mail.protection.outlook.com (10.13.177.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5791.20 via Frontend Transport; Fri, 4 Nov 2022 04:41:50 +0000 Received: from SATLEXMB07.amd.com (10.181.41.45) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 3 Nov 2022 23:41:49 -0500 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; Thu, 3 Nov 2022 21:41:48 -0700 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; Thu, 3 Nov 2022 23:41:45 -0500 From: Thippeswamy Havalige To: , , , CC: , , , , , Thippeswamy Havalige Subject: [PATCH v3 2/2] dt-bindings: PCI: xilinx-nwl: Convert to YAML schemas of Xilinx NWL PCIe Root Port Bridge Date: Fri, 4 Nov 2022 10:11:35 +0530 Message-ID: <20221104044135.469797-2-thippeswamy.havalige@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221104044135.469797-1-thippeswamy.havalige@amd.com> References: <20221104044135.469797-1-thippeswamy.havalige@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT023:EE_|SA0PR12MB4431:EE_ X-MS-Office365-Filtering-Correlation-Id: 19a5cf3b-fa8d-4553-6b32-08dabe1ee406 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: aMPBqAF6rP/Xa0xh5vym4xyAVqsf+Y298kB7GQOEg/mDKQ7esQ9Kgxnj3+V16499pBaV5eyj0cWvaqxxCXIJADp75KeqGcOgzNb5S9HeXu/477O9IsBlZpm6QPpXJsWjhi9vFJfafqg0Ha5sNCOnYL/T+sVnlmomtyZUFqVxK2QxZiphfoixD1nVbZ9W0D1BNxHWL54z3YIZT43B+ibL9XvM/p8TeM8b8IqFNH5QzAKZGfdaSxocCJqVJQGpF8ZTtavvJYjGwxQZPqhPKtl7R0FznSgaupaFDscrRPB4e8JvMsMVqJwzEGNEwfp1Zzk3sQQVd6ElRmmXccMulHDyrjzmOMUzcobzHgOrTemq4tqLF9vkWncu1HbdizTePNEWOWO9Brovw+0MjUsAII/M+lU24FkzaJ7KIqIZxVCRrIN5IDRJKbAWyRzWadDmZIHRRLDhaN6YdE9Etckw33fmfEituSLJkOUrrbhCuFVX6vHpvvgEgQTtQ4/PnRKFA1rjmVd15qeG6eo3bOie8QMBLtPDsyVNzmjM2dCzOurz6SUiOMOEmUbs7BY0XWXyVNyI2bgLP5TTJmleWwxRIpnic1gZgCpao0xdIEEi3VBvJso7qwShy0vw82wedyIJeOXjUCxog3vX9+pnly3FUhGRceMpqX5EwRPzJ/vy0TbkZTET++yBnuNZkwTuA4Lj2SIL4APn1fBuVgc0yEGS6+YV7JcpzflNHRQga734ycw3WM8bTNqDtQpQANwvBVSxa+fplPBnwdG3rT+p0xxWZyjGDDh4MWqgeeUnNsNccFGSUvrdBizxHZu3bLhoRBRE/G5n9wSvkPhI4oMWKRaljuWR8kVMcfqd/58XAg9bpDNhlPEp8P8fUfFb52pozQnH8LaB X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB03.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230022)(4636009)(346002)(376002)(136003)(39860400002)(396003)(451199015)(36840700001)(40470700004)(46966006)(478600001)(966005)(86362001)(82310400005)(40480700001)(356005)(81166007)(54906003)(110136005)(6666004)(316002)(83380400001)(36756003)(70206006)(70586007)(1076003)(186003)(8676002)(4326008)(426003)(47076005)(2906002)(336012)(41300700001)(40460700003)(2616005)(36860700001)(5660300002)(82740400003)(44832011)(8936002)(26005)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Nov 2022 04:41:50.9799 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 19a5cf3b-fa8d-4553-6b32-08dabe1ee406 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=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT023.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR12MB4431 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?1748539896104715395?= X-GMAIL-MSGID: =?utf-8?q?1748539896104715395?= Convert to YAML schemas for Xilinx NWL PCIe Root Port Bridge dt binding. Signed-off-by: Thippeswamy Havalige --- .../bindings/pci/xilinx-nwl-pcie.txt | 73 --------- .../bindings/pci/xlnx,nwl-pcie.yaml | 152 ++++++++++++++++++ 2 files changed, 152 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..e3484cc704e5 --- /dev/null +++ b/Documentation/devicetree/bindings/pci/xlnx,nwl-pcie.yaml @@ -0,0 +1,152 @@ +# 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: msi0 interrupt asserted when an MSI is received + - description: msi1 interrupt asserted when an MSI is received + - description: interrupt asserted when a legacy interrupt is received + - description: unused interrupt(dummy) + - description: interrupt asserted when miscellaneous interrupt 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-controller: + description: Identifies the node as an MSI controller. + + 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. Refer to common clock bindings + + 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>; + }; + }; + };