From patchwork Sat Jun 26 15:52:44 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: 467888 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.8 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 1D40AC49EA5 for ; Sat, 26 Jun 2021 15:53:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0089461C44 for ; Sat, 26 Jun 2021 15:53:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230124AbhFZPzh (ORCPT ); Sat, 26 Jun 2021 11:55:37 -0400 Received: from mail-mw2nam10on2070.outbound.protection.outlook.com ([40.107.94.70]:7040 "EHLO NAM10-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229657AbhFZPzg (ORCPT ); Sat, 26 Jun 2021 11:55:36 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PnMDww0WPOGCeiK11Yl14PcqwGJP92rVpOXnUMZyHH9DF0vaa5D+DXDmg6Pnd0cCow/khi4DO3QKXwhvnq0HAkl4Gax4PKoUPWWxCQuypreof7MPwBNju7QY1lfPBnrjYJ9KJWzdmOzDLT+e2Hb1KmjoILY38cF6ylFtGMdcE2zthHYlbaCeptsYpjwUXrR3ZeQTBGALUY1Dza6yf5i3VkM/KPHBFJPgPHBnMpBi4FQWe2Xmf2X3zxbyYQqmdf8rkbXeCQzZ3F418hHEQsDVnWuqh80Esa9mYAyuJWrDp86zTiRkHOE6Q4+3OASTIk35K/YSyWI41c++udAD6Nts5A== 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=9CJLShNkS6bdJDMWUbG63sVgvPU2gGWe7gnSStU3vJI=; b=K1kqEtZJ3VQJdZn2zm+MIbeptWicNdKwo3FzvkrkL7WxhMJYHAyKaIDl1tULneSsDZhs4JUrg/qz7xa8Xz3pe4UP3/keeuCnGgl/Koenn+8jZFXemJ1LcRinZ8ktYdZiELrKshc2g3u8Ei3Y8N0aTk6SRL3lv85DWSyyD4NZ+8S5fgo0TF2XeHyaw4C1b0tJl1QCmlTsx3kXK4i3lUfbrzRMXeVFxudmsKlyhhAYTiy9h6ANKzTwnotr3kPccp9NYGSwqXcch3kqujopi0dhtiXothcPvCnn9rJsTmMC1wptvVBCDq65XBMj1ht+OdVHW7OOt6MVIF1BbjJV2iPwug== 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=pass (p=none sp=none pct=100) 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=9CJLShNkS6bdJDMWUbG63sVgvPU2gGWe7gnSStU3vJI=; b=m6oT2s3MgkTKvF4YoY/SRDiu2/JTfacyuzqxXeloi7xsTy/ZVQqyKWeL1rQcWKQ3GC/34Af5U0T5B8ZppYAJnTxUUzf3DxpKBKE3CiMkrBjsWJfrh8mX4S6NpcV4taGeH0534/7WJxsb0HAvnvzeHtYHlifwYCI3Zhrv4oNRMaY= Received: from DM5PR08CA0025.namprd08.prod.outlook.com (2603:10b6:4:60::14) by CH0PR02MB7963.namprd02.prod.outlook.com (2603:10b6:610:104::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.18; Sat, 26 Jun 2021 15:53:11 +0000 Received: from DM3NAM02FT008.eop-nam02.prod.protection.outlook.com (2603:10b6:4:60:cafe::45) by DM5PR08CA0025.outlook.office365.com (2603:10b6:4:60::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.18 via Frontend Transport; Sat, 26 Jun 2021 15:53:11 +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=pass 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 DM3NAM02FT008.mail.protection.outlook.com (10.13.5.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4264.18 via Frontend Transport; Sat, 26 Jun 2021 15:53:11 +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.2176.2; Sat, 26 Jun 2021 08:53:02 -0700 Received: from smtp.xilinx.com (172.19.127.96) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Sat, 26 Jun 2021 08:53:02 -0700 Envelope-to: git@xilinx.com, robh+dt@kernel.org, mdf@kernel.org, trix@redhat.com, arnd@arndb.de, gregkh@linuxfoundation.org, zou_wei@huawei.com, iwamatsu@nigauri.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-fpga@vger.kernel.org, chinnikishore369@gmail.com Received: from [10.140.6.60] (port=59432 helo=xhdnavam40.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1lxAc9-0000uY-6r; Sat, 26 Jun 2021 08:53:01 -0700 From: Nava kishore Manne To: , , , , , , , , , , , , , , , , , , , , Subject: [PATCH v8 1/5] drivers: firmware: Add PDI load API support Date: Sat, 26 Jun 2021 21:22:44 +0530 Message-ID: <20210626155248.5004-2-nava.manne@xilinx.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210626155248.5004-1-nava.manne@xilinx.com> References: <20210626155248.5004-1-nava.manne@xilinx.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5f706569-dd5c-447d-240a-08d938ba802e X-MS-TrafficTypeDiagnostic: CH0PR02MB7963: X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:644; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: sPF8zoJUMVrdWXcT6N+e/tOdzZcgzH+aCUCVsstKSFDmh7eDyQ3jiuG7XirttOZ6eGLsTz2Oyhhh5z+c27UKU9DWmVIsurHJUeVVOljQ2fBe6CQpu1mW34q1phmUYIutj1iZgez+Hm5s1sCD/U2l/TBNHdgq8kwlbang7WYUsViBxdeGR24/yE+ncDn/xe9+RdYdR5L07vIuUFwZXb+AFw/svl+3u2YEnWZScvo76ciIHc1uGP+SE4sffJFpksCFkKewSjJnEBFarRhO7TGJp0i1wWlnaTauoGwIwZdym2RjXpa9n9pUOtsIOw/Tw/OPOh6rLvzeTaBH2AMJYViwzHxrM6mFq2HX4k1TolZ7NRUCZZFd2OiIj/CXpyIb0VhOg8CLp0zH09AMvgQEf7TYSUFRcJScDQLZwhxZdZ1XCnt7g1DzRhJ9xJcfMkvn7nfNsELJS56rO4huycLtSOVrnV+UG5PXSHdyd7Wjc+ZrijHk9wX8s/CXWpUxG8Y4nRHW3OWtV8WU6B6xfqhgfuNfrqQRVtikmux385kmcjn8Nd/2DJYEFTO+E33BNxMpDrA0UHi4Kd1qzE46Gl0MrOVEYz5wMIijpOrOkMNIgcqeD+pITPR1miQWDkAz22reXLh30lrGPktRxE2YfTpQFn3Oxvw8IUEaUVEyQYlw5hW+B/+X8agSPH3ItgZUC3m+ZAHABkmSGvJ0psjwTM5Nu2RvjFwY4vAykQr3ZDqtn57KJzdmSLDdOIDoMKDow53iVUK6 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)(346002)(39850400004)(136003)(376002)(396003)(36840700001)(46966006)(478600001)(356005)(36860700001)(2616005)(36756003)(26005)(1076003)(8676002)(8936002)(83380400001)(110136005)(82310400003)(70206006)(7416002)(7696005)(316002)(336012)(36906005)(921005)(426003)(7636003)(2906002)(70586007)(186003)(6666004)(9786002)(5660300002)(47076005)(82740400003)(102446001)(2101003)(83996005); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jun 2021 15:53:11.4316 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5f706569-dd5c-447d-240a-08d938ba802e 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: DM3NAM02FT008.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR02MB7963 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This patch adds load PDI API support to enable full/partial PDI loading from linux. Programmable Device Image (PDI) is combination of headers, images and bitstream files to be loaded. Signed-off-by: Nava kishore Manne Reviewed-by: Moritz Fischer --- Changes for v2: -Updated API Doc and commit msg. No functional changes. Changes for v3: -None. Changes for v4: -Rebased the changes on linux-next. No functional changes Changes for v5: -None. Changes for v6: -None. Changes for v7: -None. Changes for v8: -None. drivers/firmware/xilinx/zynqmp.c | 17 +++++++++++++++++ include/linux/firmware/xlnx-zynqmp.h | 10 ++++++++++ 2 files changed, 27 insertions(+) diff --git a/drivers/firmware/xilinx/zynqmp.c b/drivers/firmware/xilinx/zynqmp.c index 15b138326ecc..2db571da9ad8 100644 --- a/drivers/firmware/xilinx/zynqmp.c +++ b/drivers/firmware/xilinx/zynqmp.c @@ -1011,6 +1011,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 9d1a5c175065..56b426fe020c 100644 --- a/include/linux/firmware/xlnx-zynqmp.h +++ b/include/linux/firmware/xlnx-zynqmp.h @@ -52,6 +52,10 @@ #define ZYNQMP_PM_CAPABILITY_WAKEUP 0x4U #define ZYNQMP_PM_CAPABILITY_UNUSABLE 0x8U +/* Loader commands */ +#define PM_LOAD_PDI 0x701 +#define PDI_SRC_DDR 0xF + /* * Firmware FPGA Manager flags * XILINX_ZYNQMP_PM_FPGA_FULL: FPGA full reconfiguration @@ -411,6 +415,7 @@ int zynqmp_pm_pinctrl_get_config(const u32 pin, const u32 param, u32 *value); int zynqmp_pm_pinctrl_set_config(const u32 pin, const u32 param, u32 value); +int zynqmp_pm_load_pdi(const u32 src, const u64 address); #else static inline int zynqmp_pm_get_api_version(u32 *version) { @@ -622,6 +627,11 @@ static inline int zynqmp_pm_pinctrl_set_config(const u32 pin, const u32 param, { return -ENODEV; } + +static inline int zynqmp_pm_load_pdi(const u32 src, const u64 address) +{ + return -ENODEV; +} #endif #endif /* __FIRMWARE_ZYNQMP_H__ */ From patchwork Sat Jun 26 15:52:45 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: 467517 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.8 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 362E2C49EA7 for ; Sat, 26 Jun 2021 15:53:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1600D61C34 for ; Sat, 26 Jun 2021 15:53:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229657AbhFZPzp (ORCPT ); Sat, 26 Jun 2021 11:55:45 -0400 Received: from mail-mw2nam12on2066.outbound.protection.outlook.com ([40.107.244.66]:61313 "EHLO NAM12-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230104AbhFZPzn (ORCPT ); Sat, 26 Jun 2021 11:55:43 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OWuzd1FTBp0Ab+nw41IzIuLigorv7bm8MLKjSOQ/wFtquCyhHGApBn5UTEPGA5YeUamz7mj5A7naO+DG+BjIG67qtJRA5jgMim8SQv+cCvbVuM+qAm3qR6CpTnSknkRI78CPwiDnvImLhopQoWwqBVVX+viO7H+rAsPLX/CHL66adZ0kgApOSBQuD7TmKkkXJ0NzDUhneKAeyuo6jvrkQwlGP4p0sTsrXV4qJOmxfUf3kSRqT/Ipjy49tJRGY49MLPMCdrH/J86nlarx0bBWPwzwbB5qiibySoKFXs0lhSu0hahKRmdWpMlqRp3kQZS8xtcDk/KYchQ+BBaXATv5Qw== 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=5QCTNueeSm3Cq8bHj+O+uvcEw97uH5QOXpgQWGWFLi4=; b=YGW3WA6mlv2k1OuShOkcGRGF8HdUl127SNxQOQsD/fRXFQPV86NvLkehFRrKwGqFydLNI8327+HBnTxGZMviBdPJzg6zSu32SpJRmowJTskTmgysem2zG+WjJLL5WdjqHistszsE4P7ziFbKr7b4iYlxYFo+XVDITpYZFQXy25R8S68ISSnlcW0RY+c1Slo9ZPsxFqJcCHSGiJsOB97yfeoxvigqppYK6hlQq8kWUJXH4rizZr27CbQEROaEpmfFp/XmJy1aiGqyyGjPdSawLzZ1r5bI+H+OUOjd3/U3eXfGDyCZlL1kPLhgveau5JkjGOwHPfFVP8s5uOLKZfBvVA== 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=pass (p=none sp=none pct=100) 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=5QCTNueeSm3Cq8bHj+O+uvcEw97uH5QOXpgQWGWFLi4=; b=BmJRur+fOTBpXUnZofnKGdQ7pV0GJBNdnIjojVsRNxL/CcCJmZ8SICqxWLfgR8ga9hTVeqbY5bPAU+DSD8bvLeB9OO2cSVZxBOP+GV7ElxAHHG9g02t4cG6zYHmO7KMvfynxGu9M9pC3atsE6PfR1CSOacVc9d5PQjzUc5E2M90= Received: from DM5PR08CA0044.namprd08.prod.outlook.com (2603:10b6:4:60::33) by DM5PR02MB2729.namprd02.prod.outlook.com (2603:10b6:3:107::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.23; Sat, 26 Jun 2021 15:53:19 +0000 Received: from DM3NAM02FT008.eop-nam02.prod.protection.outlook.com (2603:10b6:4:60:cafe::f6) by DM5PR08CA0044.outlook.office365.com (2603:10b6:4:60::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.18 via Frontend Transport; Sat, 26 Jun 2021 15:53:19 +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=pass 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 DM3NAM02FT008.mail.protection.outlook.com (10.13.5.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4264.18 via Frontend Transport; Sat, 26 Jun 2021 15:53:19 +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.2176.2; Sat, 26 Jun 2021 08:53:08 -0700 Received: from smtp.xilinx.com (172.19.127.96) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Sat, 26 Jun 2021 08:53:08 -0700 Envelope-to: git@xilinx.com, robh+dt@kernel.org, mdf@kernel.org, trix@redhat.com, arnd@arndb.de, gregkh@linuxfoundation.org, zou_wei@huawei.com, iwamatsu@nigauri.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-fpga@vger.kernel.org, chinnikishore369@gmail.com Received: from [10.140.6.60] (port=59432 helo=xhdnavam40.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1lxAcE-0000uY-OA; Sat, 26 Jun 2021 08:53:07 -0700 From: Nava kishore Manne To: , , , , , , , , , , , , , , , , , , , , CC: Appana Durga Kedareswara rao Subject: [PATCH v8 2/5] dt-bindings: fpga: Add binding doc for versal fpga manager Date: Sat, 26 Jun 2021 21:22:45 +0530 Message-ID: <20210626155248.5004-3-nava.manne@xilinx.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210626155248.5004-1-nava.manne@xilinx.com> References: <20210626155248.5004-1-nava.manne@xilinx.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a35e3e5a-1f77-4a90-7496-08d938ba8523 X-MS-TrafficTypeDiagnostic: DM5PR02MB2729: X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:4125; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FLRaxyNeKistVU2v1CQOz+/hYDhQHac9htgZv3PGzNmz8Y0OMHXY4QfeiLTZWrzvOqq+ywK9046QWt7eJLKuL27ginyTOHPdVtN16hjpVgSImuGT4QHxCQcmIFyrmjHtsYS7tbtVqanYlAwhgJ+xO/+g1Ncc7Bn0aW96EXc3lG14jBosDTMvbciA1BMHhCqxHbtWLgGguNWcofL3CQUSyxQUBS4n6nxqzaSuTVKZeLF6wpFJ+6J3fYF2i7g1PR/FfJetUVxIq8CUiLXemAcee27irTuaGn0A8vdflgmLAYUyihEKGhRU5kMNMpoYX6LdmR/8JByDcQ+uQr4Zst+SagAxkBnPQf5b/1l27Yfk9PtfAD6ZQQNHsoZsH08P40HDG/qKC3obuu8uP8htxaPtTF2mZREMIevlYpNnwFLvhYgC/KdbLVr8xuTevgxplHKpAMGyoujQfYZ72d2FScjWdcfqoPzwzCR0TuYR7aJigwoDWPNDcS+UgDiovwuF46kVyxkJNvpIKwMGauyNyicvcXU5Tkx4ZjPMVu2JZpLjg2hNQwe5LD+sjCFS/Rpfzi7+i872Vjk5psJC0qK0gyzg+Adtv4714uAjUrW5aiUXeaEFL3LGH35w/lAkqhlwQNdY+6rF6tR68+jFRJUwA4ZvAo+Bh5E37jui63dksD2ww2Vr//vDJcH5S8lyZX2jP13x9hoEvBLi5iCuMPwZ+rlFmQf/Pftye2995dZER5vvy8xBHQJQ0+TTPfvkUZoYUbk0GhQ6qjzAz9RGER5G7WQFyB62i4t+HoCxmA4ZdGFjy2iV/SP11qjX7S/LgZxVVd29mdUok18TujJDzn7azRVNCst45wCloEyNBb8pHxPWZVZ4cZIXgPFWFmcWSKyIxcmaqdLq7GYoWAJ7CjByroaTei3AZdWpez3w4tVsXx1O7Fcw+9TmWQ+gmK6FxOj/LJJceJavK5ZgHs4jcFQqDC/ETg== 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)(39850400004)(346002)(376002)(396003)(136003)(46966006)(36840700001)(7416002)(9786002)(82740400003)(47076005)(2616005)(83380400001)(2906002)(478600001)(186003)(36756003)(316002)(8936002)(26005)(8676002)(7696005)(36906005)(36860700001)(336012)(6666004)(107886003)(1076003)(4326008)(356005)(7636003)(426003)(82310400003)(5660300002)(110136005)(921005)(966005)(70586007)(70206006)(102446001)(83996005)(2101003); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jun 2021 15:53:19.7492 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a35e3e5a-1f77-4a90-7496-08d938ba8523 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: DM3NAM02FT008.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR02MB2729 Precedence: bulk List-ID: X-Mailing-List: devicetree@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 Reviewed-by: Rob Herring --- Changes for v2: -Fixed file format and syntax issues. Changes for v3: -Removed unwated extra spaces. Changes for v4: -Rebased the changes on linux-next. No functional changes Changes for v5: -Updated fpga node name to versal_fpga. Changes for v6: -None. Changes for v7: -None. Changes for v8: -None. .../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..ac6a207278d5 --- /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: versal_fpga { + compatible = "xlnx,versal-fpga"; + }; + +... From patchwork Sat Jun 26 15:52:46 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: 467887 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.8 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 800E2C49EA7 for ; Sat, 26 Jun 2021 15:53:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6AB2761C3E for ; Sat, 26 Jun 2021 15:53:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230274AbhFZPzx (ORCPT ); Sat, 26 Jun 2021 11:55:53 -0400 Received: from mail-bn8nam11on2070.outbound.protection.outlook.com ([40.107.236.70]:27489 "EHLO NAM11-BN8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230214AbhFZPzw (ORCPT ); Sat, 26 Jun 2021 11:55:52 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KqB4NVdPqdx4gfbsGUkX2FKjCAclVDrVBjEEqeUF/NeC9234nUMOwoikTR+h6iaEynr5aQixB2qLWQfMJjkT57hY9wo6F05Dld6riKoUOjmxZ/lIgXTWNla2KFz3qyba4b+oGV4vlBDIOtW8wZQlHrKjWXx5Vyv14U8zu5ZXsfDIusWOsJ6vxObaIwSXrgkou8/xhcKfbaElLcVQKtwMC/cqcsbad9mWdP5CDO3TQbU0n6+HK01X/Y2NsTRyPyYP2l4ql3JHuLR/HH4EhsN4eI4ukjlBr0udnmiIcuF7xMVklr4eqvX53gloCozmaWXzXmpU6Ao/24uiKw4eGFewaw== 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=ekfT3nWBsx27HZztkh6foa9TrVwSFqlGWBR1D9nI/A8=; b=lYVof9r586bIpuQDN8nO7kmZWQixK6Zs20JYotNkG84utuqz9Ctdxt/+/CFOds0oQOXPhK/x2kIiktDm9rP0uh7RGqbP4Zr5VaEcRn+QFUHtJFa9f2I2GurJqRoQmjnmBIV26aH5fdKPTFT5vAtmxrQgO6Be8zTcSSjIy+bn6oWcETBJ3G8ttkIUXeRPOMuZEVoQrELcnVEag0dfcxvHmM0ACqbYvtJRdcpH4alzBQAUvYcTEuBmKmhCwPrwipL/GhkERGr+nrZJEYnjlSHHn6vRp8OyGyuIzvisNuqqYdpplUmWsL9hUgBtftox6L0HwgXqirNhi/no6dExyDWXng== 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=pass (p=none sp=none pct=100) 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=ekfT3nWBsx27HZztkh6foa9TrVwSFqlGWBR1D9nI/A8=; b=kK4ICwNtl3551+4M2qQH5vke5Np/1onesoZf8smGV0qXyBtbWf/RLbKfPeFjqYYGCpZuTNv4mk3ufS8ceWCYEWtbrM0B5Hs9ofeWtM4KlQqk9OQbqrltOEU0R4M8GLjwfEsQkF3p2GXEiqpRXKr7N7GMi9FwAd0e28jNr7JBeF8= Received: from DM6PR13CA0059.namprd13.prod.outlook.com (2603:10b6:5:134::36) by BY5PR02MB6051.namprd02.prod.outlook.com (2603:10b6:a03:1b5::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.20; Sat, 26 Jun 2021 15:53:25 +0000 Received: from DM3NAM02FT044.eop-nam02.prod.protection.outlook.com (2603:10b6:5:134:cafe::ea) by DM6PR13CA0059.outlook.office365.com (2603:10b6:5:134::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.8 via Frontend Transport; Sat, 26 Jun 2021 15:53:25 +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=pass 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 DM3NAM02FT044.mail.protection.outlook.com (10.13.5.98) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4264.18 via Frontend Transport; Sat, 26 Jun 2021 15:53:25 +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.2176.2; Sat, 26 Jun 2021 08:53:13 -0700 Received: from smtp.xilinx.com (172.19.127.96) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Sat, 26 Jun 2021 08:53:13 -0700 Envelope-to: git@xilinx.com, robh+dt@kernel.org, mdf@kernel.org, trix@redhat.com, arnd@arndb.de, gregkh@linuxfoundation.org, zou_wei@huawei.com, iwamatsu@nigauri.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-fpga@vger.kernel.org, chinnikishore369@gmail.com Received: from [10.140.6.60] (port=59432 helo=xhdnavam40.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1lxAcK-0000uY-2K; Sat, 26 Jun 2021 08:53:12 -0700 From: Nava kishore Manne To: , , , , , , , , , , , , , , , , , , , , Subject: [PATCH v8 3/5] dt-bindings: firmware: Add bindings for xilinx firmware Date: Sat, 26 Jun 2021 21:22:46 +0530 Message-ID: <20210626155248.5004-4-nava.manne@xilinx.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210626155248.5004-1-nava.manne@xilinx.com> References: <20210626155248.5004-1-nava.manne@xilinx.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 366f3bec-6003-4e41-5991-08d938ba884e X-MS-TrafficTypeDiagnostic: BY5PR02MB6051: X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:3968; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: X4FdhzP0FbxNiBTT+jGDQ5T8HfEkhGWJu8ZGQvpCxSCVdvTShYmfsS9RdgY2XA51FUTHrvBE0ZZ1OK6qAEUXvLyFn6G3JqFJUwpyjyMMdWbnjZ9PGHsI0Yu5PxwVkxa0L3gfVdw7OeVI4kFoO3Lf0dbmybvu9rbhTeUPnfIb51F/aUubXGIx8zX7iVzeS8Z+9Jv5K6mCNjbhgvJtqVl7OhJ9sRAeQGuFvMFzwj8BtV264WegIkx6RT5NoY6fkvYTJvd7cbg8ku9jxxxVBPVCq8bbZVQ0SE8cHE3PzGj4HZJgU2k0vCJICrDSjK29R5FiqVYIDxFfS94ArlQyI01WkXh4MRdcYwgX88uAChe0d6NKCeXHGCYbvZTu27mR+pBxCMOkBP+DVrZs8sR+9PZby+aOA8d4AN5SnXvuTUGJlnDPOSgXz2LAG0YnOZSAU7zIrLMJq+gGYGZ8P/Q9B1CigP0BjPGAFIgeVC9msFpaaTAGVAZpx/w/32SMDjzupkeuCaKAFwdrNFMwkBWO4RczktVtRM8Px3iHa6NHc+ZngRjBVJoRPPC/9Cm8gB0d8tp5fmjEs+Thy9yGY+FZXjuf3IVMzaWXcQZppeArqnPGtR0jHbexwW6tDWV8HsWIGuZROU21iSW2bCUX/HIOGlQUzUxWENmtm+1y1EKeiH8fk8XniFTJQKOhbdzavxVXc9DsRe40BsoAk6ko8fuID3M2MJQVHXa8wL8VDZhLaWRP3N9g6fp1yvrTufsC9iUOFE4ZI0ki9n2POFa9db+QBeZMebWlX9HjkYFzPx+rVfaMERAf1zJfJp4yS45Mg7uVAhIM7r3z0HQ+yYiL1u/hodSXk4zPEDt7lG2wwRXwCrJw9MJsaPL7/FTGVNKBZd7A01nZbDdR1EZryMdnxQP2sTqsJw== 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)(346002)(136003)(396003)(376002)(39850400004)(36840700001)(46966006)(82310400003)(921005)(36756003)(47076005)(2906002)(316002)(110136005)(7636003)(36860700001)(70586007)(70206006)(356005)(6666004)(36906005)(186003)(8676002)(1076003)(7416002)(8936002)(426003)(336012)(83380400001)(9786002)(2616005)(82740400003)(7696005)(5660300002)(966005)(478600001)(26005)(102446001)(2101003)(83996005); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jun 2021 15:53:25.0644 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 366f3bec-6003-4e41-5991-08d938ba884e 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: DM3NAM02FT044.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR02MB6051 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add documentation to describe Xilinx firmware driver bindings. Firmware driver provides an interface to firmware APIs. Interface APIs can be used by any driver to communicate to Platform Management Unit. Signed-off-by: Nava kishore Manne Reviewed-by: Rob Herring --- Changes for v4: -Added new yaml file for xilinx firmware as suggested by Rob. Changes for v5: -Fixed some minor issues and updated the fpga node name to versal_fpga. Changes for v6: -Added AES and Clk nodes as a sub nodes to the firmware node. Changes for v7: -Fixed child nodes format ssues. Changes for v8: -Fixed some minor issues as suggested by rob. .../firmware/xilinx/xlnx,zynqmp-firmware.yaml | 89 +++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 Documentation/devicetree/bindings/firmware/xilinx/xlnx,zynqmp-firmware.yaml diff --git a/Documentation/devicetree/bindings/firmware/xilinx/xlnx,zynqmp-firmware.yaml b/Documentation/devicetree/bindings/firmware/xilinx/xlnx,zynqmp-firmware.yaml new file mode 100644 index 000000000000..f14f7b454f07 --- /dev/null +++ b/Documentation/devicetree/bindings/firmware/xilinx/xlnx,zynqmp-firmware.yaml @@ -0,0 +1,89 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/firmware/xilinx/xlnx,zynqmp-firmware.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Xilinx firmware driver + +maintainers: + - Nava kishore Manne + +description: The zynqmp-firmware node describes the interface to platform + firmware. ZynqMP has an interface to communicate with secure firmware. + Firmware driver provides an interface to firmware APIs. Interface APIs + can be used by any driver to communicate to PMUFW(Platform Management Unit). + These requests include clock management, pin control, device control, + power management service, FPGA service and other platform management + services. + +properties: + compatible: + oneOf: + - description: For implementations complying for Zynq Ultrascale+ MPSoC. + const: xlnx,zynqmp-firmware + + - description: For implementations complying for Versal. + const: xlnx,versal-firmware + + method: + description: | + The method of calling the PM-API firmware layer. + Permitted values are. + - "smc" : SMC #0, following the SMCCC + - "hvc" : HVC #0, following the SMCCC + + $ref: /schemas/types.yaml#/definitions/string-array + enum: + - smc + - hvc + + versal_fpga: + $ref: /schemas/fpga/xlnx,versal-fpga.yaml# + description: Compatible of the FPGA device. + type: object + + zynqmp-aes: + $ref: /schemas/crypto/xlnx,zynqmp-aes.yaml# + description: The ZynqMP AES-GCM hardened cryptographic accelerator is + used to encrypt or decrypt the data with provided key and initialization + vector. + type: object + + clock-controller: + $ref: /schemas/clock/xlnx,versal-clk.yaml# + description: The clock controller is a hardware block of Xilinx versal + clock tree. It reads required input clock frequencies from the devicetree + and acts as clock provider for all clock consumers of PS clocks.list of + clock specifiers which are external input clocks to the given clock + controller. + type: object + +required: + - compatible + +additionalProperties: false + +examples: + - | + versal-firmware { + compatible = "xlnx,versal-firmware"; + method = "smc"; + + versal_fpga: versal_fpga { + compatible = "xlnx,versal-fpga"; + }; + + xlnx_aes: zynqmp-aes { + compatible = "xlnx,zynqmp-aes"; + }; + + versal_clk: clock-controller { + #clock-cells = <1>; + compatible = "xlnx,versal-clk"; + clocks = <&ref>, <&alt_ref>, <&pl_alt_ref>; + clock-names = "ref", "alt_ref", "pl_alt_ref"; + }; + }; + +... From patchwork Sat Jun 26 15:52:47 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: 467516 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.8 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=unavailable 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 79BE2C49EA6 for ; Sat, 26 Jun 2021 15:53:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5B9FD61C44 for ; Sat, 26 Jun 2021 15:53:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230227AbhFZPzv (ORCPT ); Sat, 26 Jun 2021 11:55:51 -0400 Received: from mail-mw2nam12on2068.outbound.protection.outlook.com ([40.107.244.68]:31585 "EHLO NAM12-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230104AbhFZPzu (ORCPT ); Sat, 26 Jun 2021 11:55:50 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hy92E6YzyqtxDSE/XjOvsm2GZs97WOm9YGggzzBIdRyUiiIKZ2LiLtbmKUwrQroQCdIFsCuhA1AhRviKJZop+bxR2QDT8kCiVk4iCufhiLjCAmK0hLa6wejP45jGb1j43fAbOAzcuC4teG+hFM14Q2UrnpZbZ6ZCNy5zXjD2lLKinbr8WkE72LQq3S6oZM5MjMdrJxlNktNDv2e3jc2OlXtyxPjiXm3sJ07Bp2RNdye95Q7SrPgpqrUHXPuDiywYPfi0PMvtaWEfb65iW4p5Zg9lpu2kgXTQOFZADUeOLgQrwexg1gFIUa0FDv8u48QItuhfBfDBrLjU55Uehd5iag== 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=oYleBcyBD1ozOuI3ySKeI2qLzqZET7rd7G9OLw9gays=; b=ODzBvCO5d4nsZyFrlWBvEjmlReMN+02uAD80fANjUPyxetzYWHfWYF5ceyfLkUnm7AZyEMR+L2RDUp8Lwz+Fveol1lskdeJKToJInAB6MGm/+6aNPBFef48vniOyBd+3qxE+VD2W89UUSRJujkiBKOX321bejr02c2bpIPVh3CBymL9YzugNgxk17Mc9C1LXaRYEl6z8RVlHw+piWdsrSnFjCyNp4weNowZmIReqdsY6d3JPqBeEOV0L1hRo600IqjO8kSo/cIgaoGNsLS+y1SNbYT219ah2As6mEyMpqF832WI/SiaRXJnqWUgBNOI6qv4tTxGd/nWFScaHzlWr2w== 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=pass (p=none sp=none pct=100) 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=oYleBcyBD1ozOuI3ySKeI2qLzqZET7rd7G9OLw9gays=; b=MdU/MlEu/nXiJT4SfnwDLWIFhepZATbavJT27MaC4aoWfv20hGaacbRl5EbX13F8wdlMn7c3grsa8QtuJ48UeL3duIDWRolngwCSKAM/PaQKxp2iHYeVLdmSCVxOWC8zvH3Iz97SIUAtxsQFKX4mrfbzz/9LqRp4EGn6hxsaAtk= Received: from DM6PR13CA0047.namprd13.prod.outlook.com (2603:10b6:5:134::24) by MW2PR02MB3643.namprd02.prod.outlook.com (2603:10b6:907:5::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.24; Sat, 26 Jun 2021 15:53:27 +0000 Received: from DM3NAM02FT044.eop-nam02.prod.protection.outlook.com (2603:10b6:5:134:cafe::4e) by DM6PR13CA0047.outlook.office365.com (2603:10b6:5:134::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.8 via Frontend Transport; Sat, 26 Jun 2021 15:53:26 +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=pass 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 DM3NAM02FT044.mail.protection.outlook.com (10.13.5.98) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4264.18 via Frontend Transport; Sat, 26 Jun 2021 15:53:26 +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.2176.2; Sat, 26 Jun 2021 08:53:18 -0700 Received: from smtp.xilinx.com (172.19.127.96) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Sat, 26 Jun 2021 08:53:18 -0700 Envelope-to: git@xilinx.com, robh+dt@kernel.org, mdf@kernel.org, trix@redhat.com, arnd@arndb.de, gregkh@linuxfoundation.org, zou_wei@huawei.com, iwamatsu@nigauri.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-fpga@vger.kernel.org, chinnikishore369@gmail.com Received: from [10.140.6.60] (port=59432 helo=xhdnavam40.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1lxAcP-0000uY-Cl; Sat, 26 Jun 2021 08:53:17 -0700 From: Nava kishore Manne To: , , , , , , , , , , , , , , , , , , , , Subject: [PATCH v8 4/5] dt-bindings: firmware: Remove xlnx, zynqmp-firmware.txt file Date: Sat, 26 Jun 2021 21:22:47 +0530 Message-ID: <20210626155248.5004-5-nava.manne@xilinx.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210626155248.5004-1-nava.manne@xilinx.com> References: <20210626155248.5004-1-nava.manne@xilinx.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ae32428d-6acf-4de9-d547-08d938ba895d X-MS-TrafficTypeDiagnostic: MW2PR02MB3643: X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:7691; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8FngwFnHKylqFvCKXe6AccD+b1f4HR2hxx5xNRoIER3sMvKwalJOzSeU12gYyNTLla8du4btIOoghb8VnI4B6ez2OhIlI9l8tVXv+c7pCbiI+ajpsfPud/UanzUt6zVFybf9drHb+wz7kfnedSewtru3T9fWSvxIbkl+4tUN1oQRIkFZKDXJiFDOfZTL20jK6Lek46Fne0o9DQzggrzCpvOYSAUW2MnQ8CeenQQgQ1xfhzMN7PrKBDqktzltHepijgygj9aroJWdAkZdeCOjqSHXA2c2y0W633tzN9WzxwL5MfijSmddj34K29F082xrBmnR6LbAICkM1VzFSoeBUqvDxzoeR7l/2+sDpY5GBk4P8AuAjoGAcCHlei8NGvBWGdeT04pYFtNLPAYwZmWaSNhjjUJrsjf3Y+QbfaQVN4qE6RUDb6Ppxh/SZV8nY0bai4Tpz8zbwodXuNaM2CXbv1mbBYh8Ui0B8VL279vwZlzqyq2HzM63BwmEdk1aTxITerWFpyYqBGVswoprXPOl/QLCuBsgFPE4sjGWcq+gfxmuQc7E8ZtmqJtOwY8JbnF9zU0ToAvTrU4B2wv+Uqvod2WwGGCINwe51jLvzBvnZnExUyZqeRT52sdakqfo4gMv7XqSoF0MR4f0VZ1nTMsNebfRWDB/hxhtu5De4Y79b7XmizenjJlyjSalF0IIGvsBrhuXwLTj819ltctlaIlprD3a6IcpFIH1OS1sT+1yatnGTXoYuWEe0nLtTTLGRb67 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)(39850400004)(376002)(136003)(346002)(396003)(36840700001)(46966006)(921005)(110136005)(7636003)(478600001)(26005)(8676002)(9786002)(2906002)(1076003)(426003)(70586007)(8936002)(356005)(36756003)(82740400003)(186003)(36906005)(336012)(82310400003)(316002)(47076005)(6666004)(2616005)(5660300002)(7696005)(7416002)(36860700001)(70206006)(83380400001)(102446001)(2101003)(83996005); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jun 2021 15:53:26.8436 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ae32428d-6acf-4de9-d547-08d938ba895d 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: DM3NAM02FT044.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW2PR02MB3643 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The funtionality of xlnx,zynqmp-firmware.txt is replaced with xlnx,zynqmp-firmware.yaml bindings so this patch removes the zynqmp-firmware.txt file Signed-off-by: Nava kishore Manne Reviewed-by: Rob Herring --- Changes for v8: -Removed xlnx,zynqmp-firmware.txt as suggested by rob. .../firmware/xilinx/xlnx,zynqmp-firmware.txt | 44 ------------------- 1 file changed, 44 deletions(-) delete mode 100644 Documentation/devicetree/bindings/firmware/xilinx/xlnx,zynqmp-firmware.txt diff --git a/Documentation/devicetree/bindings/firmware/xilinx/xlnx,zynqmp-firmware.txt b/Documentation/devicetree/bindings/firmware/xilinx/xlnx,zynqmp-firmware.txt deleted file mode 100644 index 18c3aea90df2..000000000000 --- a/Documentation/devicetree/bindings/firmware/xilinx/xlnx,zynqmp-firmware.txt +++ /dev/null @@ -1,44 +0,0 @@ ------------------------------------------------------------------ -Device Tree Bindings for the Xilinx Zynq MPSoC Firmware Interface ------------------------------------------------------------------ - -The zynqmp-firmware node describes the interface to platform firmware. -ZynqMP has an interface to communicate with secure firmware. Firmware -driver provides an interface to firmware APIs. Interface APIs can be -used by any driver to communicate to PMUFW(Platform Management Unit). -These requests include clock management, pin control, device control, -power management service, FPGA service and other platform management -services. - -Required properties: - - compatible: Must contain any of below: - "xlnx,zynqmp-firmware" for Zynq Ultrascale+ MPSoC - "xlnx,versal-firmware" for Versal - - method: The method of calling the PM-API firmware layer. - Permitted values are: - - "smc" : SMC #0, following the SMCCC - - "hvc" : HVC #0, following the SMCCC - -------- -Example -------- - -Zynq Ultrascale+ MPSoC ----------------------- -firmware { - zynqmp_firmware: zynqmp-firmware { - compatible = "xlnx,zynqmp-firmware"; - method = "smc"; - ... - }; -}; - -Versal ------- -firmware { - versal_firmware: versal-firmware { - compatible = "xlnx,versal-firmware"; - method = "smc"; - ... - }; -}; From patchwork Sat Jun 26 15:52:48 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: 467886 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.8 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 D8ABDC49EA6 for ; Sat, 26 Jun 2021 15:53:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BE75161C4A for ; Sat, 26 Jun 2021 15:53:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230189AbhFZP4H (ORCPT ); Sat, 26 Jun 2021 11:56:07 -0400 Received: from mail-dm6nam12on2073.outbound.protection.outlook.com ([40.107.243.73]:28865 "EHLO NAM12-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230304AbhFZP4E (ORCPT ); Sat, 26 Jun 2021 11:56:04 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HKAyofezbHGp+gOJ7gS5Jb0uWf7kZRNZipz83kLd3zSn06OUbdylH377cP0CKa7cuMaDSnbHU+2K4pXmsY6m9cO3uTczZUi5me8GQZnTyif2xi4R9sXcmcxaiqKE2qRYAQFAM2q5vMVZS3eaXVdSQXGPX2MmcYpG9nVNUe7/hSinnvBhz8eCTT2+jpnbo6GugNmIfgqlWCGvhgIvdl+NdTpYO4R3t2OxxtJvzlTCtwN4hnMOl07ad4+VKg26PL+JeHQPoJ/cno4NUGVX5Lqz78CNqF+ZEeP6lB18lLt6stc1/7DLx2OXseyWaubzzsCsuWUVLstCV7CqP2CiwYR8Sg== 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=fsIIlFV3AYsirKSZxrdVP7c4qNov2kLLqxUR7az5lfg=; b=j+ZWQcOpXAfbSVh+EhoXcbeHAo/ENCnrXF4xBZQdZ4yXHnGIfZsR91F71j/LwG+o2vuZNCCoEge8JUr8fbRWHAS2LGqgXRQ16gMyL5TdT+YPutyjoV+/k2YQZkZtlFOh9jtQ8+aDSAjbkCuvDxTHw5+JpGEQbLsIfDKxpIldtjsx6m/8C28QbdoQFD4+GEUaD6k03ynL7SaNWOaGINoQa97E0w8xp7HfsyatJacc9Jvb0VDIinEh06WoxBqvtyZpHdxdm6IXe36IB7tVxzM8BAfpNQLq1G2FW6e9zmMfyDOChTPunsm5Ley2MHqxkPVF8PNCl7zsiwby+6XRYgYaMg== 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=pass (p=none sp=none pct=100) 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=fsIIlFV3AYsirKSZxrdVP7c4qNov2kLLqxUR7az5lfg=; b=RUkp7qK46LYB5HOSH9sxCwF1nLLQ+HiP114l3UhvN1WcRl8paqfzCjXqoEe9m9xVNXs8O0B+vFc18XADJQPc7eWYSRBJiWoTyXnDKotFfEhd5bq3J5aXVwaztBO5Z17kooJ9IFbz+uz1p+hQR+7yf1uD7tSoJ5J4smkzgIb0CI0= Received: from DM3PR12CA0106.namprd12.prod.outlook.com (2603:10b6:0:55::26) by BYAPR02MB5415.namprd02.prod.outlook.com (2603:10b6:a03:a0::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.23; Sat, 26 Jun 2021 15:53:36 +0000 Received: from DM3NAM02FT034.eop-nam02.prod.protection.outlook.com (2603:10b6:0:55:cafe::6c) by DM3PR12CA0106.outlook.office365.com (2603:10b6:0:55::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.18 via Frontend Transport; Sat, 26 Jun 2021 15:53:36 +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=pass 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 DM3NAM02FT034.mail.protection.outlook.com (10.13.4.156) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4264.18 via Frontend Transport; Sat, 26 Jun 2021 15:53:36 +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.2176.2; Sat, 26 Jun 2021 08:53:27 -0700 Received: from smtp.xilinx.com (172.19.127.96) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Sat, 26 Jun 2021 08:53:27 -0700 Envelope-to: git@xilinx.com, robh+dt@kernel.org, mdf@kernel.org, trix@redhat.com, arnd@arndb.de, gregkh@linuxfoundation.org, zou_wei@huawei.com, iwamatsu@nigauri.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-fpga@vger.kernel.org, chinnikishore369@gmail.com Received: from [10.140.6.60] (port=59432 helo=xhdnavam40.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1lxAcU-0000uY-UD; Sat, 26 Jun 2021 08:53:23 -0700 From: Nava kishore Manne To: , , , , , , , , , , , , , , , , , , , , CC: Appana Durga Kedareswara rao Subject: [PATCH v8 5/5] fpga: versal-fpga: Add versal fpga manager driver Date: Sat, 26 Jun 2021 21:22:48 +0530 Message-ID: <20210626155248.5004-6-nava.manne@xilinx.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210626155248.5004-1-nava.manne@xilinx.com> References: <20210626155248.5004-1-nava.manne@xilinx.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c74ca8c0-a14e-4ff6-a4ca-08d938ba8ee2 X-MS-TrafficTypeDiagnostic: BYAPR02MB5415: X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:8273; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: iEoGTuO6b8bzNU3ZIidhUqqsP1rWkgNH+mzImV4xvaNZ/rzrG+NTH4sg2WpUwNI7dhRpEQrxgjO2aTSfpWqg0ANXx2kWCTgeQWt7YBCdEFbZ60nQO2KND6RTHInRq/Jm/ohDoRh3FagEiqeErcehMGBysjaOKvibMZbfUqJ4wp/S84IAUhZW1Y47uWq2ZnLOUAjf460W69616VG+/rDOZubD0Zud/at/Y2Bu7mjcB6sPbC7H/x+bMwYeDisNxl/18FBBRaI2SBRTEEZ87/jl3TGoeqNK5hKJQlr2Bmy0AurJCV+vqfdHvjwq1mJ6+1clD/K77FbSjjgAHBhmOX5MWkGyn9mpafgRth7lSSKMw2nuroqiIPeGfXGuOK230TBEh/MJb+oZK2+7szWKq6KOi8idvZv9wNmnY06IBPBIuN3+GhpsfjPOXj+dwZhlZMImyH+q5iJjcJaPLLo6/dBgeSTsA6N+gVe7rOKO1Tqj0moZ/d+ro3fZZaFWTrQ9n720RHuc0c94NOT9xHr+9yagW2tlzxPPOiMLJ6Zsn324/tmaEhvwEnqyGu1fUbftjwXoaKiRHwpBlIwLk7ODZLtZdxZjAsLM9i4n3mJI8EF9a95FIBvmjWR6bLUiYmQGVTaP/2KGOy2IS/L+OUPCIR1qMhdBYJ+C2Y984MyIxe50f1FNrujZYRbcVSTlk78fejc13hPXfzrFhG4/dEu8qIYU6g9zMOKWIu0ZdozG8b7Q2DEGui/ia+7Z+88T9vrbsKsO7UTLxRwzRhoWJKAT6ZYU/DcO/trok/rGWB0nAKgtMN0= 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)(39850400004)(396003)(136003)(346002)(36840700001)(46966006)(4326008)(921005)(7416002)(426003)(8936002)(9786002)(36860700001)(336012)(2906002)(356005)(47076005)(82740400003)(7636003)(478600001)(83380400001)(7696005)(26005)(6666004)(186003)(8676002)(36906005)(82310400003)(36756003)(2616005)(5660300002)(110136005)(1076003)(70586007)(70206006)(107886003)(316002)(102446001)(2101003)(83996005); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jun 2021 15:53:36.1016 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c74ca8c0-a14e-4ff6-a4ca-08d938ba8ee2 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: DM3NAM02FT034.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR02MB5415 Precedence: bulk List-ID: X-Mailing-List: devicetree@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 Reviewed-by: Moritz Fischer --- Changes for v2: -Updated the Fpga Mgr registrations call's to 5.11 -Fixed some minor coding issues as suggested by Moritz. Changes for v3: -Rewritten the Versal fpga Kconfig contents. Changes for v4: -Rebased the changes on linux-next. No functional changes. Changes for v5: -None. Changes for v6: -None. Changes for v7: -Updated driver to remove unwated priv struct dependency. Changes for v8: -None. drivers/fpga/Kconfig | 9 ++++ drivers/fpga/Makefile | 1 + drivers/fpga/versal-fpga.c | 96 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 106 insertions(+) create mode 100644 drivers/fpga/versal-fpga.c diff --git a/drivers/fpga/Kconfig b/drivers/fpga/Kconfig index 8cd454ee20c0..16793bfc2bb4 100644 --- a/drivers/fpga/Kconfig +++ b/drivers/fpga/Kconfig @@ -234,4 +234,13 @@ 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 firmware interface to + configure the programmable logic(PL). + + To compile this as a module, choose M here. endif # FPGA diff --git a/drivers/fpga/Makefile b/drivers/fpga/Makefile index 18dc9885883a..0bff783d1b61 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..1bd312a31b23 --- /dev/null +++ b/drivers/fpga/versal-fpga.c @@ -0,0 +1,96 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) 2019-2021 Xilinx, Inc. + */ + +#include +#include +#include +#include +#include +#include +#include +#include + +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) +{ + dma_addr_t dma_addr = 0; + char *kbuf; + int ret; + + kbuf = dma_alloc_coherent(mgr->dev.parent, size, &dma_addr, GFP_KERNEL); + if (!kbuf) + return -ENOMEM; + + memcpy(kbuf, buf, size); + ret = zynqmp_pm_load_pdi(PDI_SRC_DDR, dma_addr); + dma_free_coherent(mgr->dev.parent, 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 fpga_manager *mgr; + int ret; + + 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, NULL); + 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");