From patchwork Fri Jul 5 13:52:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pankaj Gupta X-Patchwork-Id: 13725196 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 4BBFAC3271E for ; Fri, 5 Jul 2024 14:11:19 +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=E+X+4LcJ+nsjscn0bJGRuHOjwcIcirUqr8c26b0G4KM=; b=dFew117ojFDggpvrjUc9UBpNrs sGfOTfp2D3+d8HDwpnMj/Mdjb6C8bf+GPQzZCedI7NdDoih7lbQ0izw5CY4iHSAuIMpzKjI5LwVgo zw4yhoHkpomARVBSIipS2B3o2GRwRhDHZSESzFzEoN4PcE/P2le4ZpA1B1Jzp4hy+tK6yfC3cBJpZ odI5yHkLqlSGCTsxwULNCa+yaHpjRc9kUXmkCi3PT6JutkBplYJzRv2ejiqTCZJ4MPPw62QKOfg9+ 7COfDpsewVaBu29SF0fH4m4gX+PYdQAlA/LeNU7xBRyO7lynUpZJsPq8WanEtQki19kvcfO8iJlke Hdv901ag==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sPjeW-0000000GA0r-1l4a; Fri, 05 Jul 2024 14:11:08 +0000 Received: from mail-northeuropeazlp170120003.outbound.protection.outlook.com ([2a01:111:f403:c200::3] helo=DU2PR03CU002.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sPjeI-0000000G9we-2mWX for linux-arm-kernel@lists.infradead.org; Fri, 05 Jul 2024 14:10:56 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TBSJ9rvvs5E3ARenSnxYAEjT/xeb32YPB6JnoSjPOmAIRDNH0oMLrmTs2B1T+xBSrsTPEsu8axmeR/fSkdPtqMuXJbNleosEpdcDKEbL41xnmiYIZ6Z0243vY7FNeWC7NKdUtSVX02Pi8eNuMAhusYezl2SMgY6Y6adrM7lG2okLRBxqnY23YqTe5LAci/lF8KepzV++Se5WqHT3L/u/I18jsj+AnFGneDcm3Ffmqpu9+o9NSbV0945J5Q7uLYAVwFf7YIOM9CqoMkGckPSRNdaCBZEUANXZLmLklXyjORag9aC+nH/rkUoMypn7IZOhUim8cOYGYLVgQqiUw4nt6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=E+X+4LcJ+nsjscn0bJGRuHOjwcIcirUqr8c26b0G4KM=; b=Xy+oE5D4mBqOU+BkRHXszNCpWjAyAijBieVG42sSzNVSVacKYvsm1oM5oM2UYhCbaq81qsHt+zCR4hcAHw+9L1Q9zK3jxS7lRvmAwnL77YdlHgYgIACR/4WbVnulzzGZRHlRzJGyEdedcW05uzqOg0GDnuEKx4gfRcNcfWi7q5Npr/v/yUoamziKAzzJyQhnx6ZdarJNu/8dcwEb6Y2oWFVLBWOYTE4Hujr6hdj+CkAK2eCiC9mKkYZhxpfH7hStRaAnjLkF4SMYDO4nWOQM1rBRdDsZVCrQ/PVDaLhXrbdKy/XgekbHQqsVFmPIO376Ndf1+JB9xNOl7+HdvN5orA== 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=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=E+X+4LcJ+nsjscn0bJGRuHOjwcIcirUqr8c26b0G4KM=; b=Oc7GRZtQ5WYzXZ9PNieHndhTvuGBklc5pM0BhEt9oUBRenEmmdZWJgN54oH919Afvur+CYqLLiIZtX3UqayeXTapNppSPxZttrH0EaodK76jQXf2FU23eA47Jy55qBFFf5/7BjjfraBFY+uRbxP+xkJ2HAwhNpn43g7vA58d9zo= 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 DB9PR04MB9260.eurprd04.prod.outlook.com (2603:10a6:10:370::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.23; Fri, 5 Jul 2024 13:56:02 +0000 Received: from AM9PR04MB8604.eurprd04.prod.outlook.com ([fe80::e751:223e:aa3d:5827]) by AM9PR04MB8604.eurprd04.prod.outlook.com ([fe80::e751:223e:aa3d:5827%3]) with mapi id 15.20.7741.030; Fri, 5 Jul 2024 13:56:02 +0000 From: Pankaj Gupta Date: Fri, 05 Jul 2024 19:22:41 +0530 Subject: [PATCH v4 2/5] dt-bindings: arm: fsl: add imx-se-fw binding doc Message-Id: <20240705-imx-se-if-v4-2-52d000e18a1d@nxp.com> References: <20240705-imx-se-if-v4-0-52d000e18a1d@nxp.com> In-Reply-To: <20240705-imx-se-if-v4-0-52d000e18a1d@nxp.com> To: Jonathan Corbet , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Pankaj Gupta , Rob Herring , Krzysztof Kozlowski 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=1720187574; l=4546; i=pankaj.gupta@nxp.com; s=20240523; h=from:subject:message-id; bh=6weWdlgRl5lGcWG87/L1YXGq87a/EwMEcBzeAFgsoH8=; b=5xsFeZhAAUvTv2RUaHTDfL6zd4mn0QxWbTO7biMLQNc1JQKrrXLtOZOz8sTytCxy7DwnAt0EE fNtWfestrJIAdI9jtocwCFEPt01OSWxJfzUxL+jYiTP7c50jqlHmH60 X-Developer-Key: i=pankaj.gupta@nxp.com; a=ed25519; pk=OA0pBQoupy5lV0XfKzD8B0OOBVB6tpAoIf+0x1bYGRg= X-ClientProxiedBy: SI1PR02CA0059.apcprd02.prod.outlook.com (2603:1096:4:1f5::19) To AM9PR04MB8604.eurprd04.prod.outlook.com (2603:10a6:20b:43b::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM9PR04MB8604:EE_|DB9PR04MB9260:EE_ X-MS-Office365-Filtering-Correlation-Id: 5ac297c9-f5a4-43cc-26e5-08dc9cfa34be X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|7416014|52116014|1800799024|366016|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?vqYliXa4bRxEc+aS+95+1VDGcJHs+PR?= =?utf-8?q?uEpp+cX3F85xZ9MgdH67Y/RCjE8LRrZQHho/rSJCk7jb+PHjO5pFBA1ftE+kzGP0x?= =?utf-8?q?d1oaZCzDBaNEuvp3gjeU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dZGDRu7u7TInCQ49voAxdj0Z7mISE9Obz?= =?utf-8?q?d2gro31gZ1ncHp8KXIAqm1ZTy5Ub0oHqvbUtwpIjZ4p5K4hJODvpFnyKwU9a2tJnW?= =?utf-8?q?HsDOfSysC7N0cGneQb/9zo+jM+liG3CnhE0t4bRG1bIxvqeYmeipF96tePscDm8xQ?= =?utf-8?q?fu98Yfo8IxkUO8AiVE0jgzsiuj+QLm/x1zQrGVfiWnAZDmjB9BPle6DGQWyAtRd46?= =?utf-8?q?j95DWvhDbC3JabV98DUMzm9ndbhOxhHgsPWBZWj2p3BqxF4sedhh7MkAy71HcD5OQ?= =?utf-8?q?ViIREnUB2r9xu+Eo9sA7xBM3f30XnLq0zoqnUBFx1HyKv5lZIpKWbPdA=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)(1800799024)(366016)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?8U1/fBvVzM9/B7f84XD9Fsmoq9PF?= =?utf-8?q?fLhF1y9/fsZTGS0U3ZqQCu8HOOs0wBtZShP4si1UH2igLHt/KdFOQ/PNBkPvd53a1?= =?utf-8?q?cJPRJODnp6aPVh3aYkmIHshHLYA1H4GhwlCsFBJFKM+8/DKClPmrllYJUBTlDkxKN?= =?utf-8?q?si3qpYwCBuYD5Geg7sDcGmrO2clgocWaBbj7ZSuPnE24gafrJWokFCiYy/rJKttSJ?= =?utf-8?q?HRuYX0pDBs07UyuwFsZsN4p+GcCkTUuxOHoQtVSHXjlfMcLMFhv8IhBuBHRCedaRR?= =?utf-8?q?UIF8VIlIjuK0Q/pXVkYdqIz3aY+K5m5pPQ2T8ncJNjtU2dgiy6tgmUDzXPmdnZifO?=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+052AieJkl+BcyDvcNPf5bunGA3ii8RtJwnlEuW6MfToQiIkZDJl/?= =?utf-8?q?kz4NN/gyvs+EbD0fygS55mlCl05grStB2DHMtj9gMD4yWJgywb91wOWl1AucKe4zu?= =?utf-8?q?GitfJCtEq5HUpjnrl06TWK4vQiY1TVXBeF/cADoIt14SlADeDwe+ioOM77bk69b3D?= =?utf-8?q?F8IhBY7+ycxZJYkmL55FayBgZpkO/vRs1Pa+z452ioDltxEbyJdDPxbGkle2YI0Xr?= =?utf-8?q?0b/Bc59nsEvKAndldpXYuoAkJQRPxgomDdkrVFWWeC6kWd/tq8txSh2y1ccEPZNY3?= =?utf-8?q?pNvScHPUwwIm?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5ac297c9-f5a4-43cc-26e5-08dc9cfa34be X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB8604.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jul 2024 13:56:02.1266 (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: wfA2ycysUD5ZxG2GoYKIPU7Qh+tRMTiGEmqkjgJBR0QplvXl/uAxltLRdyqLkUporCkFEFIkCrujg1Vn5ipc+A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB9260 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240705_071054_872515_8815CBCC X-CRM114-Status: GOOD ( 15.19 ) 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 --- .../devicetree/bindings/firmware/fsl,imx-se.yaml | 133 +++++++++++++++++++++ 1 file changed, 133 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..b9018645101d --- /dev/null +++ b/Documentation/devicetree/bindings/firmware/fsl,imx-se.yaml @@ -0,0 +1,133 @@ +# 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 is based on the + messaging unit(s). + +properties: + $nodename: + pattern: "firmware@[0-9a-f]+$" + + compatible: + enum: + - fsl,imx8ulp-se + - fsl,imx93-se + - fsl,imx95-se + + reg: + maxItems: 1 + description: Identifier of the communication interface to secure-enclave. + + mboxes: + description: contain a list of phandles to mailboxes. + items: + - description: Specify the mailbox used to send message to se firmware + - description: Specify the mailbox used to receive message from se firmware + + mbox-names: + items: + - const: tx + - const: rx + - const: txdb + - const: rxdb + minItems: 2 + + memory-region: + description: contains the phandle to reserved external memory. + items: + - description: It is used by secure-enclave firmware. It is an optional + property based on compatible and identifier to communication interface. + (see bindings/reserved-memory/reserved-memory.txt) + + sram: + description: contains the phandle to sram. + items: + - description: Phandle to the device SRAM. It is an optional property + based on compatible and identifier to communication interface. + +required: + - compatible + - reg + - mboxes + - mbox-names + +additionalProperties: false + +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 + +examples: + - | + firmware { + #address-cells = <1>; + #size-cells = <0>; + firmware@0 { + compatible = "fsl,imx95-se"; + reg = <0x0>; + mboxes = <&ele_mu0 0 0>, <&ele_mu0 1 0>; + mbox-names = "tx", "rx"; + }; + firmware@3 { + compatible = "fsl,imx95-se"; + reg = <0x3>; + mboxes = <&v2x_mu 0 0>, <&v2x_mu 1 0>; + mbox-names = "tx", "rx"; + }; + firmware@4 { + compatible = "fsl,imx95-se"; + reg = <0x4>; + mboxes = <&v2x_mu6 0 0>, <&v2x_mu6 1 0>; + mbox-names = "tx", "rx"; + }; + firmware@5 { + compatible = "fsl,imx95-se"; + reg = <0x5>; + mboxes = <&v2x_mu7 0 0>, <&v2x_mu7 1 0>; + mbox-names = "tx", "rx"; + }; + }; +...