From patchwork Thu Dec 19 18:57:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pankaj Gupta X-Patchwork-Id: 13915090 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2050.outbound.protection.outlook.com [40.107.22.50]) (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 F2259222575 for ; Thu, 19 Dec 2024 13:33:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.50 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734615217; cv=fail; b=JWHmDbA8hLSYFx+fAhFI5az06gmlSLN0e8g7alRsDuHUFYHNUhKBoEnSTAWBNNZK+SMpUpyR99kiXeW18U00Mk2K/VJzYDbvXBVpMmNI+xalILoO7X0Nlblypn84izHb56KoWnzew1OfFGcPLLyKxw8Bflo1w8Yj11dWoBKf6Ww= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734615217; c=relaxed/simple; bh=8bCTvi7AgU4MQ5HET0AOHmcMvn388Mh4NN86zRFZhtg=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=a+T85ossPpx0JdqO7dWthcffQFjPzYiNQDMuWEg3zaOUW7qNOAXRKEFgtziX0B54a5UgArvClafVgTHUpz4d+WdyjE3qbrk+FTI+uC7SmRJy3x4Tvt+jRoixEqZ6HZaOI6I22cu3Nc8gbUPklGn7Mvr/EH//ioBFOFHFMCFAebA= 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 (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=SOQuAKs3; arc=fail smtp.client-ip=40.107.22.50 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 (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="SOQuAKs3" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=CD45as02TCU/t4b0rpJobTAk+1hzYJB7i/PKC6Ae/WiA0PFWsEZpvqYulTJCIUn4upZXy2RryhPSa5Lwi0wpu+HAwTb7mS7GL7T/gYMIoBfvNR0ug9CzTHaX7d0IxHlfIbruXzI+Ddq/5G2VdK1kGNcxh4KjYDGfZEEVOTkKGE9p+3PGUAJjFsCkvSLd+kjEAWU8/fI95XXiI1foP5iAkKVhOE6kMNMGW/Dn9nq4yCNrVKSQl87wbfchcZCNWsUXIQZrdGheKS/jMcp0PmJ0sx5cG/pzRGXsjlHyG+OHN3AhIU3Xxg1fJg4O4SQXAYVha1Wy4JgW068yAJQj/UCYdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=dZoRgTn45yJn+Pnp3LFTUwhkGYSMYn5cLf7fH4YbYkY=; b=AFD7datj2AjtgaXUnEle2kwN3NfF9t8ZTh6Fvqf9/HulO229Bk/GxsrJaNy7Fd4+gQcJZhbJYpPO2Pum5DtSUn5zIDwU6UV07BDEVmgVk0NYHQZYULh/m5mxbUMWu+XWvpMfHBBV7iYiclwu0SQuOVLF/NN7H09ec7z3Y+7a5Y80kSv6n5cisV8TKsGabUOiTwsS2YeR+vyNpIee+zKMfNJEXbRpUORX9vwfg31aCDPHIhUhEB3KlkpBuys3VNjkGgDBV5Z5Ij1GuBsCUMLeHj2tx+aegYZDpgdmWcd9dNa5Efcb6EmccWeF0fVNoLEAfXklYIcuB3a8WcJGJqzoVQ== 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=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dZoRgTn45yJn+Pnp3LFTUwhkGYSMYn5cLf7fH4YbYkY=; b=SOQuAKs3rZzFRO1v8C6Bw0zbcf/v9XnbXP/sAFtosAcIt9UpHYYapyBTx61/jPRej9eslLA4yxeXu8pD6YZDvARmwQWty6uaFK4C3l7Zbfxfr9epKODlfbUiTH+2l6uwutl43xAop8hv1BkpsrKkzznbMFxfuKnIvBXtf/AJ9b0gwPpYDDh70L8qlwROkuW6BVCg4hRFTnbhlEbe19WKpKfXkgYvFq63I9GbsjlriEiJ/tmRdXPIAXUwPVevN/LS48F4BL9TaSaGYpyTw9u5KfewyZYq2KT3v9EYnUFF2FW/2YyAYO59a0xwYUb8Jbcz0Bgt1+KBoh12BIPZYGxEYA== 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 DUZPR04MB9919.eurprd04.prod.outlook.com (2603:10a6:10:4d9::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8272.13; Thu, 19 Dec 2024 13:33:32 +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.8272.013; Thu, 19 Dec 2024 13:33:32 +0000 From: Pankaj Gupta Date: Fri, 20 Dec 2024 00:27:23 +0530 Subject: [PATCH v11 2/5] dt-bindings: arm: fsl: add imx-se-fw binding doc Message-Id: <20241220-imx-se-if-v11-2-0c7e65d7ae7b@nxp.com> References: <20241220-imx-se-if-v11-0-0c7e65d7ae7b@nxp.com> In-Reply-To: <20241220-imx-se-if-v11-0-0c7e65d7ae7b@nxp.com> To: Jonathan Corbet , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Pankaj Gupta 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, Conor Dooley X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1734634652; l=3191; i=pankaj.gupta@nxp.com; s=20240523; h=from:subject:message-id; bh=8bCTvi7AgU4MQ5HET0AOHmcMvn388Mh4NN86zRFZhtg=; b=VAJYddXTAlOSyd4TLOYji985bpJz92SwYQb77PtfJVTetaNBhq40OQZF8vG5i2wKGtQdlUcNC z42rHmmlCZYDSEhy0knJ62WFnAODEsZLVWrhhNUEktorezdatYVHj4O X-Developer-Key: i=pankaj.gupta@nxp.com; a=ed25519; pk=OA0pBQoupy5lV0XfKzD8B0OOBVB6tpAoIf+0x1bYGRg= X-ClientProxiedBy: SG2P153CA0012.APCP153.PROD.OUTLOOK.COM (2603:1096::22) To AM9PR04MB8604.eurprd04.prod.outlook.com (2603:10a6:20b:43b::21) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM9PR04MB8604:EE_|DUZPR04MB9919:EE_ X-MS-Office365-Filtering-Correlation-Id: e7fa9c80-2c5f-4775-6f28-08dd2031bb3f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|52116014|7416014|376014|366016|38350700014;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mSjXLSQEeVkt0UvuI1E6p913K7FX9w7K+yCGyDO+on9SqSb72Wq74?= =?utf-8?q?e12J4/0gbTyzwJKT/JYEgDCSFWjwg9xbdr1lwv/l/GWsYeygE1mVyTsnojHb6iKks?= =?utf-8?q?4Ggq23wfHbkfMcERlTs5cog2ETCwZ0lriWaw8g6OKmkBe+ESSNMg00r4dCuZpG+ER?= =?utf-8?q?KhY3A10C4bkSNLRjaef/KXkiiqiZAl1/PKgY0/SmYwayVkfEFtTCcrY6uNpmfT4/8?= =?utf-8?q?hflzDKIVw+G3xPT4xSIyvMIb0oR16F3Ec/ANMX2DG0ee9Zu4Otj1eJTwxpFxfSpdg?= =?utf-8?q?b0EFdhvTqfHHLQs8uOqVLG1gTbdUaG09MntDCf46WclSsYd3I0iG2PlxozAabJi9b?= =?utf-8?q?P+jAwLhwc1Gijwi10T35WJSqOWMEvMafcgdVW+QuQzHtZkdXSlobmgGlKTHrE4ikb?= =?utf-8?q?qK+bNeU04HlQGTGRUMrZVuPzqn0L1I4sVhvJBizVxOyIQLzupJIcJUp+uwFKv9uTp?= =?utf-8?q?wzZXBdQ3m4X9?= 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:(13230040)(1800799024)(52116014)(7416014)(376014)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?3hQJoKuiRG5P8/5QE+97flBJu4Jl?= =?utf-8?q?z0Cg7R2IlrSZ9I2bnEvT8d50X1YJAhEd5VUVer/VTAKnKAavdfKD4CQhtYX5O4Lrh?= =?utf-8?q?hwAx21MlcGsvPNFwv46rbev3s4HzDMMJFcZ6eVYCy6UL46YIbSHYSFTYCD6M0WcW7?= =?utf-8?q?Xpu7q/dFOJ3U3uglD0kB35EqpY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sa/GHzxF1XYOLSDI+h5lV1eb+haDUijPUm6TfGnpsEZdp?= =?utf-8?q?zoj/FQnMr8DlYJvvAlZ1JVC5KTdt88iNwvJNi2UAaDPDTLE7JyerYWgUbfGhib0qd?= =?utf-8?q?yy2U4LQ43zNU1XWONgsOaPR95negxOKpNCwyyMKflmwjBqNnL0uqcp+vNihvJpSVN?= =?utf-8?q?ngI8m/zkX5iz5L8OfE83ViB8HE0yCaQV2IFG99bmjEny+lZIYqbXTPeq1esP+tzBQ?= =?utf-8?q?uUw6T9iA39bzJOpb7kHjE/KYb/96F8ht1tMuUT1JJvXwqjoA4Nzwql2yCeQqLgxtY?= =?utf-8?q?KdFrVjHC7Cn0ssF197ccAU9yohRQZEuPQjwhXI+8FJqxfzajwe06RkELz9Edfh72y?= =?utf-8?q?sCcvqieRwkKsW78MRvD5RF8UVWD2SJTN0DU175+cSpC48W+uoN7JYxR4Mhdl0nRX5?= =?utf-8?q?VxG3hVX+jAkpvpeSaH9QSUCp9kSXhhNplRLDnZiw3bXYiLMMZYVkaqtQj/l1lsRtX?= =?utf-8?q?i+3ilvUKwKEE?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e7fa9c80-2c5f-4775-6f28-08dd2031bb3f X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB8604.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Dec 2024 13:33:32.4308 (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: S62r3u3lL1CFFqtXCWpgRalJQNiqR85ol1C1fW0LMSWLwGyvSXsi1ohdYi79nJwwF/L1Hq8ufCS6VCNQGrC6Hg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DUZPR04MB9919 The NXP security hardware IP(s) like: i.MX EdgeLock Enclave, V2X etc., creates an embedded secure enclave within the SoC boundary to enable features like: - HSM - SHE - V2X Secure-Enclave(s) communication interface are typically via message unit, i.e., based on mailbox linux kernel driver. This driver enables communication ensuring well defined message sequence protocol between Application Core and enclave's firmware. Driver configures multiple misc-device on the MU, for multiple user-space applications, to be able to communicate over single MU. It exists on some i.MX processors. e.g. i.MX8ULP, i.MX93 etc. Signed-off-by: Pankaj Gupta Reviewed-by: Rob Herring (Arm) Reviewed-by: Conor Dooley --- .../devicetree/bindings/firmware/fsl,imx-se.yaml | 91 ++++++++++++++++++++++ 1 file changed, 91 insertions(+) diff --git a/Documentation/devicetree/bindings/firmware/fsl,imx-se.yaml b/Documentation/devicetree/bindings/firmware/fsl,imx-se.yaml new file mode 100644 index 000000000000..0b617f61640f --- /dev/null +++ b/Documentation/devicetree/bindings/firmware/fsl,imx-se.yaml @@ -0,0 +1,91 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/firmware/fsl,imx-se.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP i.MX HW Secure Enclave(s) EdgeLock Enclave + +maintainers: + - Pankaj Gupta + +description: | + NXP's SoC may contain one or multiple embedded secure-enclave HW + IP(s) like i.MX EdgeLock Enclave, V2X etc. These NXP's HW IP(s) + enables features like + - Hardware Security Module (HSM), + - Security Hardware Extension (SHE), and + - Vehicular to Anything (V2X) + + Communication interface to the secure-enclaves(se) is based on the + messaging unit(s). + +properties: + compatible: + enum: + - fsl,imx8ulp-se + - fsl,imx93-se + - fsl,imx95-se + + mboxes: + items: + - description: mailbox phandle to send message to se firmware + - description: mailbox phandle to receive message from se firmware + + mbox-names: + items: + - const: tx + - const: rx + + memory-region: + maxItems: 1 + + sram: + maxItems: 1 + +required: + - compatible + - mboxes + - mbox-names + +allOf: + # memory-region + - if: + properties: + compatible: + contains: + enum: + - fsl,imx8ulp-se + - fsl,imx93-se + then: + required: + - memory-region + else: + properties: + memory-region: false + + # sram + - if: + properties: + compatible: + contains: + enum: + - fsl,imx8ulp-se + then: + required: + - sram + + else: + properties: + sram: false + +additionalProperties: false + +examples: + - | + secure-enclave { + compatible = "fsl,imx95-se"; + mboxes = <&ele_mu0 0 0>, <&ele_mu0 1 0>; + mbox-names = "tx", "rx"; + }; +...