Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp669094ybj; Thu, 7 May 2020 05:01:49 -0700 (PDT) X-Google-Smtp-Source: APiQypJ4bMNHDRTQPQxA7aMbN4oal9sDMaI32A/IwHNSjNEAXRZiedYjztl9LVcdpuwTtpLYWBe9 X-Received: by 2002:adf:efd0:: with SMTP id i16mr14574539wrp.315.1588852909245; Thu, 07 May 2020 05:01:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1588852909; cv=pass; d=google.com; s=arc-20160816; b=P5ZdIGduZ+tisD8QI75Vzp725/pxOB7da8qEFtxRbIkIWbKvIurter2xrzzUbuf8vv 2HnodfWFtYsfB4qEbF3elYeKvUNOvbQILsVqTReEPid2npw/F2wOdhnIkl2p+7yzf0B1 qKsUdDB3h04XNqPxDZZB9lGNvys8fhoGA4ul/b0fMkLJa1++GAY0sXhgdhCPIsdvHwM9 mcYb3GdBOWhEZ4CRqs/w8XMQ0Aj8XUmUCvxQ5A7aFO0VdVKcNqXYw154lKKVY19QWL2g jgFDaBCJkpfm7WVpq2l2/5pLDJPa5wcYCbe8QAN48XlU3YNbsi+Z/EywfiZeOmAWdUAo Xhqg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=TyL45BzxJsYhLeuhWufCYm5oFsHMkcT31dfOK8IEPc8=; b=0aZsqqDK48BsDblrBIC7oyk3dTJBxev856LeyuAq3Dth6aaI5Lq7wLWtLZb5s3hpyo 80NPHkE8TmMPfeyXQ5LeSjFlQDm+Q8QL/8K7ltZubxk77tpqD4fxHj+ZOxt+M4e2ucX/ eRGJ5M2QFvFYq1+QY4I38XAui4Zyzs4AZxPFcCSPskbZdwiQnoQLk7sg9Y5w2InwRgX8 k5vGTDrs2c478FWw1/l7ZX7YD2g1UiaKbScQ5s68wK6Vxpp/1yTT9lj3flms+xcUn/J1 GRc8/It2PxA2IiR6aEqGtqksVmKDB20RIeNwW2BjMXgWfO5EmWqSNoLX9Mpi3di4qFZc hixw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=R+YnksA5; arc=pass (i=1 spf=pass spfdomain=xilinx.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x6si2625039eju.117.2020.05.07.05.01.19; Thu, 07 May 2020 05:01:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=R+YnksA5; arc=pass (i=1 spf=pass spfdomain=xilinx.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726627AbgEGL7q (ORCPT + 99 others); Thu, 7 May 2020 07:59:46 -0400 Received: from mail-eopbgr700071.outbound.protection.outlook.com ([40.107.70.71]:16637 "EHLO NAM04-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726069AbgEGL7o (ORCPT ); Thu, 7 May 2020 07:59:44 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ggs9W32tFh9+oNRd0YgToy++JAmOrfQKeaoljipTWkMe4Rb5HxznyRb/yBbULz+gC1xHA7GnfJf59RuoGXc5YxDPUhLebJCe4uK+6/IX8I4BydB2eM6TxuRPA2742X+E4jVeKLbm4syPnwTJlRoU81M07KBwNic8s+ICmIZGw3JF43+XE9Etruyl9rbl27lRqINSUtKmC65veUrGm3FUZAckvgpZ1IYD4Lz5QEVXk+VyMLpo/i5YpUAXfCDpY0153Llm1tZUBj3SKRHZPn9KfD8VwtpZDdon0p6++/wU3jCdKG/PNYPqB9CSkng42zwPVD5t+1/S/UB2mdqT6VHJqQ== 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-SenderADCheck; bh=TyL45BzxJsYhLeuhWufCYm5oFsHMkcT31dfOK8IEPc8=; b=ikS5zTdoZzepHlt5FmUMlu9RyCfvMvWcwOXPg1qUf7RUN24th2ob7hlmm4Ip7sPsrhMYcbAQplQQTWr40ML30f4gqLha0s2UBj1DcXzq5AZC3uyfRKad5M+cHhzGkaPHzkgCjctw+kGGgWvAmq/srtR7TXA9dq7P8yRRaqFCWLu+Af1qfsawv4RWnQFMuNuHvjwybfEowlxKlX+nXaqeZlvfCE92ySEP38xmk5bUVx+wFuouuHBW9wxIvvWzWIwiWxIMRkAVJfZudsrJ1BNVTzl8wJCq8eVVpjpmImXvaxkH1+rN+VWiPP2fp2bMI7CpVgH43H0cK+xSF+x1Ka5/6A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.60.83) smtp.rcpttodomain=kernel.org smtp.mailfrom=xilinx.com; dmarc=bestguesspass action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TyL45BzxJsYhLeuhWufCYm5oFsHMkcT31dfOK8IEPc8=; b=R+YnksA5wd8QRTMzh7+fRdB/TgDtIko41TIiQndYrUFhI2AcNUynMaKSs8p/tptxZ+/Iak+cAPTnO+qoUYADxbS/inrVkGpFNp0zRnTY1nsXCohDo9AyucR1lA5oRfc3l33I1AoV/+RuNAPeFpiPEtpsj/rhszpeDxYf009jzYY= Received: from SN4PR0801CA0017.namprd08.prod.outlook.com (2603:10b6:803:29::27) by BL0PR02MB5683.namprd02.prod.outlook.com (2603:10b6:208:80::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2958.20; Thu, 7 May 2020 11:59:40 +0000 Received: from SN1NAM02FT023.eop-nam02.prod.protection.outlook.com (2603:10b6:803:29:cafe::7e) by SN4PR0801CA0017.outlook.office365.com (2603:10b6:803:29::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2979.26 via Frontend Transport; Thu, 7 May 2020 11:59:40 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=xilinx.com; kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.83 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.83; helo=xsj-pvapsmtpgw01; Received: from xsj-pvapsmtpgw01 (149.199.60.83) by SN1NAM02FT023.mail.protection.outlook.com (10.152.72.156) with Microsoft SMTP Server id 15.20.2979.29 via Frontend Transport; Thu, 7 May 2020 11:59:39 +0000 Received: from [149.199.38.66] (port=60019 helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw01 with esmtp (Exim 4.90) (envelope-from ) id 1jWfBZ-0004yL-Ub; Thu, 07 May 2020 04:59:29 -0700 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from ) id 1jWfBj-00082j-FE; Thu, 07 May 2020 04:59:39 -0700 Received: from xsj-pvapsmtp01 (xsj-smtp.xilinx.com [149.199.38.66]) by xsj-smtp-dlp1.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id 047Bxb4C012821; Thu, 7 May 2020 04:59:38 -0700 Received: from [10.140.9.2] (helo=xhdbharatku40.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1jWfBh-00081d-Ff; Thu, 07 May 2020 04:59:37 -0700 From: Bharat Kumar Gogada To: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Cc: lorenzo.pieralisi@arm.com, bhelgaas@google.com, robh@kernel.org, rgummal@xilinx.com, Bharat Kumar Gogada Subject: [PATCH v7 1/2] PCI: xilinx-cpm: Add YAML schemas for Versal CPM Root Port Date: Thu, 7 May 2020 17:28:35 +0530 Message-Id: <1588852716-23132-2-git-send-email-bharat.kumar.gogada@xilinx.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1588852716-23132-1-git-send-email-bharat.kumar.gogada@xilinx.com> References: <1588852716-23132-1-git-send-email-bharat.kumar.gogada@xilinx.com> X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.2.0.1013-23620.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:149.199.60.83;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:xsj-pvapsmtpgw01;PTR:unknown-60-83.xilinx.com;CAT:NONE;SFTY:;SFS:(346002)(376002)(136003)(39860400002)(396003)(46966005)(33430700001)(70586007)(26005)(478600001)(2616005)(966005)(336012)(316002)(70206006)(47076004)(426003)(8936002)(33440700001)(4326008)(7696005)(82740400003)(8676002)(36756003)(186003)(82310400002)(81166007)(2906002)(107886003)(9786002)(5660300002)(356005);DIR:OUT;SFP:1101; MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3e707b81-0451-4a17-be04-08d7f27e1f17 X-MS-TrafficTypeDiagnostic: BL0PR02MB5683: X-LD-Processed: 657af505-d5df-48d0-8300-c31994686c5c,ExtAddr X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:590; X-Forefront-PRVS: 03965EFC76 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: G59qBYG4/55WUp9qzKqL/qNXJNVzpF5PoNfpDiuqHPU2P9VYDHBpLgwqC10Kxo1cFiEBwMXIaLIeeS5gsto+JErOwDT+N/Zs8igX4M+euRTjF6/h92H0+XYfa7HfB6xqosr0/8wBrxy2SVoCXRPztwS+0HBSey9O8ZZGGjWtp/31ZvU3jN0HRvE6IZX+4hxowtVu7ya80ZYFsxwW1w10UGJ+atLS6aCGfTWiz6jXd/NlZy+k2qI8ScE8gVXrwUR+LRyaMefdNMlsGRV26Agnju4Hpo6JLDoOYlErUH6qwyIVZHHIvN8ddlRCj8A+JJ/6C7ku5Ep42hON8RTfHRADsdDuAl/SOdtF1NfpNW93gQUhoPh+l6RjZZsojDgRXcJwweuL3A6xETK5c6qR9PzNZxCvmx4hzoJG6HcaQeA30TcbBPb6WD4+6QsGGfGs22TWZXvu9unzPLQzFDOz+mat8RmsUftp9EBqrGSwNfo97OGZO0wLzR7r/uz/6H7N7rjiHLjp3heEVBWyNa02w7MMtjr/fTOPJRJ/+2c/5zmvGe7XJFLf4viRLv2A4IHB0xSH/V/JwWNS9PYhXiioEh8CkrYTOE/9LQwBqu7YfNMWbirKuIvtRD4ou3Sd0u9YqRadlQ3UR8gDLjDCv+Qe8Bei1w== X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 May 2020 11:59:39.7585 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3e707b81-0451-4a17-be04-08d7f27e1f17 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.60.83];Helo=[xsj-pvapsmtpgw01] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR02MB5683 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add YAML schemas documentation for Versal CPM Root Port driver. Signed-off-by: Bharat Kumar Gogada --- .../devicetree/bindings/pci/xilinx-versal-cpm.yaml | 105 +++++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/xilinx-versal-cpm.yaml diff --git a/Documentation/devicetree/bindings/pci/xilinx-versal-cpm.yaml b/Documentation/devicetree/bindings/pci/xilinx-versal-cpm.yaml new file mode 100644 index 0000000..5fc5c3f --- /dev/null +++ b/Documentation/devicetree/bindings/pci/xilinx-versal-cpm.yaml @@ -0,0 +1,105 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pci/xilinx-versal-cpm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: CPM Host Controller device tree for Xilinx Versal SoCs + +maintainers: + - Bharat Kumar Gogada + +properties: + compatible: + const: xlnx,versal-cpm-host-1.00 + + "#address-cells": + const: 3 + + "#size-cells": + const: 2 + + reg: + items: + - description: Configuration space region and bridge registers. + - description: CPM system level control and status registers. + + reg-names: + items: + - const: cfg + - const: cpm_slcr + + interrupts: + maxItems: 1 + + msi-map: + description: + Maps a Requester ID to an MSI controller and associated MSI sideband data. + + ranges: + maxItems: 2 + + "#interrupt-cells": + const: 1 + + interrupt-map-mask: + description: Standard PCI IRQ mapping properties. + + interrupt-map: + description: Standard PCI IRQ mapping properties. + + interrupt_controller: + description: Interrupt controller child node. + + bus-range: + description: Range of bus numbers associated with this controller. + +required: + - compatible + - "#address-cells" + - "#size-cells" + - reg + - reg-names + - "#interrupt-cells" + - interrupts + - interrupt-parent + - interrupt-map + - interrupt-map-mask + - ranges + - bus-range + - msi-map + +additionalProperties: false + +examples: + - | + + versal { + #address-cells = <2>; + #size-cells = <2>; + cpm_pcie: pci@fca10000 { + compatible = "xlnx,versal-cpm-host-1.00"; + #address-cells = <3>; + #interrupt-cells = <1>; + #size-cells = <2>; + interrupts = <0 72 4>; + interrupt-parent = <&gic>; + interrupt-map-mask = <0 0 0 7>; + interrupt-map = <0 0 0 1 &pcie_intc_0 0>, + <0 0 0 2 &pcie_intc_0 1>, + <0 0 0 3 &pcie_intc_0 2>, + <0 0 0 4 &pcie_intc_0 3>; + bus-range = <0x00 0xff>; + ranges = <0x02000000 0x0 0xe0000000 0x0 0xe0000000 0x0 0x10000000>, + <0x43000000 0x80 0x00000000 0x80 0x00000000 0x0 0x80000000>; + msi-map = <0x0 &its_gic 0x0 0x10000>; + reg = <0x6 0x00000000 0x0 0x10000000>, + <0x0 0xfca10000 0x0 0x1000>; + reg-names = "cfg", "cpm_slcr"; + pcie_intc_0: interrupt_controller { + #address-cells = <0>; + #interrupt-cells = <1>; + interrupt-controller ; + }; + }; + }; -- 2.7.4