From patchwork Tue Oct 15 09:01:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pankaj Gupta X-Patchwork-Id: 13835991 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 1ED00CFC279 for ; Tue, 15 Oct 2024 09:20: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=viTjNLUDco1eRQTnpim2Lo0VbR wQw1uEleR5u920OFTqOBmiJsv6uMUzXBRPbpZ39bLK1b0loIfFi6FLHa0mOz8PC0SoyabeHA+n/fv UizPcRB43gk0PfHQwwiUXoyblBK19UlEZJFP/wJLx3q+PYX+mWmjmFsVuffvT8qkyCVqWu1oyTbci Tfa0ydL9BjaTRntEK+2hxdkXkR61pPpIDkj1gFFp0YWl/KvzeJ/dgcf7EuXnC9ciljIFkn3XE9BVP bR22k+D6SiGes8MXnbZAJzy/aMkMomOsfS/TGsXO72rvkLc7rK7Qi4uRR8aKzUnxAkg1Sc6pPYWUw 1Tg2Fs4g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t0djG-00000007fzD-11qy; Tue, 15 Oct 2024 09:20:34 +0000 Received: from mail-am0eur02on2060c.outbound.protection.outlook.com ([2a01:111:f403:2606::60c] helo=EUR02-AM0-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t0dUu-00000007clU-1VP9 for linux-arm-kernel@lists.infradead.org; Tue, 15 Oct 2024 09:05:45 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=crB7WX7UTD/EIIO2AtYwFXQcKzJqI8rlZc9U9EdTrmwQlQIaIStNUVbiWidGeYWpMiBirycN2K75iqGs26EdntQWO3dXNN1RYJIk5EO60kWRpP5bPAKqFqwXJBi/bFMrIFNxpdWQP2B0n/CfWfxP6jTUZU8yHYw0inph9xtaMVl9Cp+2gq+R7HRYplW8O18IxWT81dez3VTgswW9uFhesrv5SRapI/CEQ3FmHYiDgiAPB/zNV+Che3kE/H7kDIVv1i1scM2a+ROE0wpQR4ACK8epTfoxLovb694kRU/UUDB1qJwCIl/4KjD/UZbe3UFS1VHNexnYUVynM1WxHJaBbA== 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=dPZWPCC/ycD4g1QvZvBvwecAv4fzpxXXPQvLdmap0qILh1yZ+R713o72m9vvnwypjF5itNKKiHrGorBL2Ii1n8OIYK+/1GIjhE+NKlIFsmmiVWw08hQudwqdA0HVFV5lnsLymn7mG8/0Lj1cQuKWXxaCr7Aq8h3MUuG7NRxR1OvRq4rSQq6sgp3sldK3E2GhwKR0zpfUcI8fU8rpUsoul7zFrGk/QmJ29uxlV+lMNlU868k5jTfoew476hlVDY8m6BQ5TyKkddUws9W6Opp7TS7rY7kbjJTW/GKg3wlBhpAMZplpWcjuiByKbsa40Yik02QyAxZue+rrR7haMGEFPg== 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=eEFYkm0CUk9UneIVFaPO5tJOpxWwktxoJxJTRbGGJnjYS0uBREODvFDD4GFcg63wuBlwOTLN4W7aEpTY2h8nE+wFSW6QC2384NX3Yz+zjsBOpF0umv5VLBvFQTgtI5akYMRXEQpu3BYeCyMpYOffuzjxuKTeQzZT494gLV8grbgHDwt+wedb+rk8yqps6XShqTxWhmvjII49pHzdftCYWX9KUljpJmI6veeYAwjOwy7qnCLCWeqMh+vlkAHOxzzcz68olINnIkTEBOZfTpocys2Wt9u5MlxXuQifv4ezVXBvt8v6TibXwnB5RyKvmiLtCrUcRy8Vdp0/uEdS8xxRfw== 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 PA4PR04MB9223.eurprd04.prod.outlook.com (2603:10a6:102:2a2::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.17; Tue, 15 Oct 2024 09:05:39 +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.8048.020; Tue, 15 Oct 2024 09:05:39 +0000 From: Pankaj Gupta Date: Tue, 15 Oct 2024 14:31:00 +0530 Subject: [PATCH v8 2/5] dt-bindings: arm: fsl: add imx-se-fw binding doc Message-Id: <20241015-imx-se-if-v8-2-915438e267d3@nxp.com> References: <20241015-imx-se-if-v8-0-915438e267d3@nxp.com> In-Reply-To: <20241015-imx-se-if-v8-0-915438e267d3@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=1728982877; l=3095; i=pankaj.gupta@nxp.com; s=20240523; h=from:subject:message-id; bh=c2GJVCidrhX1BXyQTcNgVT1gDrIReiQzjgNl9ktmYns=; b=fMaL1hE8jLyU6WagFEBf5u7tBddMCZSKutvVg/m9oM1cAaswb209ns9SKfcImzGB1CwPtxc0T z2eShZwHKGdDRKzFNU4uhLrSIDPBCjELV9/HPky+Eu6Znlf/Ugz6gr5 X-Developer-Key: i=pankaj.gupta@nxp.com; a=ed25519; pk=OA0pBQoupy5lV0XfKzD8B0OOBVB6tpAoIf+0x1bYGRg= X-ClientProxiedBy: SG2P153CA0019.APCP153.PROD.OUTLOOK.COM (2603:1096:4:c7::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_|PA4PR04MB9223:EE_ X-MS-Office365-Filtering-Correlation-Id: d1153ced-a434-435e-97c4-08dcecf88a15 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|52116014|366016|7416014|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?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W6NtFORVpPpNffNE8oD8uMZKy5JUCEAD?= =?utf-8?q?bWglP3sOvrNCMZlGelxSOkX+CMUW4HstemSlsD0HYlcMoky7Izn9W2g6A0biZKXZQ?= =?utf-8?q?YBq++V4IYjuMesUlNPBYMyNGr7gF9fR6wpOOEITyfB7xOcjZI7+SHgc5IpNwS5xhI?= =?utf-8?q?zlsGTohfIcxefczS7fbU7Fho/8hhUJH4SrvSb7GTCNRKDczTdToS2Ud0p4kdgN1dz?= =?utf-8?q?IGJjZ0S34HOEaJdZTdj72j/pZ9oCW4vc6/+hArBeTu9RCQzdwYASgIif6zq/R4NkZ?= =?utf-8?q?4OErvZwPdHIOMqjdM6UhxEC4aCqdP6WQWmbMcYlZmtAdzXPgWcK6WczvtXfwzcr7q?= =?utf-8?q?2CQzc1RJZyEcXeCvY1YlIBQ/+ggmLjByhRS5L74BKm9QOknsW/WA3lZKU=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)(1800799024)(376014)(52116014)(366016)(7416014)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?65ZrgQ2ygXocHsI1Dm6vJD+jDk8N?= =?utf-8?q?HgPVUWloYV27HPN5gLQqP4PzhbdBirYJd2+l3L+7KTchvnz+eXaX6zvMpUQHh8IPx?= =?utf-8?q?BNYxKz20F8zFkCgh71w4JJ8BK8+9UjeIbZYMT5t7riV6Y5xXohquKn2sZuj/WwXFI?= =?utf-8?q?wWFjlFLcj5WwEUKPExQqVqA4SI0DehjNrPqkZw+IZy1dtXs390j9XK/pAaa9ksSju?= =?utf-8?q?Pj7YbgjhU9ONEcd8DlNMQaQRCx6DhwDx3nnLd6QEDAGXRft5JlV3rXGsTSOcsszsw?= =?utf-8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VnDZsIKhbE47U7tzXv7ChXEc2vw5QNtVX4At2G0OcYF6YGB?= =?utf-8?q?0GWRMIHC3kjq3YLLfGLby19dfW0enw3+uc5qY08teZ8Xs2ktXbtps4slL1WFqijgb?= =?utf-8?q?DbBoSUsVzZVRRKnAWOK8ofYMhvqiqXJwtoSk9VY6WROK01i+KbHgvJbt4CtH4SogU?= =?utf-8?q?WojKf00eePB1MRKhuPWbLzc+vVXGp5EI7Jvu1PWGXTaLrBxkJ1LHcHdmCxtp9/7uT?= =?utf-8?q?s3wfm2V+/etsfPBxCDVvXsb5cA6Fgvagr4CiJcq6t0j39SZrt/m3399eraZC7mLz8?= =?utf-8?q?/d7T7+aiDmDn3URX/xH6p4SFcYXbm1npqK9L4QN1VX4oudpz2JxuDofhOblPVk3tJ?= =?utf-8?q?vZRGJQGlq+Lh?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d1153ced-a434-435e-97c4-08dcecf88a15 X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB8604.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2024 09:05:39.4005 (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: DRPOpKVWp/5GgtSMZjON4+YlMqwNYbV3IO0RYJSzfOz9g5MYM4VO4pnhwHsC0D0msnYOd8+H1L5xEfBDmasNjA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB9223 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241015_020544_441742_33E081B0 X-CRM114-Status: GOOD ( 13.27 ) 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: 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"; + }; +...