From patchwork Wed Sep 4 10:51:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pankaj Gupta X-Patchwork-Id: 13790506 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 2AB96CA0ED3 for ; Wed, 4 Sep 2024 10:59:47 +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=+TTFyAP5yb7hZ8l7L5ej7ELeEVEO7+opRsZB4H7s0/A=; b=N1ighj5w6xfLdd9FZDKBXyRmOg nWzXhMs0hk7W/WeZe/VhI1RH6OrveKlMt/ZUFPjIbN2h5s0mkXKc9vSFReuhonN79U28j4JQVxcMN pOV1XVr8ujD2FSkYNGKDBp9TFWKehrwCE5y0Y+qKhdT4FCxscXMSFHdGrA1qgn+jINzJuGMB4ygIt p404b0pLpqAJe6pIe3qXhXKybAl4QLEGriSNeDwDX9i17hoN2IWmwmPY5a4rCPXTGwZ1rj6mgR9F2 S1nOnC/DVGCjVXSfc7nyAPvbrfH3CcduWTmsF+f3LdlECNOLMW4VmjZCPiGEx2FjRXAdUOKK//yOA DRqAWoVA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1slnja-000000041lM-2O7S; Wed, 04 Sep 2024 10:59:34 +0000 Received: from mail-westeuropeazlp170110003.outbound.protection.outlook.com ([2a01:111:f403:c201::3] helo=AS8PR04CU009.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1slnfr-000000040q2-24cL for linux-arm-kernel@lists.infradead.org; Wed, 04 Sep 2024 10:55:45 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=WDj8a1L9kzrsq9I1ccanVUwNYwIEWuzdKLFTIWrH7VOEPasARXU5rmIzyYjGIu3pS/3wATrHYB7lSiUlZ8PYKJ1BYHdLjImUeDagrItnNmacrBcDfjCEOyNUygwzk+uGcdd9tDqcCE/4z8bP3PR4FiMOxCIZ764OfrZCi5N50KCTpHyeJ/mToDjHxdNk9jB8TdTOurZQ3+jGTIsjbOPjx1Z6zqg1s/SmNyQlb8Ry1SfgCS0n3HT0o4iDDmK6OYrDH5AZZAY/j6rgEhtyNVabd4Sbq0b4/fTIxdSfphtIuOpIEE/o2Yin8oH7Jxko7t68eOOsdv3PeCztcS3JJ8d2fA== 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=+TTFyAP5yb7hZ8l7L5ej7ELeEVEO7+opRsZB4H7s0/A=; b=Y2u0s2JujTCkMyQKJdiyA3VeKqOfXdUG8s0noUYtuyWr1RFRJsnBHYvwbwWebvCf4xtAcdQQz/qhE809ae+6H9mYnKXfON/TQf3Ve6hRHU8azSBDAN3di3OmYHFSr9Wd5DG5ov2JwiBJTKupB7QVzQVmHBpUBnc69JDTKybauDgN5IfVJTPxkX+Asr8W+jC4f3Lpmr06PzT299ycoWlFRKx21ENZH5+HLsd1CJ72QNJFN5nz8BZVGjP/eXk00Yx1NEQ49uLTj4vkqrvsZYFwwIJrXfSobBIWrISBVyckRyblOJUvHpJMREc3abZcFfg7nraZ25Y7i7mnKZd5hMWA1A== 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=+TTFyAP5yb7hZ8l7L5ej7ELeEVEO7+opRsZB4H7s0/A=; b=HWX9WTDDrCoE0aTLoZZ7CceidPxnpAby3H79VyONdfb08pPvtDA4aLSo1zIFjfKz4SW+NsgILB+B0mlkdDX331gqWmaMD4h8CLy4erWOqojWxyrlOIUX3FSzN+o0cwibSLkDfrWdGTmKDhhWQhOQuYHbC1HcWSHYiLtf0VNMirFn2S+QjGh9jfOdy2BGK76xmmhEnzR1Q9bGs1F61Wv3WYjMINtT6E1BuVwpGYgwo/mpCD4KvS/nNZarLkFjzmeDoOhYE1J97pAsaiYEMrg327bA/Gierh68E/Vfttqh8gD26I6KqVcZkdH51G9qTzuvNcKb3KvlcdUFg0gSDWvC5w== 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 DU2PR04MB8583.eurprd04.prod.outlook.com (2603:10a6:10:2da::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.27; Wed, 4 Sep 2024 10:55:36 +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.7918.024; Wed, 4 Sep 2024 10:55:36 +0000 From: Pankaj Gupta Date: Wed, 04 Sep 2024 16:21:18 +0530 Subject: [PATCH v7 2/5] dt-bindings: arm: fsl: add imx-se-fw binding doc Message-Id: <20240904-imx-se-if-v7-2-5afd2ab74264@nxp.com> References: <20240904-imx-se-if-v7-0-5afd2ab74264@nxp.com> In-Reply-To: <20240904-imx-se-if-v7-0-5afd2ab74264@nxp.com> To: Jonathan Corbet , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Pankaj Gupta , Rob Herring 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 X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1725447104; l=3095; i=pankaj.gupta@nxp.com; s=20240523; h=from:subject:message-id; bh=c2GJVCidrhX1BXyQTcNgVT1gDrIReiQzjgNl9ktmYns=; b=wQbZjM/KE1AT+UADtsFWa15fhyTahVAsigCYhBCLZnMfPiIkMXKHbr9cuQUEU34rB8JPP5T0V VxCktow1A3lCdK+U3E2KolFnXs3g3JPVl1u3W71YMSAc8tpreFE93pG X-Developer-Key: i=pankaj.gupta@nxp.com; a=ed25519; pk=OA0pBQoupy5lV0XfKzD8B0OOBVB6tpAoIf+0x1bYGRg= X-ClientProxiedBy: SG2PR04CA0152.apcprd04.prod.outlook.com (2603:1096:4::14) To AM9PR04MB8604.eurprd04.prod.outlook.com (2603:10a6:20b:43b::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM9PR04MB8604:EE_|DU2PR04MB8583:EE_ X-MS-Office365-Filtering-Correlation-Id: f63da3fe-6429-4ea2-92a8-08dcccd01b04 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|7416014|52116014|366016|1800799024|921020|38350700014; X-Microsoft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yidsV5EaGN6VppyuPd6nc992QE6RExAMb7mRbORkc92Qe46tgTEy/VaowU7Mf?= =?utf-8?q?6pKOjhQkssFZv1AOvX0KxJKVTgySShuCmp4pLXH7372PyZphk7EMUTDekmRTinog7?= =?utf-8?q?rulkPgmC1ZQvHNRyD71IKSzqOJ9E1rN+PYAJDZIuXo0UUieq+p1QGjCPS78aEqIiS?= =?utf-8?q?ULP/c/jSi1DRWRFY46ZKPU/fVtvx5vwDWVZzIQBKf8GhUluUsW8U+5Iod9wDH+3tN?= =?utf-8?q?4b+IuHKMQcRbz2aHEqwkITQVOr/OwHbiMVXBC4qRBUGr6cBOI7GfRqtSFWmU1qnWE?= =?utf-8?q?u7gB9+cbjTuPeQjL9KsiL7MQDgwZzgVRexTKNGj1g4SApH08s1FUcoOOyaCgNoSid?= =?utf-8?q?K48U9fOPFI9sjMcUoyXfU0baIYZHYhqFs1hUpqrNoJov/LxjBiIebCgIQe/usX/yo?= =?utf-8?q?/TDokdrRFu6kxmXBfDVrGQPaKEGn/8D4XNwYfQo8ekTzW+r6UQ28Urco=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:(13230040)(376014)(7416014)(52116014)(366016)(1800799024)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?BcGDVgkBVqqBeU8YgIM4OlEVC4zQ?= =?utf-8?q?8ctyWK9p20iUvjySM+z345AFNbdkQzWQasFBDK76Cbj6j5IXH3bkdqJ9YmDOgkPRj?= =?utf-8?q?k/G1/guYR0Yd+2ll8AQlX8IBf29UCMiJTXBrqKmw+PX7ghgs8Mm6iG1lhSxXDcx32?= =?utf-8?q?CrCKWNPdfSJ2EVceZrZUEejPIu3HV2FQubs5O6bLgK9snmZWYCn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X12jnDFoAuraCs2OU5?= =?utf-8?q?T8mXw2sELk0Xo/LhceichIdDD90yHdpZTv8WufqW6SkWnNAz/b86UQewm0bZmq/Ln?= =?utf-8?q?Sn4BllqfQzz+U47EMnOhh2SnecVUHmox43mTkSk9KSy6f2KaHmMOCAvc5l8zsMN5p?= =?utf-8?q?sZG5Lq34/XgnNoJHz2ZtgmsapsoXxFF4aJ+rux5fKhVmJDCrPUdU+dREvSCD5Efly?= =?utf-8?q?6xgihusiHEUD8S2f+fMTmuR07dlCaRqkfplwqgK4qANtw6pJdQ6Al6HM1GnW90mYo?= =?utf-8?q?2lUvkS1Mxx1MFmkrxt7zBtTwPLiYjT5r5qJo/74aumWfqPwn98fsbpMxgyPCC+cdu?= =?utf-8?q?d3HEasXTDLiqQAWYP6XfPfV0RnvJxUkein79kFeIrPzbAq+1TjxyYDgoAFnONWN9g?= =?utf-8?q?2C+rOPH7XN5zZE5lf4FaR6UGBKrm9awAM9A+EBb7T4LwXEKA1rW7/ju3NZUPjCMAV?= =?utf-8?q?KVbcrrn8tT91?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f63da3fe-6429-4ea2-92a8-08dcccd01b04 X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB8604.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Sep 2024 10:55:35.9451 (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: 0E7ldLb26FvBPYS0czrMyP/PNSg9DOeeiKvJbbhfMW8OlFFAmM28tgrA6oS+PB8TA5Ox04FcVR2cv7P937Bo2g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8583 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240904_035543_582426_C991EA63 X-CRM114-Status: GOOD ( 13.73 ) 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) --- .../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"; + }; +...