From patchwork Thu Feb 11 06:05:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nava kishore Manne X-Patchwork-Id: 12082337 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 20D75C433DB for ; Thu, 11 Feb 2021 06:14:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DE67A64E77 for ; Thu, 11 Feb 2021 06:14:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229665AbhBKGNp (ORCPT ); Thu, 11 Feb 2021 01:13:45 -0500 Received: from mail-bn7nam10on2041.outbound.protection.outlook.com ([40.107.92.41]:60289 "EHLO NAM10-BN7-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229639AbhBKGNb (ORCPT ); Thu, 11 Feb 2021 01:13:31 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bH+iqJR2jJaZRMWHH6jqFIGuU0C1nF7LHEdIoIwOet9gyS8fXAuvqCkfVw15KZ96fLpCOzH8eb0yke+cN4j7TKlUUaXbCJbAjDqOI69HDCTGlg5Kw4nb5ExvYkdv4oSvI048oZDHoldcBqFZclj+9j51Vdao+NzbyonPh59acd0v82Ql2UEm6ar3zmKEJCYeTKhnw0f73zy4xJhq2J7uYEsKxlQbHrs+i8uVO/ApAuYf82VXxicrIfBo8EFS14vkA0X7Gjf9TPnZqXBGErPOzdNLuVX1cjjn5YU7HP8dVqJRo0QzGUHJ4W+X1RlVYQEhazKlP4k3LGIdR9yJKDd81Q== 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=WMorSuOMuxl7J4Q2UWXp0Po/D+qd0BSJX2+jOm3Eb+E=; b=VkVS2KHs+rITpMvRDXcF3WXnEwyibSv76TjXRkD4QOSZrXhvPkNVjiNTBgcMOOn5521MjCYwOhJYQh0oLVglfpQUGbM3b2hVEDFWAk56kVxvF6MAW5mhXDnsbis7jk2N4C6QYldNRWgNOXcIAMTvTA8SvUrcAHDnlczdbzRxmiMyQSl6H3z0ikj/TyxAHsNZet9pN/I2OwPRRYHDoxQjO8gWjabvmgr9uN+Rm/j9vfjeJuceWayCdDCGpETpIc1y7DpbuzPLAu6vQZ0Tf4C9jkrhDy7TWsr6X5IRdxY29o9pzcCIItuN9rtyYM1K1gZaC+Lksh7DkEPFcZejolBy4g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) 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=WMorSuOMuxl7J4Q2UWXp0Po/D+qd0BSJX2+jOm3Eb+E=; b=N82RF1uH8HxBsU44J3gAjzJlgNQjMoPv0L4Qq/cuHuUWxxHrOhH+2iCcVY6pYT9DuTiWIwp4Ch/YQNULB2eWMO3mn9AVqrOEHqBw/hbY/tZTNMHGq91JsJxfV93MS9xRW6aGmrAbXnZNpoXmnCNnyvjuEi7jPd5O5m5rxsIe48Q= Received: from SA0PR11CA0208.namprd11.prod.outlook.com (2603:10b6:806:1bc::33) by DM6PR02MB4986.namprd02.prod.outlook.com (2603:10b6:5:4b::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3805.17; Thu, 11 Feb 2021 06:12:38 +0000 Received: from SN1NAM02FT032.eop-nam02.prod.protection.outlook.com (2603:10b6:806:1bc:cafe::d7) by SA0PR11CA0208.outlook.office365.com (2603:10b6:806:1bc::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3846.25 via Frontend Transport; Thu, 11 Feb 2021 06:12:38 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) 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.62.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.62.198; helo=xsj-pvapexch02.xlnx.xilinx.com; Received: from xsj-pvapexch02.xlnx.xilinx.com (149.199.62.198) by SN1NAM02FT032.mail.protection.outlook.com (10.152.72.126) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.3846.25 via Frontend Transport; Thu, 11 Feb 2021 06:12:37 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1913.5; Wed, 10 Feb 2021 22:12:19 -0800 Received: from smtp.xilinx.com (172.19.127.95) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.1913.5 via Frontend Transport; Wed, 10 Feb 2021 22:12:19 -0800 Envelope-to: git@xilinx.com, michal.simek@xilinx.com, mdf@kernel.org, trix@redhat.com, robh+dt@kernel.org, linux-fpga@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, chinnikishore369@gmail.com Received: from [10.140.6.60] (port=34116 helo=xhdnavam40.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1lA5D2-0001Jy-48; Wed, 10 Feb 2021 22:12:12 -0800 From: Nava kishore Manne To: , , , , , , , , CC: , Nava kishore Manne Subject: [PATCH v2 1/3] drivers: firmware: Add PDI load API support Date: Thu, 11 Feb 2021 11:35:30 +0530 Message-ID: <20210211060532.23662-2-nava.manne@xilinx.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20210211060532.23662-1-nava.manne@xilinx.com> References: <20210211060532.23662-1-nava.manne@xilinx.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ee95c900-8b43-4f91-0f48-08d8ce54080e X-MS-TrafficTypeDiagnostic: DM6PR02MB4986: X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:462; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: baYwksb9b46Hs43yWdBDOkU1i1MNIu9WGzhDwlBG/Z0+dAzA3YLuhhcryT/bmNs7oKvVH4iHJzJeTsf/cwfsk4Idtw0CEPZN6YYvu3byBh9wRkrYcv1tMIkaceH4hN9yeTAeXcyGMYbinkASvsEBCCaMAc/TPsQsPfYUkdzA+TzFv99/YjbvUWoFoP/qKorr8+VX2VYwMVdbjaBcuFSNPV5Pw1RjVpdHvVtREZJOAAtpGS+v8YYPJMYKC0KA66oqgEHo+n/+9Bk+z1wnlzL5KPE+kfZZAGocCHVztJOTWjaR2RVUmxoaIqFe42rvb2fUHCZXo45Ex0bsOf3oh11nJk/Knwx9VwT7ctvGg/cM1hLz+7nwyRv5jenG2i2opi2gtxvzPwHh9L9d6aYzu7JeCQ7Ys5nAqqYC4SOD9wH4kbnsDZR7LwUMXeVbWLgb8rFMGQC2Xbuz/C85bDd1jZ2S21fl8qK0c1MVvyJalujuB/OKUgE7/ttmIzTWdzMzWr65fVCvwg5S5eCn8IP7JdcPB/dvbaU4GnConverqiqs68LQ+f8Gr2xkFIoe98sci0xbft0xVTyZSGfvrD4B2cZfkgRwfzHFp9bp9F4f7weWbHsexpIel0Nm37hm7ixhPOgAiItLws5bPVS7phlQaDE3CVOaaMcVBGJT/F25XiyAhggkHjeL34H5inuzaG9DygqbSAZL8mIYNg15sv9PJpzWPA== X-Forefront-Antispam-Report: CIP:149.199.62.198;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:xsj-pvapexch02.xlnx.xilinx.com;PTR:unknown-62-198.xilinx.com;CAT:NONE;SFS:(4636009)(396003)(346002)(136003)(39860400002)(376002)(36840700001)(46966006)(6666004)(9786002)(186003)(7696005)(83380400001)(26005)(356005)(1076003)(107886003)(8676002)(36756003)(82740400003)(82310400003)(2906002)(36860700001)(54906003)(47076005)(4326008)(2616005)(110136005)(336012)(316002)(36906005)(7636003)(8936002)(426003)(478600001)(70586007)(70206006)(5660300002)(102446001)(2101003);DIR:OUT;SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Feb 2021 06:12:37.9819 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ee95c900-8b43-4f91-0f48-08d8ce54080e X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.62.198];Helo=[xsj-pvapexch02.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: SN1NAM02FT032.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR02MB4986 Precedence: bulk List-ID: X-Mailing-List: linux-fpga@vger.kernel.org This patch adds load PDI API support to enable PDI/partial loading from linux. Programmable Device Image (PDI) is combination of headers, images and bitstream files to be loaded. Partial PDI is partial set of image/ images to be loaded. Signed-off-by: Nava kishore Manne --- Changes for v2: -Updated API Doc and commit msg. No functional changes. drivers/firmware/xilinx/zynqmp.c | 17 +++++++++++++++++ include/linux/firmware/xlnx-zynqmp.h | 9 +++++++++ 2 files changed, 26 insertions(+) diff --git a/drivers/firmware/xilinx/zynqmp.c b/drivers/firmware/xilinx/zynqmp.c index 7eb9958662dd..9ee02655db89 100644 --- a/drivers/firmware/xilinx/zynqmp.c +++ b/drivers/firmware/xilinx/zynqmp.c @@ -897,6 +897,23 @@ int zynqmp_pm_set_requirement(const u32 node, const u32 capabilities, } EXPORT_SYMBOL_GPL(zynqmp_pm_set_requirement); +/** + * zynqmp_pm_load_pdi - Load and process PDI + * @src: Source device where PDI is located + * @address: PDI src address + * + * This function provides support to load PDI from linux + * + * Return: Returns status, either success or error+reason + */ +int zynqmp_pm_load_pdi(const u32 src, const u64 address) +{ + return zynqmp_pm_invoke_fn(PM_LOAD_PDI, src, + lower_32_bits(address), + upper_32_bits(address), 0, NULL); +} +EXPORT_SYMBOL_GPL(zynqmp_pm_load_pdi); + /** * zynqmp_pm_aes - Access AES hardware to encrypt/decrypt the data using * AES-GCM core. diff --git a/include/linux/firmware/xlnx-zynqmp.h b/include/linux/firmware/xlnx-zynqmp.h index 2a0da841c942..87114ee645b1 100644 --- a/include/linux/firmware/xlnx-zynqmp.h +++ b/include/linux/firmware/xlnx-zynqmp.h @@ -52,6 +52,9 @@ #define ZYNQMP_PM_CAPABILITY_WAKEUP 0x4U #define ZYNQMP_PM_CAPABILITY_UNUSABLE 0x8U +/* Loader commands */ +#define PM_LOAD_PDI 0x701 + /* * Firmware FPGA Manager flags * XILINX_ZYNQMP_PM_FPGA_FULL: FPGA full reconfiguration @@ -354,6 +357,7 @@ int zynqmp_pm_write_pggs(u32 index, u32 value); int zynqmp_pm_read_pggs(u32 index, u32 *value); int zynqmp_pm_system_shutdown(const u32 type, const u32 subtype); int zynqmp_pm_set_boot_health_status(u32 value); +int zynqmp_pm_load_pdi(const u32 src, const u64 address); #else static inline struct zynqmp_eemi_ops *zynqmp_pm_get_eemi_ops(void) { @@ -538,6 +542,11 @@ static inline int zynqmp_pm_set_boot_health_status(u32 value) { return -ENODEV; } + +static inline int zynqmp_pm_load_pdi(const u32 src, const u64 address) +{ + return -ENODEV; +} #endif #endif /* __FIRMWARE_ZYNQMP_H__ */ From patchwork Thu Feb 11 06:05:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nava kishore Manne X-Patchwork-Id: 12082335 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8FF52C433E9 for ; Thu, 11 Feb 2021 06:13:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6C34064E7A for ; Thu, 11 Feb 2021 06:13:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229623AbhBKGN2 (ORCPT ); Thu, 11 Feb 2021 01:13:28 -0500 Received: from mail-eopbgr770050.outbound.protection.outlook.com ([40.107.77.50]:58375 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229617AbhBKGNZ (ORCPT ); Thu, 11 Feb 2021 01:13:25 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ORS0kYfGAjJhp+HomVPxFx15sQNJloDN+/N3Lf/d7wYgcNm6c/NOPt+OzJnBU9TjOMReFTj/luAsLvZo2heDstFaazAT57T23zl1rXC4pQ2wURQKz69I2MDepeG8w+RTG+0wc3JY1EufpInKRooQr4wOBTzEGmtu8LWrltAJxkYw8TRkXQ7fIc5NzaIx/pfLPV8C9V2XIM096eO0KEcvmfxqLBQCgnUM+6CNwEjrLk3vEmwomOqhwoBj29BsBokqRoO8Bk4uGwAip4D4FRDIz8YnXbw/D4wc3gqox/DJobJ8LkCxl5lDkVUeoR+/eL2RAe9cPflY0wtqe0EiZXe/dA== 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=htdOZJEbAOzIHrXU22WEPkzvwo4uJnaQOQfYgP1loGA=; b=Qp0hn2NSxAJEtyaWhG54RXSOVzw0tUO2umjhsmKuuXMMpv1X+LYTMshQuT90KiHAfMCeXa1YSCp/D6wMPARs9akW2pD0LvOQD+xy5RJt4xAliT3sJrqPoZAsvcgiDY6X3/nv7BS8GHwUCycm8YOZ7vHhFkpmCgsj5tT2X3wSauHB+dJwOa310/cKwfrZxG4SVtjKYyt4dBkDwtJWDzZ6lF4AKGgvKuga2308oz/yr90bIXo2NcFx64k/FQ5rpPacWVGY/nPN6BzyeWHaOyJGBtK8TY5cY3QorLS7xIicBjBjkNpg0/H50K6ZSEcEr+O41NXfw43/hzX34srfukcufA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) 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=htdOZJEbAOzIHrXU22WEPkzvwo4uJnaQOQfYgP1loGA=; b=rpCARUJNJELp0FaE7Or8Ot4ZXZKN7UhIJdZvN2aU3OCfgVRxj+t3uhj6HbYiRFEcVI05Av1TjVosjClnUAxIBMjwdZHyIxXZ60cA/ozy4P4yodhA+fjztaT/y1E/67qE6VFsDfk8Mrct770omAB0xcEpTwVBTpXCSq/FJIza3EA= Received: from SA0PR11CA0210.namprd11.prod.outlook.com (2603:10b6:806:1bc::35) by CH2PR02MB6373.namprd02.prod.outlook.com (2603:10b6:610:7::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3825.30; Thu, 11 Feb 2021 06:12:33 +0000 Received: from SN1NAM02FT032.eop-nam02.prod.protection.outlook.com (2603:10b6:806:1bc:cafe::d4) by SA0PR11CA0210.outlook.office365.com (2603:10b6:806:1bc::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3846.25 via Frontend Transport; Thu, 11 Feb 2021 06:12:33 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) 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.62.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.62.198; helo=xsj-pvapexch02.xlnx.xilinx.com; Received: from xsj-pvapexch02.xlnx.xilinx.com (149.199.62.198) by SN1NAM02FT032.mail.protection.outlook.com (10.152.72.126) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.3846.25 via Frontend Transport; Thu, 11 Feb 2021 06:12:32 +0000 Received: from xsj-pvapexch01.xlnx.xilinx.com (172.19.86.40) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1913.5; Wed, 10 Feb 2021 22:12:17 -0800 Received: from smtp.xilinx.com (172.19.127.95) by xsj-pvapexch01.xlnx.xilinx.com (172.19.86.40) with Microsoft SMTP Server id 15.1.1913.5 via Frontend Transport; Wed, 10 Feb 2021 22:12:17 -0800 Envelope-to: git@xilinx.com, michal.simek@xilinx.com, mdf@kernel.org, trix@redhat.com, robh+dt@kernel.org, linux-fpga@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, chinnikishore369@gmail.com Received: from [10.140.6.60] (port=34116 helo=xhdnavam40.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1lA5D6-0001Jy-CP; Wed, 10 Feb 2021 22:12:17 -0800 From: Nava kishore Manne To: , , , , , , , , CC: , Appana Durga Kedareswara rao , Nava kishore Manne Subject: [PATCH v2 2/3] dt-bindings: fpga: Add binding doc for versal fpga manager Date: Thu, 11 Feb 2021 11:35:31 +0530 Message-ID: <20210211060532.23662-3-nava.manne@xilinx.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20210211060532.23662-1-nava.manne@xilinx.com> References: <20210211060532.23662-1-nava.manne@xilinx.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ca3ca485-bc19-4dd3-0485-08d8ce5404e8 X-MS-TrafficTypeDiagnostic: CH2PR02MB6373: X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:2449; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 2ZKrTwabY66cgYgbBs2JXozBRzOOs9GU2pEgqvJ1TJPslQKg4pPyyqi++VH23nSDrjlvrDTCIRQWMRuQGdo19yXOK/EDtCzTOMxe7KvpJ7Z2mM9DdAI1fwiMCKVZfEk0OHL6oQQHxHRmyky6eYuB4ylxd6BwW9TDrN7rpfQ8WDyVttl6R2pUbbbPyEkbvkvbBogTRSwhOQ8Et/y1/W7vuxIAXaGt9BNh8yF6esfLIp5F3ZxFOH+pW/lACjxzHcWXo/wD5C1lHzEqcRLc++xobxiRbFFviMO2/wY7eJVP3PQhllUDphs9VQ8pJJm4j0nblmCQuB0tN/zumgH6Vft4rDIZLk0PDYWexzt3SksoegKIay05053NYXtUxnrcgvGgYOM2oPmvlfl7ExF/9HwywClsbYM3PhD88wNtIWta528rd/0Z/yvZq1sYf+hEuh4Zdkh8SA65C2wr1H6nv8HNH3yblWNe8SoZT3o6wLfOHaZgPoGtEoLHnGfQfeeQnkeyytHBZZahA8iEx5WAlbqqSuTqWGsOfnwC1iEhBrMiQTG+yWVCZBEpZb8OmKtbkLNfxHZyFJcJFEAAhrfbUC7s6pIfAKZsU286/bU2n2cHg52T1zg/W/YWlrIWD06Tf5FV3ma4f3ENopECrjKxgbkGXd2vINlGkkd8fJrpW6acdCn4FpQt0h1bZMpz7G0eLxKQzAzP9YFZRkEkQlw10UY3kjkoJMnusb56p/G3vScDjSPbP2yiWB0Tbc04rba5ca6/0xVJt52kYiiHWzHss/Iqbg== X-Forefront-Antispam-Report: CIP:149.199.62.198;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:xsj-pvapexch02.xlnx.xilinx.com;PTR:unknown-62-198.xilinx.com;CAT:NONE;SFS:(4636009)(136003)(396003)(376002)(39860400002)(346002)(46966006)(36840700001)(966005)(2906002)(426003)(186003)(36906005)(36860700001)(26005)(110136005)(1076003)(2616005)(8676002)(54906003)(336012)(478600001)(47076005)(36756003)(316002)(6666004)(70206006)(82740400003)(7696005)(9786002)(107886003)(8936002)(82310400003)(4326008)(70586007)(7636003)(356005)(5660300002)(102446001)(2101003);DIR:OUT;SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Feb 2021 06:12:32.6994 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ca3ca485-bc19-4dd3-0485-08d8ce5404e8 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.62.198];Helo=[xsj-pvapexch02.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: SN1NAM02FT032.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR02MB6373 Precedence: bulk List-ID: X-Mailing-List: linux-fpga@vger.kernel.org From: Appana Durga Kedareswara rao This patch adds binding doc for versal fpga manager driver. Signed-off-by: Nava kishore Manne Signed-off-by: Appana Durga Kedareswara rao --- Changes for v2: -Fixed file format and syntax issues. .../bindings/fpga/xlnx,versal-fpga.yaml | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Documentation/devicetree/bindings/fpga/xlnx,versal-fpga.yaml diff --git a/Documentation/devicetree/bindings/fpga/xlnx,versal-fpga.yaml b/Documentation/devicetree/bindings/fpga/xlnx,versal-fpga.yaml new file mode 100644 index 000000000000..65d6877b913e --- /dev/null +++ b/Documentation/devicetree/bindings/fpga/xlnx,versal-fpga.yaml @@ -0,0 +1,33 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/fpga/xlnx,versal-fpga.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Xilinx Versal FPGA driver. + +maintainers: + - Nava kishore Manne + +description: | + Device Tree Versal FPGA bindings for the Versal SoC, controlled + using firmware interface. + +properties: + compatible: + items: + - enum: + - xlnx,versal-fpga + +required: + - compatible + +additionalProperties: false + +examples: + - | + versal_fpga: fpga { + compatible = "xlnx,versal-fpga"; + }; + +... From patchwork Thu Feb 11 06:05:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nava kishore Manne X-Patchwork-Id: 12082339 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.9 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNWANTED_LANGUAGE_BODY, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8F0CEC433E9 for ; Thu, 11 Feb 2021 06:14:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6109D64E77 for ; Thu, 11 Feb 2021 06:14:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229674AbhBKGNq (ORCPT ); Thu, 11 Feb 2021 01:13:46 -0500 Received: from mail-mw2nam08on2084.outbound.protection.outlook.com ([40.107.101.84]:46337 "EHLO NAM04-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229647AbhBKGNc (ORCPT ); Thu, 11 Feb 2021 01:13:32 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GYPYQBiIHoubG+NHWwdPFk/Qru2GPJ3jo8zy5U+yeFLGLFf1M2aDNUUqJm+9V1vBfMx3ABAvMMAZAm300zFepsBZ5zRO1VCemV6+vN7tMFT7AB5JobKyaJAp2BOvQFcGfkCwuqkFsVnc+KwD7EFyhnIfYH2nDHibsPQkPbLlx4lnkHykRXwRiQYIws3OqTi79khLZQUuvl2HsUIcRyltAzexWRqpmqckIaqTScPnNlpRKX5iwniMXAKTqsHHCkx68nngKUmr7/dVttv6ScQxIyabHWPySkssG+BjgWsX0olkj+OOuxTM7zcMbgkIr6bTKOy6yqsa505vott4JQVTAA== 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=Ik4pWMb4GFig+FNyXkvL9oal+1yV+0Q8GN5LPuQzAMI=; b=WCcc2ZwAOnenkmxlkLb/9LcVyzN1vLw1x9rLQclo/ZkagpPTkf1jsC8vrdjY6OCFED/hiX8lS6zOn6ZToX28aTr3w4RfmUUciBI/NII4q9+HNoUPLhPALN8tANglnEOtrcQ9d+6+e62kQqQqxCI/P/6wKPt1qeh9JvDnXeKh8j1ijxLY31Qt92tYmgOrm+BeG3+C89Ijqaeu37XGqUhtibPTYfMYo4t1b4ikK+gZYW/rQ8n3Z4eZPNNESiStK4Dx394LNFbT39zfbhslyo5C6DrtQTfsNfWnBLKAjXFVgm6Q6s5b4DWoAFKvmX+JdJ7pDebm8o3aBwkJcfmYQb1lIw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) 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=Ik4pWMb4GFig+FNyXkvL9oal+1yV+0Q8GN5LPuQzAMI=; b=U/IPikFQ/1vhD/AscL0Z6Wu2m4K9fttqZDp6k04iZAw85byBozzMhTRM/+ziQ2B72ivfgEWyUGyZ/n22dkr3a2Lm1ttVYHntxBrStPgqUfZAf2WG+xJcgv1kA0PavquA/JTZSSf4VvoxtBStqKwAf1Y+TDpZrNj9l2o4Ez1iLQQ= Received: from SA0PR11CA0205.namprd11.prod.outlook.com (2603:10b6:806:1bc::30) by SN6PR02MB4783.namprd02.prod.outlook.com (2603:10b6:805:9e::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3825.23; Thu, 11 Feb 2021 06:12:39 +0000 Received: from SN1NAM02FT032.eop-nam02.prod.protection.outlook.com (2603:10b6:806:1bc:cafe::46) by SA0PR11CA0205.outlook.office365.com (2603:10b6:806:1bc::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3846.25 via Frontend Transport; Thu, 11 Feb 2021 06:12:39 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) 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.62.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.62.198; helo=xsj-pvapexch02.xlnx.xilinx.com; Received: from xsj-pvapexch02.xlnx.xilinx.com (149.199.62.198) by SN1NAM02FT032.mail.protection.outlook.com (10.152.72.126) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.3846.25 via Frontend Transport; Thu, 11 Feb 2021 06:12:39 +0000 Received: from xsj-pvapexch01.xlnx.xilinx.com (172.19.86.40) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1913.5; Wed, 10 Feb 2021 22:12:21 -0800 Received: from smtp.xilinx.com (172.19.127.95) by xsj-pvapexch01.xlnx.xilinx.com (172.19.86.40) with Microsoft SMTP Server id 15.1.1913.5 via Frontend Transport; Wed, 10 Feb 2021 22:12:21 -0800 Envelope-to: git@xilinx.com, michal.simek@xilinx.com, mdf@kernel.org, trix@redhat.com, robh+dt@kernel.org, linux-fpga@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, chinnikishore369@gmail.com Received: from [10.140.6.60] (port=34116 helo=xhdnavam40.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1lA5DA-0001Jy-KZ; Wed, 10 Feb 2021 22:12:21 -0800 From: Nava kishore Manne To: , , , , , , , , CC: , Nava kishore Manne , "Appana Durga Kedareswara rao" Subject: [PATCH v2 3/3] fpga: versal-fpga: Add versal fpga manager driver Date: Thu, 11 Feb 2021 11:35:32 +0530 Message-ID: <20210211060532.23662-4-nava.manne@xilinx.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20210211060532.23662-1-nava.manne@xilinx.com> References: <20210211060532.23662-1-nava.manne@xilinx.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d60ddf97-78b6-4a3e-e8bf-08d8ce54091e X-MS-TrafficTypeDiagnostic: SN6PR02MB4783: X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:6790; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jDtKGh+54FAxBNY29ynvH10Cqtuca0kdFCTxPGLhMMpTXqwqSdd4DMivqXNHDgzaKDmApcHYYgLVY5FpwFpjOPL/wTdiM8E8dg/zUwAuijYqvV9+FwY3vkJsTHcGdcW4N4IOnFXQaKCmE24hh0J3mA18t1JmTFCZOhw1drB9GxiJcAXUxpLcyCtB0iV2PkgwHNJ3OTF5AOFhApkKDkMwRlBmENsNekEZ7FswRgvcJiCmuSp2f07sP6PwWqRnHwjKFq7UCxUJg9WNtCUy4r538QEYlEQAlOaWn3dVrQamZokL9mQb2jit87yjl16caUYPY6kjtPkGI36KTesWtgtfizrMbYW0G/4f1Nwzexc1v0dRjw4jiG/ML3BOonMM73km1KeMsT7/Az936GBdLKV+ZTgCVA7kCOIPFDzErcRwuLFXtbHo9PhEw2sLAjn2tsYSlajm/wVhtNnLIUGMjU5NVmDA6mwT5FhiKrQk08tqEcxjPYsdBLKboEig24rFNZ9Nxj/91vaZGekQL/f3Z+FSp8QXTaktlMU0pmvA99UTxb+Wg3zEyWQSbVgawgmsHj+eFYTHd8d+sWXHwzWvDLpG4iL/bw4X+bAjxJhBkr+F/VLR0S6E0McZyZIDYM2BkVViuDN9qMwkNteiQ+NSvljNasf3PAE1s9q1ra/3juCjZpI6QhsVO6/vLZQ9W8WMFeQ/no/dzubfQ4DxpgpPPxasBA== X-Forefront-Antispam-Report: CIP:149.199.62.198;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:xsj-pvapexch02.xlnx.xilinx.com;PTR:unknown-62-198.xilinx.com;CAT:NONE;SFS:(4636009)(376002)(396003)(346002)(39860400002)(136003)(46966006)(36840700001)(36906005)(83380400001)(8936002)(336012)(47076005)(9786002)(26005)(36756003)(82310400003)(478600001)(107886003)(110136005)(186003)(8676002)(1076003)(36860700001)(54906003)(426003)(6666004)(70206006)(356005)(70586007)(5660300002)(7696005)(2616005)(316002)(4326008)(7636003)(2906002)(82740400003)(102446001)(2101003);DIR:OUT;SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Feb 2021 06:12:39.7700 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d60ddf97-78b6-4a3e-e8bf-08d8ce54091e X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.62.198];Helo=[xsj-pvapexch02.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: SN1NAM02FT032.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR02MB4783 Precedence: bulk List-ID: X-Mailing-List: linux-fpga@vger.kernel.org Add support for Xilinx Versal FPGA manager. PDI source type can be DDR, OCM, QSPI flash etc.. But driver allocates memory always from DDR, Since driver supports only DDR source type. Signed-off-by: Appana Durga Kedareswara rao Signed-off-by: Nava kishore Manne --- Changes for v2: -Updated the Fpga Mgr registrations call's to 5.11 -Fixed some minor coding issues as suggested by Moritz. drivers/fpga/Kconfig | 8 +++ drivers/fpga/Makefile | 1 + drivers/fpga/versal-fpga.c | 120 +++++++++++++++++++++++++++++++++++++ 3 files changed, 129 insertions(+) create mode 100644 drivers/fpga/versal-fpga.c diff --git a/drivers/fpga/Kconfig b/drivers/fpga/Kconfig index bf85b9a65ec2..dcd2ed5a7956 100644 --- a/drivers/fpga/Kconfig +++ b/drivers/fpga/Kconfig @@ -223,4 +223,12 @@ config FPGA_MGR_ZYNQMP_FPGA to configure the programmable logic(PL) through PS on ZynqMP SoC. +config FPGA_MGR_VERSAL_FPGA + tristate "Xilinx Versal FPGA" + depends on ARCH_ZYNQMP || COMPILE_TEST + help + Select this option to enable FPGA manager driver support for + Xilinx Versal SOC. This driver uses the versal soc firmware + interface to load programmable logic(PL) images + on versal soc. endif # FPGA diff --git a/drivers/fpga/Makefile b/drivers/fpga/Makefile index d8e21dfc6778..40c9adb6a644 100644 --- a/drivers/fpga/Makefile +++ b/drivers/fpga/Makefile @@ -18,6 +18,7 @@ obj-$(CONFIG_FPGA_MGR_TS73XX) += ts73xx-fpga.o obj-$(CONFIG_FPGA_MGR_XILINX_SPI) += xilinx-spi.o obj-$(CONFIG_FPGA_MGR_ZYNQ_FPGA) += zynq-fpga.o obj-$(CONFIG_FPGA_MGR_ZYNQMP_FPGA) += zynqmp-fpga.o +obj-$(CONFIG_FPGA_MGR_VERSAL_FPGA) += versal-fpga.o obj-$(CONFIG_ALTERA_PR_IP_CORE) += altera-pr-ip-core.o obj-$(CONFIG_ALTERA_PR_IP_CORE_PLAT) += altera-pr-ip-core-plat.o diff --git a/drivers/fpga/versal-fpga.c b/drivers/fpga/versal-fpga.c new file mode 100644 index 000000000000..22d0bfb7b1e6 --- /dev/null +++ b/drivers/fpga/versal-fpga.c @@ -0,0 +1,120 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) 2019-2021 Xilinx, Inc. + */ + +#include +#include +#include +#include +#include +#include +#include +#include + +/* Constant Definitions */ +#define PDI_SOURCE_TYPE 0xF + +/** + * struct versal_fpga_priv - Private data structure + * @dev: Device data structure + */ +struct versal_fpga_priv { + struct device *dev; +}; + +static int versal_fpga_ops_write_init(struct fpga_manager *mgr, + struct fpga_image_info *info, + const char *buf, size_t size) +{ + return 0; +} + +static int versal_fpga_ops_write(struct fpga_manager *mgr, + const char *buf, size_t size) +{ + struct versal_fpga_priv *priv; + dma_addr_t dma_addr = 0; + char *kbuf; + int ret; + + priv = mgr->priv; + + kbuf = dma_alloc_coherent(priv->dev, size, &dma_addr, GFP_KERNEL); + if (!kbuf) + return -ENOMEM; + + memcpy(kbuf, buf, size); + + wmb(); /* ensure all writes are done before initiate FW call */ + + ret = zynqmp_pm_load_pdi(PDI_SOURCE_TYPE, dma_addr); + + dma_free_coherent(priv->dev, size, kbuf, dma_addr); + + return ret; +} + +static int versal_fpga_ops_write_complete(struct fpga_manager *mgr, + struct fpga_image_info *info) +{ + return 0; +} + +static enum fpga_mgr_states versal_fpga_ops_state(struct fpga_manager *mgr) +{ + return FPGA_MGR_STATE_UNKNOWN; +} + +static const struct fpga_manager_ops versal_fpga_ops = { + .state = versal_fpga_ops_state, + .write_init = versal_fpga_ops_write_init, + .write = versal_fpga_ops_write, + .write_complete = versal_fpga_ops_write_complete, +}; + +static int versal_fpga_probe(struct platform_device *pdev) +{ + struct device *dev = &pdev->dev; + struct versal_fpga_priv *priv; + struct fpga_manager *mgr; + int ret; + + priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); + if (!priv) + return -ENOMEM; + + priv->dev = dev; + ret = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32)); + if (ret < 0) { + dev_err(dev, "no usable DMA configuration\n"); + return ret; + } + + mgr = devm_fpga_mgr_create(dev, "Xilinx Versal FPGA Manager", + &versal_fpga_ops, priv); + if (!mgr) + return -ENOMEM; + + return devm_fpga_mgr_register(dev, mgr); +} + +static const struct of_device_id versal_fpga_of_match[] = { + { .compatible = "xlnx,versal-fpga", }, + {}, +}; +MODULE_DEVICE_TABLE(of, versal_fpga_of_match); + +static struct platform_driver versal_fpga_driver = { + .probe = versal_fpga_probe, + .driver = { + .name = "versal_fpga_manager", + .of_match_table = of_match_ptr(versal_fpga_of_match), + }, +}; +module_platform_driver(versal_fpga_driver); + +MODULE_AUTHOR("Nava kishore Manne "); +MODULE_AUTHOR("Appana Durga Kedareswara rao "); +MODULE_DESCRIPTION("Xilinx Versal FPGA Manager"); +MODULE_LICENSE("GPL");