From patchwork Thu Jun 2 20:38:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tanmay Shah X-Patchwork-Id: 578256 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 18CC9C433EF for ; Thu, 2 Jun 2022 20:39:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239161AbiFBUjG (ORCPT ); Thu, 2 Jun 2022 16:39:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229922AbiFBUi6 (ORCPT ); Thu, 2 Jun 2022 16:38:58 -0400 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2042.outbound.protection.outlook.com [40.107.100.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D714DBF68; Thu, 2 Jun 2022 13:38:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=X0GWh/j1N2XBe91xCqWGQorrlN2d/K6MdRp8hYocSBIF9AAGRi6xz+ywYB+7WhfvyPc/nMyjt7l+TFa9AHhry3b5ZpJ3cEnhJO1tlbH5kDmzkTQ7ZP7sPJ5rzc0/DA1m4h97My9wxpkB6A9vRVpyv69xVkISV9uoy/Tgreb9S/PNHgyIz4GnBNsA7+Xze7II40lqHAgxDyULAlhN6J81h02+fM4PR/fO0Ou4AqEmOHzV9Q+JR9a8DH2/H5tYkPpkbSDLBJj+6WMi7JxQdTU0D1KricoHQN43iQJ01n/HtBscYZTQd4XtX2Kj+K/34ceuZEj9XKDIKalSIzytvNZa5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=u6wDV+udcR/TPyOSoBDiuwURCXJveHtP9CkVFQ6aGt8=; b=XKO7SeZ2gA7AtzuTNK5NFXL2MtoeJm/X4N5ZXSDqEAbyZUC3eFj52EZ40AmkbBw/OsJhzgqoDb606Xxk1wiTqXwAGgCSnqXkzJY+8YmuBfP/Q+8pu/UCleBH0z/UQyoMAVU9gQ14wkbAqy90vSJ7DGEaE+GXmSGTzaNMtAuLZ4lVYWG3O8c1st/cvYOZjS32s/CCfcKN21NQAiQLQy/SlJpBwOGHDRedZ1yKZ74NyAQwdkxuJLA33P9F3S1lZmIfu+PevNzfsuYR6jY0JQcxATaLFrF7pIrlqEDBP+Lz89RpWIPlSpLVMnrld0AROeoZVb+iR9DujwbFKuP8FkdVGA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=linaro.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=u6wDV+udcR/TPyOSoBDiuwURCXJveHtP9CkVFQ6aGt8=; b=pRp1xDgrc8pAyzY4SiC/yzQBxjRDwdPhDXiBS3xzBvuht599K6A8PeBiP6peWWv1lhIG3PpCwO4zeeaZWXUFN/EGUN5wml0unyeAu179bhYmP4gW7pDfF0FTzZACCRMbZ6pGLMpawpuZXyQ8sxmq5AZnPw9wI6cPz6bkcpEbytQ= Received: from BN8PR15CA0047.namprd15.prod.outlook.com (2603:10b6:408:80::24) by BN7PR02MB4195.namprd02.prod.outlook.com (2603:10b6:406:fb::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5314.12; Thu, 2 Jun 2022 20:38:53 +0000 Received: from BN1NAM02FT016.eop-nam02.prod.protection.outlook.com (2603:10b6:408:80:cafe::25) by BN8PR15CA0047.outlook.office365.com (2603:10b6:408:80::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5293.19 via Frontend Transport; Thu, 2 Jun 2022 20:38:53 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; dkim=none (message not signed) header.d=none;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-pvapexch01.xlnx.xilinx.com; pr=C Received: from xsj-pvapexch01.xlnx.xilinx.com (149.199.62.198) by BN1NAM02FT016.mail.protection.outlook.com (10.13.2.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5314.12 via Frontend Transport; Thu, 2 Jun 2022 20:38:52 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch01.xlnx.xilinx.com (172.19.86.40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Thu, 2 Jun 2022 13:38:49 -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.14 via Frontend Transport; Thu, 2 Jun 2022 13:38:49 -0700 Envelope-to: bjorn.andersson@linaro.org, mathieu.poirier@linaro.org, robh+dt@kernel.org, krzk+dt@kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, openamp-system-reference@lists.openampproject.org Received: from [172.19.3.14] (port=53866 helo=xsjtanmays50.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1nwraj-0007MG-76; Thu, 02 Jun 2022 13:38:49 -0700 From: Tanmay Shah To: , , , , , , CC: , , , , Subject: [PATCH v8 2/6] arm64: dts: xilinx: zynqmp: Add RPU subsystem device node Date: Thu, 2 Jun 2022 13:38:30 -0700 Message-ID: <20220602203834.3675160-3-tanmay.shah@xilinx.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220602203834.3675160-1-tanmay.shah@xilinx.com> References: <20220602203834.3675160-1-tanmay.shah@xilinx.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6ea74775-2bca-4580-091c-08da44d7e836 X-MS-TrafficTypeDiagnostic: BN7PR02MB4195:EE_ X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: QPVaGk0oD3192DvK3GzI/q4vQ44ZcUHIUMIbh2eeUSJUQPac+tAmF0iPQdNkth2ONYIMUz0H+Uxpzf8DITYwDNY465jwzFUo4KIV6I5WIDpwUPC1F7UGSTr/cbu/SDb9VptKxlA+17ytn97KfJc6OC8lvcArw55qQorR/nqPMJ2XjeJ6KxcIn9EXtZKT9XPXl9xKtUuxC8+M3qBEOZk5W4kDV1W+Q3V8MlMipdlAHtGbnEKH/ayWaBKunpnh488316dlzWAlsnusZzWtjGXhOjV+KzWvHsqiADDNyiWpj5tO1RQGK1uzI2iqZn3itZ1ETLbJmah+tzL6Wdz+BZj9odYh9/BiR9LXOOfeQKkKWQdlGGODossxIc0DWPDsZtJOmt1KgRHQso9vYsWZHPH0ULdyZGrspjAZ9JKXjwkcr/YGtZvrgp+pSKvkKA+j8HpwEP0IoKNPOXV61UpSdJ/yxsO36rPOijgqGI35eBAJuXUiciIEJ/gnSOzYpo9DkhOxogKSMzIuiMyD3Qn3xKFWQThfrjiEHZBBFyXrPPyRTngh5xEPm6cU4vxXrF2vjTEA6JXF+OErh9M4q0OYeeeyQpyFnegXuEAvlDB3r/zEMdACTu5X/UYV9MbBNOZlcqyK1/g8sNpYNLYNDbhX26r6pyPHla0AOLzfctzGaqU3O0C1V09HniLz/jikQP3yj9tS/sAxRhWo7ya06nLl3tRyJA== X-Forefront-Antispam-Report: CIP:149.199.62.198; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:xsj-pvapexch01.xlnx.xilinx.com; PTR:unknown-62-198.xilinx.com; CAT:NONE; SFS:(13230001)(4636009)(40470700004)(46966006)(36840700001)(356005)(44832011)(47076005)(4326008)(7636003)(2906002)(83380400001)(8676002)(7696005)(40460700003)(6666004)(26005)(36756003)(7049001)(426003)(336012)(8936002)(36860700001)(1076003)(186003)(82310400005)(508600001)(54906003)(316002)(2616005)(110136005)(5660300002)(9786002)(70206006)(70586007)(102446001); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jun 2022 20:38:52.9296 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6ea74775-2bca-4580-091c-08da44d7e836 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-pvapexch01.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: BN1NAM02FT016.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR02MB4195 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org RPU subsystem can be configured in cluster-mode or split mode. Also each r5 core has separate power domains. Signed-off-by: Tanmay Shah --- Changes in v8: - None Changes in v7: - None Changes in v6: - None Changes in v5: - Remove optional reg property from r5fss node - Move r5fss node out of axi node Changes in v4: - Add reserved memory region node and use it in RPU subsystem node Changes in v3: - Fix checkpatch.pl style warning arch/arm64/boot/dts/xilinx/zynqmp.dtsi | 33 ++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi index c715a18368c2..e8315a4f7f61 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi +++ b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi @@ -100,6 +100,22 @@ opp03 { }; }; + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + rproc_0_fw_image: memory@3ed00000 { + no-map; + reg = <0x0 0x3ed00000 0x0 0x40000>; + }; + + rproc_1_fw_image: memory@3ef00000 { + no-map; + reg = <0x0 0x3ef00000 0x0 0x40000>; + }; + }; + zynqmp_ipi: zynqmp_ipi { compatible = "xlnx,zynqmp-ipi-mailbox"; interrupt-parent = <&gic>; @@ -203,6 +219,23 @@ fpga_full: fpga-full { ranges; }; + r5fss: r5fss { + compatible = "xlnx,zynqmp-r5fss"; + xlnx,cluster-mode = <1>; + + r5f_core0: r5f-0 { + compatible = "xlnx,zynqmp-r5f"; + power-domains = <&zynqmp_firmware PD_RPU_0>; + memory-region = <&rproc_0_fw_image>; + }; + + r5f_core1: r5f-1 { + compatible = "xlnx,zynqmp-r5f"; + power-domains = <&zynqmp_firmware PD_RPU_1>; + memory-region = <&rproc_1_fw_image>; + }; + }; + amba: axi { compatible = "simple-bus"; #address-cells = <2>; From patchwork Thu Jun 2 20:38:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tanmay Shah X-Patchwork-Id: 578257 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9C607CCA47B for ; Thu, 2 Jun 2022 20:39:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239181AbiFBUjE (ORCPT ); Thu, 2 Jun 2022 16:39:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229654AbiFBUi6 (ORCPT ); Thu, 2 Jun 2022 16:38:58 -0400 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2058.outbound.protection.outlook.com [40.107.93.58]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E56EDB5E; Thu, 2 Jun 2022 13:38:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eHhiT03A5E2sfFe6MM7NtKMj4s3qZxGksOUUetpU8U/srGQ8rpWLqECcEZmxN665aPXwBUYHi8SodVy5oGa0eIio+pY/EJGdZZ6+SsRef4HtBrVvLtbty8/qUHQwb5UGjTN+C1+xl8GnhOEIaggXuynC9WF7uQOCvf0O57zecKFIenidJluxgoqQHjDEcOtE7uhOiZDQuzY9FyW1Qyr7y7Y7QPGjHbXaFcGG+99AKJeJ6Ya4Mj0Pu/MdENvwbEHNR6kPFaWPh259jjtXydwhH8yKQGL4nFsfDdmZjV+1S4eVFlULsQueujgJPT/B+fDyI4qwNtNqV337pjQnnNvksQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ImS6rjZlO0u0VFlGfbk/X+3mkdIzchuLFAwqgn8EGQc=; b=Fn0LE072JVlEgUdBcKAUgUZOopZUoZu0UZsjbm5pvchrWpEAIZjj4OyqsCxiHTB5B+ePXwkNyS7PPz3EC66M/mNtL0MooLxbm0Tmgo5EpVz35or53UAa8YiSu+49IWPVKBFrwciD0dh4P7Xojhar3vcT8nn1fg8nYehVTkgKFsPAry6vp3cPrjnJS9tuIPwTNhJBfpnIo/npRkqse2LKp1+BB6cX5cgFYwnj0ZqIuCScpDrwttbaK85NTXiR5lSIdaFtZzybLv0DVAXaIkVRaLfxc97sRDZ4SeV+pIFBBztj3mpZBn0m2ZQvKuyTXgvxJr39f7Rx7lr90PzXM3amcw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=linaro.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=ImS6rjZlO0u0VFlGfbk/X+3mkdIzchuLFAwqgn8EGQc=; b=WKMRy/F/8sDJzmGL8InzjblEWJZwCsvaksY2RcyG2gv55soBHOjNpte4cTtaE4IUR0Q9J8Tidth710O4SXrnf1UWucrmzpHDEKvbB4n9VqGsvsPaYnj9OiO654KgWwe3k4zQeJUMMEnJZ694PBN42Yw3KTlAT894WAEHqDRgAlg= Received: from BN9PR03CA0351.namprd03.prod.outlook.com (2603:10b6:408:f6::26) by DM8PR02MB8262.namprd02.prod.outlook.com (2603:10b6:8:9::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5314.13; Thu, 2 Jun 2022 20:38:51 +0000 Received: from BN1NAM02FT052.eop-nam02.prod.protection.outlook.com (2603:10b6:408:f6:cafe::5b) by BN9PR03CA0351.outlook.office365.com (2603:10b6:408:f6::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5293.13 via Frontend Transport; Thu, 2 Jun 2022 20:38:50 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; dkim=none (message not signed) header.d=none;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; pr=C Received: from xsj-pvapexch02.xlnx.xilinx.com (149.199.62.198) by BN1NAM02FT052.mail.protection.outlook.com (10.13.2.160) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5314.12 via Frontend Transport; Thu, 2 Jun 2022 20:38:50 +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.14; Thu, 2 Jun 2022 13:38:49 -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.14 via Frontend Transport; Thu, 2 Jun 2022 13:38:49 -0700 Envelope-to: bjorn.andersson@linaro.org, mathieu.poirier@linaro.org, robh+dt@kernel.org, krzk+dt@kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, openamp-system-reference@lists.openampproject.org Received: from [172.19.3.14] (port=53866 helo=xsjtanmays50.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1nwraj-0007MG-88; Thu, 02 Jun 2022 13:38:49 -0700 From: Tanmay Shah To: , , , , , , CC: , , , , Subject: [PATCH v8 3/6] firmware: xilinx: Add ZynqMP firmware ioctl enums for RPU configuration. Date: Thu, 2 Jun 2022 13:38:31 -0700 Message-ID: <20220602203834.3675160-4-tanmay.shah@xilinx.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220602203834.3675160-1-tanmay.shah@xilinx.com> References: <20220602203834.3675160-1-tanmay.shah@xilinx.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6c5f20d5-d64c-4383-81bc-08da44d7e6e9 X-MS-TrafficTypeDiagnostic: DM8PR02MB8262:EE_ X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /wrdEdR/GFk+Gc2s+hTcs/S8jo7MGDsxqq8DpK4Yc1K10mtBKIxC/f1uHgLhcwxteWK4kCWe5/yb6mPkliQCG98oWj/hCJjOn0TYUYv0kyFJHh7j6KQ3PNQjjgnUCgT+cqu8cX0Mqb8i2YlRTPNa4CBI1FkPCx71hjHUVFOVd65mWzzNlry/y+JMSUl3z3KCE+kMJpADBFAs3eDMPhV2Tc3/jJZMead+EogD122J2TwSprtCmcrciw4boAHl6OWhq8DsRQtKu7vO0XW+e/IrlvjYtbuoG0KIdHB2l086gjv+EHCpn9IpAGNvA+MpMNGtyyst+kPOOMjuGn2ZsFpfib+gFsXs64lbUG2JVhEUVs8tIyDpIysPb1MHLGjFjW1WHuslt6L06C/U7zcUD8kIgAiPpVoLI841nyFNrtmgGL3STKbFz6A0IIX1vVxWxvccMH6GEJ2+LCrssRYXlOJNg92rvP4LBdtRGQ7mPO3k8jRWULaeRmIBEhzWWDwdbiuwRc5O2ypjEQK7O3wSkFd6ehGM5rCnlVrM+VOmm2wfsMFZ5iSnuRMqhjrMrq9bdgQisfhUCA+ice4xaMX8+zOU3eakjczFIBGF9RFElhdxaO9/C/XTnvZq0LYN/x/dvWrpO6r9C82ZLn7uO+YtARzUOC0FVMHgJFg99T30N7gpJjGD98LuGZwn2M03nKV+r0v0G9YdLYC0DvB5F5zEUD/53w== 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:(13230001)(4636009)(40470700004)(46966006)(36840700001)(36756003)(7636003)(6666004)(26005)(356005)(110136005)(54906003)(7696005)(44832011)(316002)(508600001)(40460700003)(7049001)(426003)(5660300002)(336012)(70206006)(186003)(2906002)(47076005)(70586007)(9786002)(8676002)(4326008)(36860700001)(8936002)(82310400005)(2616005)(83380400001)(1076003)(102446001); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jun 2022 20:38:50.7660 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6c5f20d5-d64c-4383-81bc-08da44d7e6e9 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: BN1NAM02FT052.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM8PR02MB8262 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Ben Levinsky Add ZynqMP firmware ioctl enums for RPU configuration and TCM Nodes for later use via request_node and release_node Signed-off-by: Ben Levinsky Signed-off-by: Tanmay Shah --- Changes in v8: - None Changes in v7: - None Changes in v6: - None Changes in v5: - None Changes in v4: - None Changes in v3: - None include/linux/firmware/xlnx-zynqmp.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/include/linux/firmware/xlnx-zynqmp.h b/include/linux/firmware/xlnx-zynqmp.h index 14f00a7672d1..54331b726ab0 100644 --- a/include/linux/firmware/xlnx-zynqmp.h +++ b/include/linux/firmware/xlnx-zynqmp.h @@ -129,6 +129,10 @@ enum pm_ret_status { }; enum pm_ioctl_id { + IOCTL_GET_RPU_OPER_MODE = 0, + IOCTL_SET_RPU_OPER_MODE = 1, + IOCTL_RPU_BOOT_ADDR_CONFIG = 2, + IOCTL_TCM_COMB_CONFIG = 3, IOCTL_SD_DLL_RESET = 6, IOCTL_SET_SD_TAPDELAY = 7, IOCTL_SET_PLL_FRAC_MODE = 8, @@ -166,6 +170,21 @@ enum pm_query_id { PM_QID_CLOCK_GET_MAX_DIVISOR = 13, }; +enum rpu_oper_mode { + PM_RPU_MODE_LOCKSTEP = 0, + PM_RPU_MODE_SPLIT = 1, +}; + +enum rpu_boot_mem { + PM_RPU_BOOTMEM_LOVEC = 0, + PM_RPU_BOOTMEM_HIVEC = 1, +}; + +enum rpu_tcm_comb { + PM_RPU_TCM_SPLIT = 0, + PM_RPU_TCM_COMB = 1, +}; + enum zynqmp_pm_reset_action { PM_RESET_ACTION_RELEASE = 0, PM_RESET_ACTION_ASSERT = 1,