From patchwork Mon Jul 22 04:51:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pankaj Gupta X-Patchwork-Id: 13738315 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 6864DC3DA5D for ; Mon, 22 Jul 2024 06:00:31 +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=1PDXRfFJa6d8pASsCQxQPxLFvyuEHEecmuzO3dViUIs=; b=fB0TSoBQl7ZICWAUHVYuPgMtAx UYtjWMz9UGxCGl2XrdaKH8ZjJuAk+l0x2E3Nn7OX9eRG7yOHIza7rq9KcXGDAGzwDsU8MXs6PivRg j+yey+7xlBy3TD26Cn/8U5UdooWZF56ZTr5/BRBcF3ZJJfLL0p3admpx2A1aIxF2bSdQ+kBu2XuL7 imwnM4iAUJz40pqwY7DUAMzGGmCCwEU4EfjXe4LGPZbIsD43ABy3ceNsK7S0UXaIBTWXnKfOVBhzu Cm15DL1Xrgj+zraqbuo1xvLu0PxHyD1vStC9eOsu61XNdaV+tIYww6qE9v74/8v9dr6nBvG6TdTzY MqaT80wA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sVm5p-00000008T7I-3ccu; Mon, 22 Jul 2024 06:00:17 +0000 Received: from [2a01:111:f403:c200::1] (helo=DB3PR0202CU003.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sVl4x-00000008M46-3sgG for linux-arm-kernel@lists.infradead.org; Mon, 22 Jul 2024 04:55:21 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=N5MXTH2kZbznGB8bymNqGEtBcEoDbglKdnakkWRI5ThG13xvRnuxb6Mx3MtHqcXPL4b+Ci21/lyi87uTKY6nzcSczJ2rUPjuAWGRE5SS8D/cL6SwpFSeYCsmbPhoZCzIzv1sGaAx7q7MEJXlRHx26Sj0hf5Y95OBmIMptuy+gASNdAgMa3fzUg4mfs6kzFerLv/k3aIjTa4cwlY+rP5GacLaS7PLhfVFxUp9plDMGO/XwuVdoaksnClEGObwVLuuzYFpW/bHrDYd5amQjt38CXYr2AVLtKNRc772DRJCgN5w9oooaqst340EueAHVsbg5ijSujHZOgs9RZ0qwNZ23Q== 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=1PDXRfFJa6d8pASsCQxQPxLFvyuEHEecmuzO3dViUIs=; b=oOkR5N3D4dZJ2/Egdgw7WKMKgfFTXazoP8c1jZ6AC2+lrYFQVfNHzw2w10wOUTq311X5XOoyNYm53kz3kvseEaaUKX93GV9sasZY+isP/nn3rmQl8T2ciT/7EHYE1reewLRxWEWkm2rgKCg4b4KhB5uiU6IWg4oM3YAKOtpTcMgHf4imqCm5tqfGJ5XJoemBklcWEV77O+ZPEec3o59Z8DrIlkN3LIvrauV+FY+dWDx0PGWNHN7ED0Q5DlqESShmUMkBA8S+lIX4HumTDs3pPZZkTkmJrm+d7wNBu2Re+Xu5K+bT2PvDgqNV+oGS6QGe3dtwv+wRO2zYZ3tsWpqjrw== 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=1PDXRfFJa6d8pASsCQxQPxLFvyuEHEecmuzO3dViUIs=; b=TPJgPxzOAC9qU/HuQO2asyn3DjlMWH4c+cXA4KLCttpB/3LWGC6o6W8fWpwiwF4ZDKV5erM/xBaBJ8SsUzIiWqX9Btes+yAC/F6ygfcKD8nV5Op4XHYGkjP8SCydaOFCwo6knqBK9vpDudTPSmRdoXtKtkIjE0GgAlX0Jg4+TqU= 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 PA1PR04MB10441.eurprd04.prod.outlook.com (2603:10a6:102:447::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.20; Mon, 22 Jul 2024 04:55:10 +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.7784.017; Mon, 22 Jul 2024 04:55:10 +0000 From: Pankaj Gupta Date: Mon, 22 Jul 2024 10:21:37 +0530 Subject: [PATCH v6 2/5] dt-bindings: arm: fsl: add imx-se-fw binding doc Message-Id: <20240722-imx-se-if-v6-2-ee26a87b824a@nxp.com> References: <20240722-imx-se-if-v6-0-ee26a87b824a@nxp.com> In-Reply-To: <20240722-imx-se-if-v6-0-ee26a87b824a@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=1721623911; l=3098; i=pankaj.gupta@nxp.com; s=20240523; h=from:subject:message-id; bh=F5PBU6HEJnLOEw22QrtmChLOyWD4RzexFLy5JsDgR3o=; b=H5QLDzdsOa8D3Uqmr0MiV4dbok85T4I3nq2GPZOGsDYh6RJFYPd54fLgjHTMVbUXzWxqQ5rlK qpJ0tocWvGJBieoGyyZklTjJ5/wiFDEdCBvunNfDUm2fNj9AVr6bjP/ X-Developer-Key: i=pankaj.gupta@nxp.com; a=ed25519; pk=OA0pBQoupy5lV0XfKzD8B0OOBVB6tpAoIf+0x1bYGRg= X-ClientProxiedBy: SGBP274CA0018.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b0::30) To AM9PR04MB8604.eurprd04.prod.outlook.com (2603:10a6:20b:43b::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM9PR04MB8604:EE_|PA1PR04MB10441:EE_ X-MS-Office365-Filtering-Correlation-Id: acd3c2f9-6d13-4309-ae42-08dcaa0a76c7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|7416014|376014|52116014|1800799024|366016|38350700014|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?q?0Hl+HcbsnzBrJ8WjsT7E60A7BwKGRrV?= =?utf-8?q?nLSyKrT0cGl2g93vtN4oIv7igUJWuccFbOf34gEJNwhyMFzYODyjFBX4DKVzPg9Vs?= =?utf-8?q?fgsoAYeSe63WfXtnbijUA3gqQZpM1Re0ZBNC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52Y4DXa5Gw2khU/WHc4UB4o57aoI9SOa?= =?utf-8?q?fnNepQlilakU2Ic7ZS1hCZvG/uLqtbmyg+NHeQdfe+9tU30qjNrnwl10s7UkJ14Sd?= =?utf-8?q?QJ/NBRXr03YJILA2+Okg0f04eg+EmG3hHNCC1/zMBIeP1c317dJb5ehZKYbpmUOUX?= =?utf-8?q?xEqJWHTl0h9kz3eULgRH/gq7L4APDG4/W+1MIZp3iubWB6Ecv0/UgV84SrdERHT4n?= =?utf-8?q?iLs66miDozpT1LZIsiCOWbDJMNkEXMRTviUqRrH8dv5Xn+sC1z/HKtSgqqA0hfGQm?= =?utf-8?q?bPFErizLVJNvX44M07EmnHXU9Vi03FLQHQEh9jmjidFctO9Ed6O6amhY=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)(7416014)(376014)(52116014)(1800799024)(366016)(38350700014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?KUj7xvunryRsNvUW2cml6bLCmHbB?= =?utf-8?q?r1Ti7y5HNyZbFEzRXEFohlzJFv5FyEKWuA6eSY/HgigxinSY3KNZZ/2iXweyrYze5?= =?utf-8?q?eXPiSNozdNU6TX+saIv18/JB8AQLNFC3RaLuj/QPG7YHdXLeuUqLZlK9ru/mHG3BS?= =?utf-8?q?6CHB/s1GQkCDYUyLn1eIqK6pNoLuQ7yIUwP1wcZkIy1sKbz6ZXP1y2LcABf6NmuDN?= =?utf-8?q?fzdjcYwk7RZb1huT8P/wuQby/A7wWAqbkbgXcVgSB/qiPeXCZSYc79BC5LYVRbal3?= =?utf-8?q?Riv3uqEwFu2booYxZFubMFzGDMo5my5rEnCpIDAgxDeYS12gcI2VgpZmYCLoXZ5QT?= =?utf-8?q?86l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?B0po+mG3J1sYMpbOf1ipE8BZX51fBzArkJ5sHxodo4IBWteJ3Yxqp4eMKt38h+RJf?= =?utf-8?q?PGZvm4PgjQI1HgB9ntBtBHED4wJcCnu4TB4dryaLxVvv6mK5AP9OJpcZHkm7BqTXH?= =?utf-8?q?k18PXsA1s1nxNwea4dKeg2LXH54qOUX9b9gHGzM3z5q7sydutTkQizjIaQkwBCc/r?= =?utf-8?q?zguKt/vXou2YHJ6FmnkUc7GttLpUDAmrTQ4ZrfiENftcDdGCxeKteC7NWzGdyOL7i?= =?utf-8?q?u0NFzmwBgjKD/nwzs/3OUa0DawIC9xLrTI5TEXSGWxv57+WqvGT7ut4vLj9wQ+caL?= =?utf-8?q?Y2q072z5Esnk?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: acd3c2f9-6d13-4309-ae42-08dcaa0a76c7 X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB8604.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jul 2024 04:55:09.9862 (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: IF29kStf89zmuSqqHG+aN3gDbnXO/FuI79+SlooZTDMEJDJIeTJ9JDHaOoupW47k8CQG96GlKzNPZR1CuiQLcA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA1PR04MB10441 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240721_215520_049963_CCE8C26F X-CRM114-Status: GOOD ( 13.38 ) 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 | 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..7511d0e9cf98 --- /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: + - | + senclave-firmware { + compatible = "fsl,imx95-se"; + mboxes = <&ele_mu0 0 0>, <&ele_mu0 1 0>; + mbox-names = "tx", "rx"; + }; +...