From patchwork Wed Oct 16 16:18:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pankaj Gupta X-Patchwork-Id: 13838640 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2066.outbound.protection.outlook.com [40.107.21.66]) (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 6D364210196 for ; Wed, 16 Oct 2024 16:23:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.66 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729095819; cv=fail; b=lQSQoihqNA9/Cv9EJPA4ylQ/ks39JKM89yu5enVIDbW2joChK34Mbf/C9/5UDkMSdDOT3CBYQqghdEdBJWAqlfdssr7isaq2lGxFcaPCtPfDPA4vNIDLavkJLhb3xMnXZuwBENTMOE5IWxDG1ZCix0hO4VMS3YApoX9mnxfBxKE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729095819; c=relaxed/simple; bh=8bCTvi7AgU4MQ5HET0AOHmcMvn388Mh4NN86zRFZhtg=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=PdYABxTFWAW9JCq1o4+bnirhApSXTbvYuilcozr3XDcj0giQtUmDqwEf42H7xOs2FwyHRHghqo1XHO/lBFQE6TWdznn0MVXN4eQ9//szmk7HJGV7+E99azWUQmAZyH/erv99jPL0Ab9DQCkYliNqNl/9lPB9NjKb7OrusPeY3Hw= 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=Rk/dDmWv; arc=fail smtp.client-ip=40.107.21.66 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="Rk/dDmWv" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=WDPmnsi9GjVdp4Yo95AQkuZ8pDxnC6sECJ0mTrUtQqQEGoUx0AIRk+xJsSE76dzarlYJsgTboaOtqit/TXU6bP4G4w2TvVteTED223s1/yOUTtpSbj4jyDAgfws5WqsAn5v90QtcjHe5K0b9GZVMYCyclv4VzoNnWLqpbZvc//0zYQV3ognz5OBZ53D44ax9rkttsUbHV8eTGQBQoKjFfg2y5PjiHro8PDbJMtj+LF+VwG3ggQVUE5vrtuk4YNR1MIe7OzIlfxdtu/gN51Ixw4wKHOywNMxTGjjJnFYiBXdTeUmLPgZgDq8kIq32lKTWC5gpxhD14SDm7fEMNmwtpA== 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=AtHPWe7cQRmHoRYQdeFBZGJ64i3l1IaYwSMMu+t/MVcjU02F2bZ2Sttr5RHQ1+uSpMpg2ozil5sWEjBltHRSraIgKHlCb411TsUr9hQGxlO/PnG4Ow2xRup4lN5RFf1Dh8QuoY4ApZTyqUEwCMv0VhJxvEg3lIeo687RwG5P2dGPuLuNk5XZizhqla5PITVEGEgNQLnimlY3Jgw89QEKBehWvS5pHAXslRiuDHQx7Np1u9PjfHoyTZiZBt0mDgCgZ9L2vv+/QggyjBj9n3vPg6suQxyCRJSPMpmO5p98vaeA+HS7aEPFA1riDPMTEVaswCoSF65M0wj438GxZ7Tbfw== 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=Rk/dDmWvLKGalem5ujNroyOSzeD07wMucU0zYnN/aBC45/VGKgZURRz0NB0mnzr+MvAaGZafLOfd5ja9/sIz9jB03EiGCuhMkp72owx9nWVN8VQ2madzjbrcf8eUbfKPy37i2PCyKdfVsTjXx0WmxLtKzlFvYJkdH0WwHsmEL7QH8pJcnYJ+XfUAPCwEWWckSr/GgWzMTQTKuIM0M/GPS0MUlxIl9EL/RIYIrXzhXV+gR8Susin1Z1MXtmwSWosHsTCUJHkX5MTz0JCPd0spAg6lsiOkpbZf7wFo66S/BonbDATAYRHuQKg/JRDbAFo65JZGAfER3Nptk8UBOJtCkQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DU2PR04MB8599.eurprd04.prod.outlook.com (2603:10a6:10:2da::7) by AM0PR04MB7043.eurprd04.prod.outlook.com (2603:10a6:208:19b::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.27; Wed, 16 Oct 2024 16:23:32 +0000 Received: from DU2PR04MB8599.eurprd04.prod.outlook.com ([fe80::763:eb3b:6607:1e72]) by DU2PR04MB8599.eurprd04.prod.outlook.com ([fe80::763:eb3b:6607:1e72%5]) with mapi id 15.20.8069.016; Wed, 16 Oct 2024 16:23:32 +0000 From: Pankaj Gupta Date: Wed, 16 Oct 2024 21:48:59 +0530 Subject: [PATCH v9 2/5] dt-bindings: arm: fsl: add imx-se-fw binding doc Message-Id: <20241016-imx-se-if-v9-2-fd8fa0c04eab@nxp.com> References: <20241016-imx-se-if-v9-0-fd8fa0c04eab@nxp.com> In-Reply-To: <20241016-imx-se-if-v9-0-fd8fa0c04eab@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=1729095547; l=3191; i=pankaj.gupta@nxp.com; s=20240523; h=from:subject:message-id; bh=8bCTvi7AgU4MQ5HET0AOHmcMvn388Mh4NN86zRFZhtg=; b=6jC393S6RTAMwrZrDut6I/99L4XpU1HiFdM6iGMaf9iDR2yaItkhSl4u5A7LoIIKDQkibXjFC D26TkIbWs9lDQSVJM8oHhBtnX4JYcKZi3YMX5bhzp+Wc4t7kyKiXHLs X-Developer-Key: i=pankaj.gupta@nxp.com; a=ed25519; pk=OA0pBQoupy5lV0XfKzD8B0OOBVB6tpAoIf+0x1bYGRg= X-ClientProxiedBy: SG2PR02CA0037.apcprd02.prod.outlook.com (2603:1096:3:18::25) To DU2PR04MB8599.eurprd04.prod.outlook.com (2603:10a6:10:2da::7) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8599:EE_|AM0PR04MB7043:EE_ X-MS-Office365-Filtering-Correlation-Id: 07e7f804-8431-41d9-d148-08dcedfee043 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|7416014|376014|366016|52116014|38350700014; X-Microsoft-Antispam-Message-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TyfxT1JKKciv+8SWMqS+0GoklitfY9IifnXwYto9xMMZEeSRK?= =?utf-8?q?NoZ+JSUQFbgKf92n7sVX6q31h9RIgD/awYAaIyKe1EMq3t7yr0p0ARScu6S15vwyW?= =?utf-8?q?Yop4oB1erRaBw8/VklkefgKr8CeTipjo5FSRLPswsPY+Zt+DkAs50+6SGlZu1Ara0?= =?utf-8?q?IJc4qiLvVuOMwuNhUmWWqR7+1bv65AMinaWBughc8Tu91NobOK4bqv0DfyrzFEdtO?= =?utf-8?q?TVvDEA6UkWulwIwGOkp+Bk4Jh93Fk4FYBRwK964tubpGfL95vA5P47GbMRXHzfb0/?= =?utf-8?q?1EVGdOt3yVjN2hFKaxCZhjl0WmlCGPebBI+yT627p1n64GBJ2kNrWxM/qn4jpZcUR?= =?utf-8?q?5Pb6izC/8+luTcpQNfI79eJJpnR0884R0spw=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU2PR04MB8599.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(7416014)(376014)(366016)(52116014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?/ONGWcqX9wdVEd9SDJO6gcDTWG1u?= =?utf-8?q?IUENk/XYLErWclExXgoJChM3zYPJ//cii3D9H0qtcSHYg2OBYJc0eW1iknuJ5MeZz?= =?utf-8?q?U/Yn0/A82VDVsYA7CdQ01mC76lk2nUy6mHPfjhvOka3v0uJi47ZGq8zN1ySrsBjH0?= =?utf-8?q?AvnKukF9bb+oNxIwtUY+juIM9JTkjpngP9pelOjFW54R2ZAa+Of/8t4zfFSBMJO5G?= =?utf-8?q?y0olFAdT9eFKVr4XdgBMYi5MyoOn4pNJcA4dQWU+vWuuKkCH7UmNaj1mW/FYR9aQN?= =?utf-8?q?IByatas7Y3xml2m++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bh+Ag3KbJwatYKLRd9DQRs6vM3hMcF7ABEW1m7cr?= =?utf-8?q?4fZ7eeeICspTW8eH6UQNDwdR1cAZn7qP8f/blIFAM2oO58eph5qtAzKX729V+/f/z?= =?utf-8?q?l0mRGm1muALg4vJ+6A/qPEE4SB0r7F2WcY06w8Gf8cOScp8hrxkZohnTlleeVDzQq?= =?utf-8?q?2rufa4HzVHnOJmq3i43FjmKAKz1nmirrO/m4wBJ/QkBNcv2ZDdfXSH42qHjSwSxtu?= =?utf-8?q?uydFbeA/oXURhtgPxpQSzgSehkuffVIuSYb9I8Y/TAGP2gm4Ug0kmORIAVn0ExCvv?= =?utf-8?q?4mqN58vmzomJrRHAdHGlrS8WtPBviqXJagg6KTDIIomNdCw3pInhEg7jcMe5kMG7y?= =?utf-8?q?KSlo0TP+zpsE?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 07e7f804-8431-41d9-d148-08dcedfee043 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8599.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Oct 2024 16:23:32.0637 (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: zoFPoc6nBt72emmSF7MIUTa/GQK2Tl6+TuONCrJJgqfH+gMkSpppqHad+kRDmMZAgf7MgdO2MYky4auS67YYfw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB7043 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"; + }; +...