Message ID | 20240523-imx-se-if-v2-0-5a6fd189a539@nxp.com (mailing list archive) |
---|---|
Headers | show
Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2045.outbound.protection.outlook.com [40.107.20.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 675FE13D2B9 for <imx@lists.linux.dev>; Thu, 23 May 2024 10:52:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.45 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716461551; cv=fail; b=s+XIpHTLRFO64aRoRYfsjoPDISh9V8fQl0gWqoCFo+yfZXpQxqkRygFZcL5UjXxbEfiGL2/OB79wga82Uj4zO+X2/0dI4AsVN14wNnx7g6obo7zTdyLipknSTpkRZqqSMK+b0LeI7M0bL8xeZXjl2akh8qaoy2Wi1ZsIbom/xA8= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716461551; c=relaxed/simple; bh=xw1GJ+zPsLPLlnmA5m7Y1uTX6ZZIrwqdd2eGDsmDHNc=; h=From:Subject:Date:Message-Id:Content-Type:To:Cc:MIME-Version; b=nIgJHsXi1Vg96mh6U1F0lac3Lwv0zX0LAhSkdTzaVEX7tx1EUjj7lggx9OAHsidrKibHHrRWzGHhOP5WmRC9YuPMCx5iqIpf8YFarBURyDIjRelvw5l4tDCgL3TFsT6UbdqBUpVOky7WK1qkaer0om0BsebwW/bwFWhl+ENv9wY= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=Ddbu7hya; arc=fail smtp.client-ip=40.107.20.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="Ddbu7hya" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bCvW34cZs/pSHXotpFQ7VtLYxNLvoAGsZSH4Ze9z9SF+VHhTbDbyghjfY03l8yepFQyJmzkvHynhUuppLz0WErtAlLJSQGILO+e+O0SKLBczHS6ZINiw0bqEEKAKonHINg1JLE2EgrXpnIVeWjFkfFX0xIQgz0ba3eenRQU7of2BCTnPlsteBY/vcbdYkj0Q597vrTgrF2U3MkCxK/Ubi5/1eLQ0rkJdb7Pq2yhG3fVgCqKuyzOQWu5zgqo55OabSqGdkJlr6O+KiNpEb7z44wxP3UKF+SZy6XJY62+fJ0ZkhoHnx4TixXmpid/n6dIOZoSxVaU7gnpkW4qqkol6ew== 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=0ROoJpttZcBa2AUWMcN8hChwhWa1Dz0FkLQswUfo/ZM=; b=azk5TZlG1xiUASgrsBQxjOvskQO1T8CFCTe7+t4lxxoOy48ZC9UHX6F1tJevNlRPZ36NJuHTbpIc0tOEXhM1ZK5Dd9KpK0RkEBRLCDNy4aH+8DKWCZzQ5rmlbyH2FDC6i6DA04k2WqKNfovZM7O5eXcy6K7kMxNJzJkPdG238tp8UUFVBcfWb4Bo97x7Voo/fQNGNjMlK3NBnMzMfy6R+xwANAolCs9i4CUOaRHC3DbQMV+aZ8yGIXpu8psHMOKnGWmaUMhwlWoj/QVD6SfTQit87ErLob5L0CUXd00+ZUIZEmYN0RsojLJ3adfxANZKeNiV+BYME4MWqYnWkQRN4w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0ROoJpttZcBa2AUWMcN8hChwhWa1Dz0FkLQswUfo/ZM=; b=Ddbu7hyabDKrDO/ccrxF7SUtrGu7j5gJ/In0qKgwrzii7nkUxtayt++eHtzrD+Y92q4V1bNCa3D+B/gyGLASi+DKPZsIpGzDfIHFC+xnTBFskU6f4tC8p06+sejn7XTCttFa3FsX673ybpVabbFUuDtYKGQJWPsYpfLjW3VqZyM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM9PR04MB8604.eurprd04.prod.outlook.com (2603:10a6:20b:43b::21) by PAXPR04MB9571.eurprd04.prod.outlook.com (2603:10a6:102:24e::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7587.34; Thu, 23 May 2024 10:52:25 +0000 Received: from AM9PR04MB8604.eurprd04.prod.outlook.com ([fe80::e751:223e:aa3d:5827]) by AM9PR04MB8604.eurprd04.prod.outlook.com ([fe80::e751:223e:aa3d:5827%4]) with mapi id 15.20.7587.035; Thu, 23 May 2024 10:52:25 +0000 From: Pankaj Gupta <pankaj.gupta@nxp.com> Subject: [PATCH v2 0/5] Communication Interface to NXP secure-enclave HW IP like Edgelock Enclave Date: Thu, 23 May 2024 16:19:31 +0530 Message-Id: <20240523-imx-se-if-v2-0-5a6fd189a539@nxp.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIADsfT2YC/03MQQrDIBCF4auEWdcyWjWkq96jZCFqmlkkBg1iC d69NnTR5f94fAckH8knuHcHRJ8pUVhbiEsHdjbryzNyrUGgkKiwZ7QUlto6MSMRlcLh5qyG9t+ in6ic1nNsPVPaQ3yfdObf9adw/FMyZ8hEb5XRvRy4do+1bFcbFhhrrR8i732PoAAAAA== To: Jonathan Corbet <corbet@lwn.net>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Shawn Guo <shawnguo@kernel.org>, Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix Kernel Team <kernel@pengutronix.de>, Fabio Estevam <festevam@gmail.com>, Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzk+dt@kernel.org> Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Pankaj Gupta <pankaj.gupta@nxp.com> X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1716461396; l=6763; i=pankaj.gupta@nxp.com; s=20240523; h=from:subject:message-id; bh=xw1GJ+zPsLPLlnmA5m7Y1uTX6ZZIrwqdd2eGDsmDHNc=; b=lBDvDCL2nAD4H8VQbCKqz8eA11Lfgv5yHjhZKFFCj2ElRi7cLtG1bYM28V0O74DllqLmEm14T efiAkVDyZSnBHUeljNfwwgDlTRcrHmkvMJVcPWeGKL/Z7ZoIh5cGYLA X-Developer-Key: i=pankaj.gupta@nxp.com; a=ed25519; pk=OA0pBQoupy5lV0XfKzD8B0OOBVB6tpAoIf+0x1bYGRg= X-ClientProxiedBy: SI2PR01CA0027.apcprd01.prod.exchangelabs.com (2603:1096:4:192::7) To AM9PR04MB8604.eurprd04.prod.outlook.com (2603:10a6:20b:43b::21) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: <imx.lists.linux.dev> List-Subscribe: <mailto:imx+subscribe@lists.linux.dev> List-Unsubscribe: <mailto:imx+unsubscribe@lists.linux.dev> MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM9PR04MB8604:EE_|PAXPR04MB9571:EE_ X-MS-Office365-Filtering-Correlation-Id: 77380095-8989-4b8a-d218-08dc7b166e4c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|376005|366007|52116005|7416005|1800799015|38350700005|921011; X-Microsoft-Antispam-Message-Info: =?utf-8?q?MvGsmafDkPcQB9iLqqqvrBDFj/x2rpf?= =?utf-8?q?nMdbEJRk1xsL4PxlWX8gO6GJw5cq2h8OsKMesJbAmTEMDX3c7BWPhIUEHUr9KNGZN?= =?utf-8?q?s/Gyg33SRvscC6X2PjsDF7BFrpg4aYpymrWzsXWpJE/ZDEbA/MRt4uSiubR1QJj7+?= =?utf-8?q?q8DI/2qo9DrZv0On/gNRUISg/w06hde/6hThM2+YLsTlyifXp7htrzMb8sYXoVTjh?= =?utf-8?q?ST+utagJ1eWeDdzuqFy5a6woMjjYvM/79rxEu4lPIu6ybGJluagaV0q4UpQdXXtxz?= =?utf-8?q?m4VyL8ZWnZOd0PTD2BYdj5i3vhJ+Q/zYZ9EV/giX2j03xA5ir2W5zmBLMNQUrX08w?= =?utf-8?q?0ZuJVn0fOdcXS6ROHkzAOzSzhiYFgnLCCkpe6qdGxY/MjJAV//gGxEIYbxQ3nrney?= =?utf-8?q?fLGN/yAHTTpD17PqVwP0dZWEsZL/pmXVqFPoaU54VhjbOCLbF2v3HxBJOvmYVUmvd?= =?utf-8?q?cYIGt7n2Rf0n59Bg/2Fz7+rlF+hQp428HQzslz81QEI2znHLxZWRJHvUf7W5nd3hm?= =?utf-8?q?oIl5D7uykROG+VsAP3iIvcy19XsSVbOinZAf6SRmb+CcJbA0P4hhaCjB66B8xKvhk?= =?utf-8?q?Aygw6RHmRpMYhrNTJpXGIq2KGjuMlR2hJwRaAiO9xJOHxcjiCOfZq5f94L7OePLct?= =?utf-8?q?t68oeYLnTRkewLm9FevJgT1cbi0tNMQQdiUoobP7U/YK3P9NPe+BV0pHUAvOhANtY?= =?utf-8?q?Ux6Kg6XeqKc1PvxIB0JiZDTvknQ5ulvdCD1QXJIBIbYRxbEPS+PR28lLj3eTUT1zc?= =?utf-8?q?VXHOIHjCBIiruE+OMfze4HCpqTUwewlJmyJkW+Am8ZhdA6f+y49reM5hBV0ZIhVKl?= =?utf-8?q?n8anQaESC88PodK8VTENPfMTvqcQTbIyMEUwRa3JSUMovdeizUfCIHSD18rBDN3ou?= =?utf-8?q?pDjzifj0iZXzZ9r+JmbBPlNhexCUh/FBPF5L3s1XI1TBRN5rF7eTdjwJ5JTmQZqVT?= =?utf-8?q?Z9XLP4s//wYpDNLniRIXvdxe+7Az7w0ZA67e3tF+dLsIOMDLCTmH/Q5DuHh/97ClA?= =?utf-8?q?jrak6DLLFRTlzeOXKS+YPF8cjc37nxl5hwtYbBIuH5ydsmOmyf6c1LXJvS9K2p5+3?= =?utf-8?q?lDsBNZm2vzvrVb+oTTGu5597Ut5JyX4tHm/IAzu9ASnkp6ikSZ6+aFa8vKEKeuu8f?= =?utf-8?q?n/zIyeEOnCDzsTFEDqlzewMlVbyOrsL6H3FzTh5zHwl/bf5T9cM2sDILi547SzqOg?= =?utf-8?q?3z5g11E8BNTUMJ95WXpWviv6XEJ3pgptFtkfqy/pieHmoa8cBzQjY3QRw=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM9PR04MB8604.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(366007)(52116005)(7416005)(1800799015)(38350700005)(921011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?dq62jYhIqPbLSqjNMCVpbxkHyCIr?= =?utf-8?q?BsxzrrZ45iUgEqOiOIFqLoKT+ROY0UeWoTSR5xbKL/9FjB9qo5/YGkC1/2djjEdiy?= =?utf-8?q?DwkQ4cXxcdGhK66LO6hTKhzESqdfHnZYkf6E6Qc/u59Baibp3taA64ENPKr16kBet?= =?utf-8?q?lmJNSF48TyfYWFT1z9zjamMe22GoYoaiTAvnO+xv3E3v2L5eSIeWsSQEeJy9K9WTN?= =?utf-8?q?wUVsalzCSwFn3U+VWSDp4BwEDZPI7TBU8ugqQfoDzxVQ5ayB+ZAuiYHRAsM5t0FtT?= =?utf-8?q?9PuNG1+HeNdXzJEAU8QQOGNuHYigJ95mXBZtTOfEVyizbXsVtPlh1Mq+c6UUWLaS2?= =?utf-8?q?QQVMAdozXIxrkhMciKkf4Qa8PsxjYGEL+EQ7FHfHf7X/e5R6hUt3562uhuRzjrIHF?= =?utf-8?q?QCljQm3CWBbQGvjSI0DTSiYd789tMmEcMZ0BRPS2R6XiGXDKX/LsowaHRTKkbJc8p?= =?utf-8?q?5h33ALfXzPIqA7/6oWF276aR6Ty4qpbwH9I4qCoWx5fmC//mc4idfrap7pswv1o/w?= =?utf-8?q?l4527cemwmL2pUm4Y/zJKiQr8pDRcXOrlIlQ4eCFls/EnuHNRppOlLw9v24A1rZDt?= =?utf-8?q?qj+vfpQtchTiKx2vUyo2EQmRlvS8s1mm43f4gnoxEHE1WChUc39pLhzbRMbyo0JZr?= =?utf-8?q?eNWNDAEoB2QG//8WeoMHxpdF94vnWPQKhXy5T+UBHTc9U66KGnIGl2M9ceUrpNgn0?= =?utf-8?q?HN3ExmdrRnZvn4yh+0jIrN0RqwTDo4g4mXt00dB211DOA6wA5Zyymt8Rw5fQwb13y?= =?utf-8?q?s5OoYUNt3itYv5B9lnJvZplnRsZmq6cNsFPT+z7hccKONjij8jDfsuBHRshKyYbIn?= =?utf-8?q?NH5em/NVfPj/1j1KegjUrdbgSoYEa+ATXSR7wO5m8QGExOxHClGPD1NNqhlKnyt0O?= =?utf-8?q?iUm/C2gpWI+vhpewqzS+BYLzgpW20t3zCFO28bgwQ68qWZcQJ430ZmH2KBikZOnGn?= =?utf-8?q?wP1I5YJ+yhU8imxiYRMXfz/OmoEP896yEwjn8RgmTHsjHqvMlAMnO6McVDzcXBAvC?= =?utf-8?q?ad7xr+POh/TntPbT7VIFQ5nQLpAE0L2USZMVLF36w9Gpq5uDpvHxqySGiH0LQYf1Q?= =?utf-8?q?4+vMddAIdEgz30DSTMgTrPKqj0qmWXPkxhJaOgDptcNw4GzLgJXjZDU6++CkwNnid?= =?utf-8?q?saAnLNVWIdm6PJYxWkE+kCfCP94gLBkU3epBAyllG4qbKOE/BPiakB9ccKV3gAYf7?= =?utf-8?q?ZkNWAL792VMbZ7gDmsDpivCXSwQaT6puqaeXH2MOET6sibU3tExkN+max0CmEK/wH?= =?utf-8?q?RvGLdE+8GUOvMl6wpdcWBXhd0AIWRQi0VhR5FxEjlG3OOGWgd8K/VEDJofjHcpigh?= =?utf-8?q?9Jz0Jb1VxjnZMVkY6MraMTxzYE9KXkF248JbN9+HrrfZh+b/N0NmaKlqG46akZ6hv?= =?utf-8?q?Q8deJS9FF8vh3ULu5aBsZAfvesCo+INgBrONCjacBOYEmnmkWSwuGWkjv6NDrBcav?= =?utf-8?q?jAEIRjcA7oyPXAYyHiGsArCm2ida1VUV77zoj9htPQovoVa/DnwdOuH2RctqDfWdK?= =?utf-8?q?SDRZ+y4M7Mr3?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 77380095-8989-4b8a-d218-08dc7b166e4c X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB8604.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 May 2024 10:52:25.2063 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: IOaKRTl52q+dU7kbCG0xTpMFRwkup3b1g/lMDul35hbtHmPb/ifBLm3W3CMgAMXDTSHetGiTXZAcsX7JUfZw8g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB9571 |
Series |
Communication Interface to NXP secure-enclave HW IP like Edgelock Enclave
|
expand
|
Hardware interface of the NXP Secure Enclave HW IP(s) like EdgeLock Enclave, V2X, SHE etc, is based on the Messaging Unit module that enables processing elements like ARMv8 core, RISC V core, within the SoC to communicate and coordinate by passing messages (e.g., data, status and control) through these interfaces. The NXP i.MX secure enclaves hardware interface kernel driver, is specifically targeted for use between application core and NXP secure-enclave(s) HW. It allows to send/receive messages to/from the secure-enclave. Patch-set adds the kernel driver for communication interface to secure-enclave, for exchanging messages with NXP secure enclave HW IP(s) like EdgeLock Enclave, both from: - User-Space Applications via character driver. - Kernel-space, used by kernel management layers like DM-Crypt. To: Jonathan Corbet <corbet@lwn.net> To: Rob Herring <robh+dt@kernel.org> To: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org> To: Conor Dooley <conor+dt@kernel.org> To: Shawn Guo <shawnguo@kernel.org> To: Sascha Hauer <s.hauer@pengutronix.de> To: Pengutronix Kernel Team <kernel@pengutronix.de> To: Fabio Estevam <festevam@gmail.com> To: Rob Herring <robh@kernel.org> To: Krzysztof Kozlowski <krzk+dt@kernel.org> Cc: linux-doc@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: devicetree@vger.kernel.org Cc: imx@lists.linux.dev Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com> Changes in v2: 4/4 - Split this patch into two: 1. base driver & 2. Miscdev - Initialize the return variable "err" as 0, before calling 'return err', in the file ele_common.c - Fix the usage of un-iniitialized pointer variable, by initializing them with NULL, in ele_base_msg.c. - Fix initializing the ret variable, to return the correct error code in case of issue. - replaced dmam_alloc_coherent with dma_alloc_coherent. - Replace the use of ELE_GET_INFO_READ_SZ, with sizeof(soc_info). - Replaced -1 with -EPERM - Removed the safety check on func-input param, in ele_get_info(). - fix the assigning data[1] with lower 32 address, rather than zero, for ele_fw_authenticate API. - Correctly initializing the function's return error code, for file ele_base_msg.c. - replaced 'return' with 'goto'. - Use length in bytes. - Corrected the structure se_msg_hdr. - Moved setting of rx_msg to priv, into the function imx_ele_msg_send_rcv - Will add lockdep_assert_held, to receive path, in v2. - corrected the spacing at "ret = validate_rsp_hdr" - FIELD_GET() used for RES_STATUS - Re-write the structure soc_info, matching the information provided in response to this api. - The "|" goes to the end of the previous line. - Moved the locking and unlocking of the command lock to the caller of the function. - removed the safety check for device private data. - Structure memory reference, used to read message header. - In the interrupt call back function, remove assigning waiting_rsp_dev to NULL, in case of response message rcv from FW. - do while removed. - replaced BIT(1) for RESERVED_DMA_POOL, to BIT(0) - The backslash is removed while assigning the file name with absolute path to structure variable.fw_name_in_rfs =. - Update the 'if' condition by removing "idx < 0". - mbox_request_channel_byname() uses a "char" for the name not a u8. Corrected. - devm managed resources, are not cleaned now, in function se_probe_if_cleanup - Used dev_err_probe(). - Used %pe to print error string. - remove "__maybe_unused" for "struct platform_device *enum_plat_dev __maybe_unused;" - used FIELD_GET(), for RES_STATUS. Removed the use of MSG_TAG, MSG_COMMAND, MSG_SIZE, MSG_VER. - Depricated the used of member of struct se_if_priv, bool no_dev_ctx_used; - Moved the text explaing the synchronization logic via mutexes, from patch 1/4 to se_ctrl.h. - removed the type casting of info_list = (struct imx_se_node_info_list *) device_get_match_data(dev->parent); - Used static variable priv->soc_rev in the se_ctrl.c, replaced the following condition: if (info_list->soc_rev) to if (priv->soc_rev) for checking if this flow is already executed or not. - imx_fetch_soc_info will return failure if the get_info function fails. - Removed devm_free from imx_fetch_soc_info too. 3/3 - Made changes to move all the properties to parent node, without any child node. 2/4 - Use Hex pattern string. - Move the properties to parent node, with no child node. - Add i.MX95-ele to compatible nodes to fix the warning "/example-2/v2x: failed to match any schema with compatible: ['fsl,imx95-v2x']" 1/1 - Corrected the spelling from creats to creates. - drop the braces around the plural 's' for interfaces - written se in upper case SE. - Replace "multiple message(s)" with messages. - Removed too much details about locks. Testing - make CHECK_DTBS=y freescale/imx8ulp-evk.dtb; - make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- -j8 dt_binding_check DT_SCHEMA_FILES=fsl,imx-se.yaml - make C=1 CHECK=scripts/coccicheck drivers/firmware/imx/*.* W=1 > r.txt - ./scripts/checkpatch.pl --git <>..HEAD - Tested the Image and .dtb, on the i.MX8ULP. Reference - Link to v1: https://lore.kernel.org/r/20240510-imx-se-if-v1-0-27c5a674916d@nxp.com --- Pankaj Gupta (5): Documentation/firmware: add imx/se to other_interfaces dt-bindings: arm: fsl: add imx-se-fw binding doc arm64: dts: imx8ulp-evk: add nxp secure enclave firmware firmware: imx: add driver for NXP EdgeLock Enclave firmware: imx: adds miscdev Documentation/ABI/testing/se-cdev | 42 + .../devicetree/bindings/firmware/fsl,imx-se.yaml | 154 +++ .../driver-api/firmware/other_interfaces.rst | 119 ++ arch/arm64/boot/dts/freescale/imx8ulp-evk.dts | 17 +- arch/arm64/boot/dts/freescale/imx8ulp.dtsi | 14 +- drivers/firmware/imx/Kconfig | 12 + drivers/firmware/imx/Makefile | 2 + drivers/firmware/imx/ele_base_msg.c | 286 +++++ drivers/firmware/imx/ele_base_msg.h | 92 ++ drivers/firmware/imx/ele_common.c | 343 ++++++ drivers/firmware/imx/ele_common.h | 46 + drivers/firmware/imx/se_ctrl.c | 1220 ++++++++++++++++++++ drivers/firmware/imx/se_ctrl.h | 145 +++ include/linux/firmware/imx/se_api.h | 14 + include/uapi/linux/se_ioctl.h | 88 ++ 15 files changed, 2591 insertions(+), 3 deletions(-) --- base-commit: b63ff26648537a5600cf79bd62f916792c53e015 change-id: 20240507-imx-se-if-a40055093dc6 Best regards,