From patchwork Mon Nov 4 15:18:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pankaj Gupta X-Patchwork-Id: 13861529 Received: from EUR02-DB5-obe.outbound.protection.outlook.com (mail-db5eur02on2089.outbound.protection.outlook.com [40.107.249.89]) (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 2B9F91C07C4 for ; Mon, 4 Nov 2024 15:23:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.249.89 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730733819; cv=fail; b=OZI8z+HfCUTvzFkHJoCtoNDCPlXWoCEQMadjtkTJ60wPRikDPQosW/eiKJmqXt91ZyqlayN11ctNHRbEwNtSWpSjWSNQAbu3LQ74yJOjiRmyjfuFIoM49HFBFP88thnqrAwL3UybqofWfhpcxfUYkXt4YmAOUquGZpz5vivF12I= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730733819; c=relaxed/simple; bh=8bCTvi7AgU4MQ5HET0AOHmcMvn388Mh4NN86zRFZhtg=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=cDgJTKTrOyfqQd9oi8v1TjSuKv87y4HayiHOYaLzcbsghhuQWJXMCAsgv7lrT9ZjPNs/FaoAcbbr2HdjI4FZMA/CMXohSd7ryzxWiSD7qxxsBdh6iZT2zkUAgE6rRq5A1j/rSeVj3ZQcuZWpshah9BXTNfTXp87+aJlczGWIQyY= 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=BQF9DHyh; arc=fail smtp.client-ip=40.107.249.89 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="BQF9DHyh" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=FoDa1DVslTmEVJWWsJFRbWivK9dA3uR009V3ahEx2bkv210CJ8FsvZWtKtzTX6RhujNU3LYZUw0DMknC0wNKujluOv65k+aOphbCIq2LdjYG9qUJheM/7dss4DwpcqlakD7GgnB94B3LQvJucg4jy9VYch6CmdY+EdT2VpyAOBRkjp4tQSH/dNS3lFTExJpeVmxLFTHu9/aJKdaEx5bGBXxkOdcZ5AUC/tjNi88af36YMjkxgIEEXlnXd3rDZ6RqbaPC6J6Qao4i66jSPeOwBd4wFdUHXNI8AtlZSoX06M2wiueeq17SJKPajHtqqe3R/hkZvcWPEbNH/NWoQFiOxQ== 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=VGSrsAY2twtXEKswrDfqihV/6l72Pvpxp43hxJNddbf7huiTzmQd1tegM/omsUmlUBgyrifXMOOHMc//sk+OMiKDI1p+i+CcwqTBRTqLypoVkoD08Qz+1y/ZYAi/FxcLvN4iOfhkLkbE1swH3cM8srdfGAMfQ+XIYb3tA9NWVi3eb4GcSg3nmUPrj+MKyD7Lwzx5WWvbIk3nPwvuRwWmU1xb2jl8pSKVEhbsPln2DPBQ98EewQD3ZWkekWzKcBkMVM4PC7ao3HEX78uTw8eFVRPxLgx6jckQmWirvhBQRvCC/tpEQXjlU4qlWqrm+gKMRumuqxElGXuoBbES5ZBfHA== 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=BQF9DHyhW6SRHJSKPcbeAIbhOmYEfsetcUnyU24xW+aD5wnKBPcTWfNAbLe47GE3RTdUXGY/RTZ7XritO0DTlh8iwkd6VvagdtjODOUFCNaq7qOfj2TloKv/NFpGCaAtNtZ1cZhUfPoSpv8CX2m/m1pwEdHfSzBjMWC22yU0dJYQNea5OO+8z3mmtMHQV8iGvxgA0XRK2VChyco0ZAl4ydGvukIr2TdswaYYeVSjmVL8OSImdGi2I42jR5lmRjIl/AtTjog6+jVLVkVMyUmQeTF3RAW7YZftT3nFfMpMCfS12Ei3XNOM+bhByKzE8sTxH1MgsAmdGw8KMmD1GskcOw== 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 DB9PR04MB9451.eurprd04.prod.outlook.com (2603:10a6:10:368::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8114.30; Mon, 4 Nov 2024 15:23:34 +0000 Received: from AM9PR04MB8604.eurprd04.prod.outlook.com ([fe80::e751:223e:aa3d:5827]) by AM9PR04MB8604.eurprd04.prod.outlook.com ([fe80::e751:223e:aa3d:5827%5]) with mapi id 15.20.8114.028; Mon, 4 Nov 2024 15:23:34 +0000 From: Pankaj Gupta Date: Mon, 04 Nov 2024 20:48:39 +0530 Subject: [PATCH v10 2/5] dt-bindings: arm: fsl: add imx-se-fw binding doc Message-Id: <20241104-imx-se-if-v10-2-bf06083cc97f@nxp.com> References: <20241104-imx-se-if-v10-0-bf06083cc97f@nxp.com> In-Reply-To: <20241104-imx-se-if-v10-0-bf06083cc97f@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=1730733536; l=3191; i=pankaj.gupta@nxp.com; s=20240523; h=from:subject:message-id; bh=8bCTvi7AgU4MQ5HET0AOHmcMvn388Mh4NN86zRFZhtg=; b=7pHuoG8IOMl++mOl4QWTdnALzR8eAMOle8Yde5ntbi5N25PkWuLmNt09CvnkTglRGMw5jgBWs s5pNgBQtqSQB52+RHfevhxn+5/ERRh6B0lXgBnyanK+vR/J76ExNpry X-Developer-Key: i=pankaj.gupta@nxp.com; a=ed25519; pk=OA0pBQoupy5lV0XfKzD8B0OOBVB6tpAoIf+0x1bYGRg= X-ClientProxiedBy: SG2PR06CA0214.apcprd06.prod.outlook.com (2603:1096:4:68::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_|DB9PR04MB9451:EE_ X-MS-Office365-Filtering-Correlation-Id: 32096de2-68c3-4955-6117-08dcfce4a587 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|7416014|376014|52116014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-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JYSdMkRKgtHMM204zeA1RHov2yU3tGCU?= =?utf-8?q?Gbzy+hZsoWhL7mxHKSUAnZJCQ27ZWerNiYDtKHYEi9l15VIsBGPk0DT36eZjOY4Z2?= =?utf-8?q?iheQ/IGNTw27AtXHw+bWRovPBAnXaDgHfBZVoGqklOjWIiKZohYCmXcsnmuaJSsTB?= =?utf-8?q?pnHdwCYgtNQyJKpvsO61Y1Uk04vS2GAMjpsbX3deSrrsUXbJ/umuL4l3DgozZrezT?= =?utf-8?q?w/e284Z+6RxUVtlG/A6vO5uTNMKnCp4fE3tfFYSMLZ4oGw/Ch0Waaz0ljRzkBYDwI?= =?utf-8?q?x4wCH7433TJ83rZX/fFuSTC0/7Q+rw7TxXpCWPzeBU73e3C0V6Ra67WF7uH4Fobzd?= =?utf-8?q?5v9ZLOok29iUgDh9m6kC8SWZ11gey0PaBkOGBMnKQwCj9xHaC5hBjNFrTAK0C0yvx?= =?utf-8?q?UR2LVD+qdW0P1?= 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)(7416014)(376014)(52116014)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?O6mY/GrBJOQpqrhMVYG3D8iNS/x5?= =?utf-8?q?j5/Qh/l6NAa1xFnK5SXQJH2A7Lii/kvbx+3mMWII+uyzNNoFCGivZE20sliIYPxjZ?= =?utf-8?q?6iQ4GCm0XBUN/uDe0fgXfeiC9dZIXNmm0VrX+vRVkNm7uLDojXZB9m6WeFzO4oKmQ?= =?utf-8?q?hRhJMnnFTyTaNbUUPhicRP5aLyHNsGd97iRHsScisx+sP4Tg/SFMWIDHckZVFJ01e?= =?utf-8?q?gjHS49zBIZOjFnAuk3Y5WHjCieDo95YJQ5G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5iYhlvr4R86rOaQ4?= =?utf-8?q?IOGb/wgJRGSy0HlGLA/aN+u8Iv19LBf4Cvg5CqzJ3Em+gY+LtO3aGiujBONYktl9I?= =?utf-8?q?SgcCgYpoBfJp1IxFoOg8smz8Qd+lxfN01jz20NuzFVkIFEatFJqMdhiggKiPJ1Tgr?= =?utf-8?q?bOvLkEtNJZ4qQememWgOvoh+JFad9EAJ9cG4SDaloI9kWyU6gNZa3qJhUniUl8d2E?= =?utf-8?q?XlBQhdISfkfvER3QD8cpNCjNd0lqpwo5l8dEb7KfoUFRrAvrtq0hlJCle7KcTxGOG?= =?utf-8?q?dFA5kQtj7S8fHB5X2QSOgYqylVuikz/50N4EpLda91INqnnSxpfpLzVil62CN0D/g?= =?utf-8?q?WN7MFFCdVvN7qcoVBLOFyFNIq7S0ixXs86nB9CSbhJ4bYezt0gZZBtVAk0SsEA+AY?= =?utf-8?q?D+mM9aCmHAsJ?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 32096de2-68c3-4955-6117-08dcfce4a587 X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB8604.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Nov 2024 15:23:34.0996 (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: iWTThdlEnvRYC2twCNQJFrfdEryKDAhUvKO0TtJ84X3biBMaixyXDaEu9P1T2hWr+tatUHEcbAKe0YPpE+3Xbw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB9451 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"; + }; +...