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: 1980674 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.a=rsa-sha256 header.s=selector1 header.b=HWX9WTDD; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:40f1:3f00::1; helo=sy.mirrors.kernel.org; envelope-from=devicetree+bounces-99922-incoming-dt=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org [IPv6:2604:1380:40f1:3f00::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WzKDM44Cqz1ygx for ; Wed, 4 Sep 2024 20:56:19 +1000 (AEST) Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id F2250B26ADB for ; Wed, 4 Sep 2024 10:56:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 255541D0149; Wed, 4 Sep 2024 10:55:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="HWX9WTDD" X-Original-To: devicetree@vger.kernel.org Received: from AM0PR83CU005.outbound.protection.outlook.com (mail-westeuropeazon11010067.outbound.protection.outlook.com [52.101.69.67]) (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 636951D0145; Wed, 4 Sep 2024 10:55:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.69.67 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725447341; cv=fail; b=iJg55REMD2QArA8mfMyxNqz1efiFC0jP5fV4S17qlaBgq7LmMzFH4CKoD2p7o6hnmDZsI1S8/HLtYL2/7+C2jTNGlRjXGkBKs3sp0cmJ6ztvEkNtl2K5h4DkRrK9QggdLD6blfDF/VqPar2eDxuKh2nPFJ5pzg7fpt7WlJGzcy4= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725447341; c=relaxed/simple; bh=c2GJVCidrhX1BXyQTcNgVT1gDrIReiQzjgNl9ktmYns=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=X32s/1MuMJ6eUxzfadf+881MxirWkNA4jWoje0M8fO7o3XsRQRsXuDTEepDb6/gFIm2gJJ37Tu7FEYE77a9EMohcUPC31gFJhwW06vDIQfNnY/BIRdg2MQx68XfSPK9NB6CmgsfYdFdMs9a3u/ukcZGxykyMkbUlAqYFAchdMkw= 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=HWX9WTDD; arc=fail smtp.client-ip=52.101.69.67 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 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) Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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-Antispam-Message-Info: =?utf-8?q?NqYhDg+lKz9U39Ux8MwgM/Tf2zLTW6I?= =?utf-8?q?rgaBhpzm1TOA+V3DYzGUGti2uH2Oh8VwWOUR+YwGFzrsOsW1axjR5HAXhtEAEe+nq?= =?utf-8?q?QHYnhuImRf0Q/eq3fPLnUx5BkJ+r9GyOIevjcElU7eAEY7U8cJPdww9dRowb9ooLH?= =?utf-8?q?0bpwZFEOmhWQ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KPU/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?CrCKWNPdfSJ2EVceZrZUEejPIu3HV2FQubs5O6bLgK9snmZWYCnM1f87oj+cffCGo?= =?utf-8?q?tQQ+xxzOw5GhCuzeub8Whi6YJC0sjsekKUqgXza//ylrZBf2xj++ftt0ZEb6tBgC3?= =?utf-8?q?RiLLnvA3YPWYt4FC74VJ1p3PpWyrGWf88CDaLng6hULnkgxxiOgKoBwoG9TOjKAEc?= =?utf-8?q?zrqrQQAyhmj2zFO8D5S01VJChs99tiFSFEwFsjdoD/6x3B4I9Td2kq/fmRR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SCD5Efly?= =?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 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"; + }; +...