From patchwork Mon Jan 20 16:52:20 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pankaj Gupta X-Patchwork-Id: 13945021 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E25D4C02182 for ; Mon, 20 Jan 2025 11:32:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To: In-Reply-To:References:Message-Id:Content-Transfer-Encoding:Content-Type: Subject:Date:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=dZoRgTn45yJn+Pnp3LFTUwhkGYSMYn5cLf7fH4YbYkY=; b=YViW1hYk1meqOHPIOI06tG+czD PavqPrhYTtDKuJgKMhGcQtEKDzb8X1co0dTbuMU5QDF06hRx3Nj+djJdAL1k2XW3nylQyMgAtTY05 GWh8dD6pTqV4GjexwRdpN1qwAo7O6s4swIuQGrRCd/ImwzQW65KhqWgteQhr2WsSYKOm+SEk1g4HX 6J1EQ+KzsGeR2cgY14JbM3qWCgZAYtFF/uFzusXZLdu9W1ES9fT/lt9LL93MrozRBOV3a7OQLvZ14 0Iy56yzcDdztpdoEeEcGwjgYdXFhnR1c4gZ5WeMpZ01R1pDb5Y2rgIFEjKjgEdYC+1UD+29Hzx4Uf o94R/jWA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tZq0x-00000005Ram-1Qh4; Mon, 20 Jan 2025 11:32:19 +0000 Received: from mail-northeuropeazlp170110001.outbound.protection.outlook.com ([2a01:111:f403:c200::1] helo=DB3PR0202CU003.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tZpxE-00000005Qsn-1uOp for linux-arm-kernel@lists.infradead.org; Mon, 20 Jan 2025 11:28:29 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=EDZKHDk8ho5hr0nOMfRhWHBMNvdH+2NzNNx1gXLPZiMBN4RkS2dzQxJkelgvV2t9Pv4r9rzElagvnBRn4+yHUu41fFOWw0SOtPqrdCW/fEpuZewgbBx02IXISDgYkNKXPmFTw54q7SFdubtCEvUM0svx/Y8Ht2ySI1OvPz6P23Gjp+qCC3HIRboMELoyjvlVMzJup7Vp6lW35RRYwRLyOMKnq4aW8U4toRc1B1P62UzPp7V5WtwJ8Oqm21VwhMW9YoHXtxvhb2OKXyMLp6rK3+x9a0COa1mh9+QqOk3wTt7L1ymrhh8+4/DHO+4rC5wkWK6YvThLFIvcUr2iBgVeDg== 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=LAYpsVfxuXoL1JP8HkdC6I17ZF756D46B29jZV65W+BV/5jFxur+RpWBDMx/0+zlGg6R+Mso3i18FGZmML02UnOs07R+VH2Nd68USuz9ChlwP3KAxxh/1zvkRFE6Y9Zy9sxOT0mQpzSlPV6n+YvvHEQscrf1mttJa65E1AAVAZrdafEf12NSDSwkFcqW7suYs2EJwvVEMDePCVDA3JLl2LwjmndJIHGxMNeEtb3g1J9aSnFOp04egIQlvva5F9yYE1646iZtTAizIkWWgNbiivpE6i5AuvPCyre1ibRcLgtczELpGaA+s+554seIzsRfzSZXxWtizC2h7ICjfMt08g== 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=ac0OM9FJlNHVu1tCs5SI2I9Bnb9DVz2ksNmj86g96qTxLqG0c4wuyqPi9Ca3NGAO3qaR7ztot4cUyXPMOe4mJ5/8YMd9Ma312odZ0RkuipWA8Z8lCYi19tnyqmXGYBb28kvLfVVDEQmMb9gJUMtHGF+3ixk1uId59DYTV+1eAjzdn/g2/GgbLcHvJvFxM5yEutmtfq4J64qkNeChQMmS8zH1NNPefjxA47C+zqDOMKWijGaf5DW0whrYej7y6Kz4gUaOgYLzRHPU7Opdp8TgBWdLEnM/WMkT5Zv5l0oRR8OMzbI5Fmu/qTkrAgUCVxjjElQf5kkqqm6QH7euVoUHww== 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 AS4PR04MB9551.eurprd04.prod.outlook.com (2603:10a6:20b:4fa::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8356.18; Mon, 20 Jan 2025 11:28:27 +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.8356.020; Mon, 20 Jan 2025 11:28:27 +0000 From: Pankaj Gupta Date: Mon, 20 Jan 2025 22:22:20 +0530 Subject: [PATCH v12 2/5] dt-bindings: arm: fsl: add imx-se-fw binding doc Message-Id: <20250120-imx-se-if-v12-2-c5ec9754570c@nxp.com> References: <20250120-imx-se-if-v12-0-c5ec9754570c@nxp.com> In-Reply-To: <20250120-imx-se-if-v12-0-c5ec9754570c@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=1737391948; l=3191; i=pankaj.gupta@nxp.com; s=20240523; h=from:subject:message-id; bh=8bCTvi7AgU4MQ5HET0AOHmcMvn388Mh4NN86zRFZhtg=; b=ubQoKppsK5ymS9Sb5CdJWU6nI3nYqjnzveKJlgZapAm+aQTIfLMQQ4krkMcJyTy2FHIM1GvIj 5/fAfUnkrvUB8o2Uyag7gHWs5/6oVtclLCCoi3x4KsypG7NEvBj0jXi X-Developer-Key: i=pankaj.gupta@nxp.com; a=ed25519; pk=OA0pBQoupy5lV0XfKzD8B0OOBVB6tpAoIf+0x1bYGRg= X-ClientProxiedBy: SI2PR01CA0051.apcprd01.prod.exchangelabs.com (2603:1096:4:193::6) To AM9PR04MB8604.eurprd04.prod.outlook.com (2603:10a6:20b:43b::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM9PR04MB8604:EE_|AS4PR04MB9551:EE_ X-MS-Office365-Filtering-Correlation-Id: d8b60deb-3961-4d40-a893-08dd39458ee1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|7416014|376014|52116014|366016|38350700014; X-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?9aGnQZYRtK80hSt3fz320Rbp+0c6mQs1UOBFfQFOUvDe4TB4s8mS9ycoN9IUmtE8o?= =?utf-8?q?+RybuSCXFrqJ75NtlGF1Di1REeYmavcnsukuBwb5fRAEUuiP6gy4vnUtGc3uDsOL2?= =?utf-8?q?dKDv5HEUyvbavf0/sOVWVtafJacPc6lGVkjY9iJhwh9lMR976VtNRqUJcGjXRtIbT?= =?utf-8?q?vk2p/Scu+FobMVxpsRQ7Bt13cPFNTItnr7CgxjHhKSUUyPCIlPXF0e1qgdwD0r3lV?= =?utf-8?q?61l3nsgCoyOguksgqU3IJgq5ry4TG/B4KKK+3CH40S1HSF6jBa85IKXz6e3D+zHV6?= =?utf-8?q?X/kXsKJOVYujmvBOvu/tIGLPfPFYSJ29lHssQV1J3Kop2bj66g1Hh9hZlfkaoR3l7?= =?utf-8?q?uk6Hst/r7fh8v0AQ6eBmUfARgK4PFWvUfa/GSEl5fNfhXisM7BOMP3SzftJXiihJ7?= =?utf-8?q?5JGw4+660tLTBKpmWEvQGxlgAPFV3iD7BISrPP89K0/PMfhqcF30f9Gvy8+DK7RKb?= =?utf-8?q?9XOEeRw3AfZz?= 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)(7416014)(376014)(52116014)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?2KFsjTHlbJhcTyhViaATOi9WlLwC?= =?utf-8?q?GOFmYHMx1UqUmmvGcqEFP6zIPqBYTZvqiS6PfFrh4NZjgk/+DLhAy7bClQUqKH/TB?= =?utf-8?q?qXgbwqEaFPW+Sz5pL8ui24dXaRcTvEU1jCdxsheoFHkRuWqGNEKgciUERwESAvWDl?= =?utf-8?q?TYyrtDTmCBh5FHb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R5se0v7ymF170kY3HJEWtE5mpgVb3LSByoIVWZgN/5JzAy?= =?utf-8?q?REOwLoo4z/XLgufU1iYhEyBiDBWSeNdMtpHGTFuHHvFVZG1eh5+qNNe22aHzhto84?= =?utf-8?q?m52DckbRqqrWCwXddzY+nY/MDCZ+cEnvQqGHdhCZQFTe9VD8+y6ak5USK9w/0Od+/?= =?utf-8?q?dfGr2nZmmHC/VGgktwyEGz4OJQBW5PWRzgvqEBadD/3wmpyZd43s5BFFaDyXl88lM?= =?utf-8?q?YWjWwXa7WR7O+1vyumEnSJgj+GLs7YuTen88iWz17z2Xf+QhzSrfqVPsYpTvW784R?= =?utf-8?q?Je6WUqGeQDbwz+xeREOSDkyokZ6Ks+DD5GMk3crPD3gjCM47+CSXs9wXjxC/D/zbN?= =?utf-8?q?qbNB4Dm0b/tcUVynaoAz1yksNoofFxN0vQ7cdkphpXozKMnlmTWlBex1ymbtPI8mu?= =?utf-8?q?DlbMobsUWLloIMeXR3mUr0BlngRcX1josYCRxZladhqhMn90E0hk5zWQGQaqlSLMt?= =?utf-8?q?DsZAqtvMehnc?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d8b60deb-3961-4d40-a893-08dd39458ee1 X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB8604.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jan 2025 11:28:27.0658 (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: uNbksYlVMW/qo5VlW9yEd0PjjJKFM0uPurWEPHzbJ10ciQFtdSB9GR24tNCY7G8diCtYEriJT5LOqPCaOzsngA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR04MB9551 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250120_032828_558090_272C6706 X-CRM114-Status: GOOD ( 13.17 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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"; + }; +...