From mboxrd@z Thu Jan 1 00:00:00 1970 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 F3ED6CDB46F for ; Mon, 22 Jun 2026 14:15:12 +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:In-Reply-To: Content-Type:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=UCLVAYUhmkmNBDK0fDr5a4BppS89AkvAxUucxz9/7Yw=; b=rjkQP8dETz42Vp3UkmNi/1Psw0 +JSLO0PODqDnJqw2LNQ7/QQssUsSFHJNzZEyfo+yqZa3ivNhzZyGZO2Wd82fKFmUvFiWcKHkhqfYW fJEJjDVQe1CciRbiRq0ss2G4fcoHQu9Q+SKubEgSBHY9DCI+eunAH9gLyTtNwIX+luKQqKFEQZljZ MKEiNCH7R5uVwu/c3sddtTEO9M7lUP37ajFQuyISWAvQ4iZ5kbvogJscqIefw1I6Vm0lys1H8P3Ns mjl2tU4OlOy0KcWJeKRBwfomA/Cevw03AZGPzoJszJKI7xdOJ1dZcQmj4dVKXsgX1qV//UGD40jg7 PMu4FxHA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wbfQV-000000053PI-3Y46; Mon, 22 Jun 2026 14:15:03 +0000 Received: from mail-westeuropeazon11013039.outbound.protection.outlook.com ([52.101.72.39] helo=AM0PR02CU008.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wbfQS-000000053OP-3bHD for linux-arm-kernel@lists.infradead.org; Mon, 22 Jun 2026 14:15:02 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=xF1qMyt/KSxDwDRjpkar+7+cFAXA6AQev+IhAPLNqPLrOf9+6xy6vNEiDovet6H7+Jg7Gaze+4FuaNYPv7wSzEGIGa59W9zX7AtXY8demMI+z46fMTmBW/EhOOUTTOGAvgRi8D560raGPyIdnNlmFybYbajRZGUwFpLh4YiGeCs2G/BffUymYx0BWJ1zaHwJgLgpj/iZjmiayUrxy9rlb7dZ6eLAVpe9JvPIqvp3Ifgal8DHD8tnwOnpkiJ1XfIrrBUhwlNia7x9pFSZ+lfKz/v1g+GSYbhdb9QLo+336dkRsN+6wRrwD/s12eFOVwo6DhHj0i1/HnfJe42YnVbTYQ== 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=UCLVAYUhmkmNBDK0fDr5a4BppS89AkvAxUucxz9/7Yw=; b=lCqKJwCrV0uXH32GVuyeCL6RA1LrPP8bwmKU/6/jMqrz1Jnr59KaiJRaE5jKhnlRXzPKBS627DJeOWEhyR8FHZOGBwULrNDntmytQCPZeIZAw1iVtHrLk6NdxN96K5487mfO6IPRi8DsKfGGNEDWGCkgfxv/eBYZ2N2nxmUr6cFfQGpSvR6HrS3EbZPw1mjGGfLjFVYa9Yj0W0kdw9tiuON6MNjgtgZJyG+C1hK0FeVU5d0fdcClwOXGzuHQU700iWT89pk6iFxCOcAccVfcxVRdZwIHkGIipGwq8/B1Futjiw3Mkt/qTvu5Y6RZx/G1/bs9Lxb9SlGf3N6u29FS2w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UCLVAYUhmkmNBDK0fDr5a4BppS89AkvAxUucxz9/7Yw=; b=ltrQkFlHk2JVh8oPInsjN8Z+RLpdTIq2i/HmvVtt0qySB9hL6ubP+LJjy5YJ8+lh9h4WWC89VH7hXHu0TpCLC5nFnPOpHfG2ip/vWs0dr1UwZAsS6HM9DinVfhCl/9nXRcOlihtRRI+/Mju0G5OinD+nRwKZaDzpEwW7bZkQ1QLLo0+axoJkIXoP9ealxVsTpWM4MKVzxbnKXGpUb+xw5z8v0FImNwbIPjCd6HkHZeIJRNKo7juIWBPbrFZmprRpLriUG+NCtd6XO45OWrEOYK2QptUgTSmuuVEEZ1DLAmhhS7Et1IOQiX/qefiyg9Ar8qYYCVVM6IFB4LyJRn3A3g== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from GV2PR04MB11799.eurprd04.prod.outlook.com (2603:10a6:150:2cf::9) by GV1PR04MB9149.eurprd04.prod.outlook.com (2603:10a6:150:24::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.139.19; Mon, 22 Jun 2026 14:14:54 +0000 Received: from GV2PR04MB11799.eurprd04.prod.outlook.com ([fe80::2146:83a2:5329:b7c]) by GV2PR04MB11799.eurprd04.prod.outlook.com ([fe80::2146:83a2:5329:b7c%6]) with mapi id 15.21.0139.018; Mon, 22 Jun 2026 14:14:54 +0000 Date: Mon, 22 Jun 2026 09:14:43 -0500 From: Frank Li To: Frieder Schrempf Cc: Krzysztof Kozlowski , Frieder Schrempf , Srinivas Kandagatla , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Frank Li , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Shawn Guo , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/9] dt-bindings: nvmem: imx-ocotp: Add support for secure-enclave Message-ID: References: <20260616-upstreaming-next-20260609-imx-ocotp-ele-v1-0-cb7f3698c3e6@kontron.de> <20260616-upstreaming-next-20260609-imx-ocotp-ele-v1-1-cb7f3698c3e6@kontron.de> <20260617-prodigious-private-inchworm-beae1e@quoll> <085262ba-32e5-4011-8df3-5a677575b2db@kontron.de> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <085262ba-32e5-4011-8df3-5a677575b2db@kontron.de> X-ClientProxiedBy: PH7P220CA0111.NAMP220.PROD.OUTLOOK.COM (2603:10b6:510:32d::35) To GV2PR04MB11799.eurprd04.prod.outlook.com (2603:10a6:150:2cf::9) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: GV2PR04MB11799:EE_|GV1PR04MB9149:EE_ X-MS-Office365-Filtering-Correlation-Id: 917f5b4e-8ccf-4395-7ab0-08ded068a1a3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|366016|7416014|23010399003|19092799006|1800799024|11063799006|3023799007|56012099006|4143699003|18002099003|22082099003; X-Microsoft-Antispam-Message-Info: 4OvS7wYhn6gGUrdZiwsCLSgTbnWtLUjQP5PyIf8mmVcv11GU84Il9v9EpXjE3Ql78FDp+Wz6k2/Sy6pZwTYO54HqSNZNar2P3uyl/Mwf7WlLp2v9j3EruVP+K/jaxDDkRgwYnaUNwJ5mHRDxK+9o9KbCBY3YcHT7g3N4rx0hWLwtNBCu1mvwiK6snc4TJk9ACjIVHt6ZtcE7uApuCaA/Mgq97BybNmBlEaEkvlFotJqWFuO5JdbhxaXcZcvdaOhCBQY2kRFWim0tyzOx1Qg9JTjhvmMibudxa2k9XHzq8UNXcODVkGYWMvRrLPWMWt1Wt7VqDFdjxsSQo0MIsDXEg9tdg1aKdmbzlkdDjyddEmcI+ocA5YOfouloIpvdhAHaXlWZMKpntRDxyg0sjxrdoHq/RceDDs7+iR8guRnWatOxD2cGIgzNVvP7cihb6/S39rWRKXwvH17clJx0ODFsyijQ1sM/zyOVHNew7c9851llJ4DprOOEIFOWlQm4kBGFEcKLNqgn981VyuOBUmNGiSgYTuBQB+LTufpSYfYYf3zVAlSJHI7zPS5u/UwtlF3yc/ICKHlde1vakERZwfLQnpOACb74C4HSRVShFg5BYmyaPmDK8leNZwRbFGAK+woL2goLsayu7T9O/GMHhstn8qqkdLL33uiun2drg4Gv2wI= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:GV2PR04MB11799.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(366016)(7416014)(23010399003)(19092799006)(1800799024)(11063799006)(3023799007)(56012099006)(4143699003)(18002099003)(22082099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?CSndaQPvh1cFtCq7QgMxbbZFZ6+E9a1L7HLrekYQdajShdN9trohbfktgkmg?= =?us-ascii?Q?kTh1OnygtKvpe5s8n5cCGcicwVyEN9QA4+GNDmFgCYBX8cUQ5GYrY3e/Qu4C?= =?us-ascii?Q?wwGrAh71Kws5jTy8Kbv5mpYgu0sXXNkLpou6nslug9Y22FBYom0uVJ0dP9nd?= =?us-ascii?Q?aHl/xnfs9Pl6aI5+/WfImI31qSmrm8hKEtK3PUGpojnPFIPMaYDXiIaJJeju?= =?us-ascii?Q?lhWG1vP7H2vi1N9iV1Rb3D+C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-ascii?Q?Xn/KH/9F9tOL1Y20ahEvFHy9M+pqTTLpTsyRZz8EZBAl5sSDKfyPQKMSDDfH?= =?us-ascii?Q?dWMSGoQ8sFh66dBRHC+loScnOFLFscquvIfoXRo706V/OaAxPGNgdZSIgyk2?= =?us-ascii?Q?tnYYNBqTzbbPKYUXrjyZBRVrDfKlP4+6LQRbiM++5kW/nnc+TZunWUhpG/+7?= =?us-ascii?Q?vvvL9nh6A5Fuxd+lzSL6Z/ka7JLDMOFAkKyCiaG7reJlXv+YhmARCApxoyeN?= =?us-ascii?Q?HzUKHKQd7e+LXrY59V9z1R3Lm06k/K/5v6gpNv9NKtcBiMNlU89XHDZoM1Kc?= =?us-ascii?Q?vpn75x6JLAcVqIycO+IsJvDgdU2u/UJe/M4U++s+rszGZvqWfsEbOd1UQJ13?= =?us-ascii?Q?FVYfPbSyvsWbNSzMdCe0nxf6Jv2SoZKEd2R/SniqcdS5TrEFa5dhRUQor+BE?= =?us-ascii?Q?tkiz8crT1siwmv1v0dAf8yhPg8e1K04HglHnvAaFt8xNgAhva/wqYqagX5K4?= =?us-ascii?Q?ZrJeUUYbPPi8Z3Lb+SGXDtNbrMBcfq9ylNo4+z96PhowJPLr70jXgXb703el?= =?us-ascii?Q?wUeKg537F+rVwt+aPEVRMC69CLXvtXBmHjdfTINAVYLeWUdtOMJY1kVjtT5M?= =?us-ascii?Q?IJm6SvzQOWM/TkwOotgAtMSTt+rHgxDPU1XaCWqwLoxPxvp6iDeJ?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 917f5b4e-8ccf-4395-7ab0-08ded068a1a3 X-MS-Exchange-CrossTenant-AuthSource: GV2PR04MB11799.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jun 2026 14:14:54.3960 (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: vgxIbOilvlh51QVnq8VUF4ns+tzUu1mIMwfcoPBBmhd0RJIT+LE2TLkWdzcGWWjOBwWWuyBfoWKUFQ/0Se0mWCGSRi3ky/yudem4cq7bIcazaWh+rmnKOnli/rpIxcm0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB9149 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260622_071500_911101_EF321EB6 X-CRM114-Status: GOOD ( 39.05 ) 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 On Wed, Jun 17, 2026 at 01:36:30PM +0200, Frieder Schrempf wrote: > On 17.06.26 12:49, Krzysztof Kozlowski wrote: > > On Tue, Jun 16, 2026 at 01:52:16PM +0200, Frieder Schrempf wrote: > >> From: Frieder Schrempf > >> > >> Some SoCs like the i.MX9 family allow full access to the fuses only > >> through the secure enclave firmware API. Add a property to reference > >> the secure enclave node and let the driver use the API. > >> > >> Signed-off-by: Frieder Schrempf > >> --- > >> Documentation/devicetree/bindings/nvmem/imx-ocotp.yaml | 4 ++++ > >> 1 file changed, 4 insertions(+) > >> > >> diff --git a/Documentation/devicetree/bindings/nvmem/imx-ocotp.yaml b/Documentation/devicetree/bindings/nvmem/imx-ocotp.yaml > >> index a8076d0e2737..14a6429f4a4c 100644 > >> --- a/Documentation/devicetree/bindings/nvmem/imx-ocotp.yaml > >> +++ b/Documentation/devicetree/bindings/nvmem/imx-ocotp.yaml > >> @@ -53,6 +53,10 @@ properties: > >> reg: > >> maxItems: 1 > >> > >> + secure-enclave: > >> + $ref: /schemas/types.yaml#/definitions/phandle > >> + description: A phandle to the secure enclave node > > > > Two things here: > > 1. Here you describe what for is that phandle, how it is used by the > > hardware. Currently the description repeats the property name and type, > > so not much useful. > > Ok, agree. > > > > > 2. If you access OTP via firmware, then this is completely different > > interface than MMIO, thus: > > A. reg is not appropriate > > B. Device is very different thus it has different compatible and I even > > claim should be in different binding. Devices having completely > > different SW interface should not be in the same binding, at least > > usually. > > > > If any of above is not accurate, then your commit msg should answer why > > and give some background. > > Thanks for the feedback! > > The driver currently uses the limited MMIO (FSB) interface to access the > OTPs. The intention is to support the firmware interface alongside the > MMIO interface so the driver can pick the interface that is available > (firmware might not be loaded) and fallback to MMIO. Does ELE and MMIO access the same bank of fuse? If access the same bank, why not always use MMIO. Any beneafit from ELE firmware? Frank > > Following your argument would mean a driver deciding by itself which > interface to use at runtime is not something we want to have in general, > right? > > In turn this would mean we need two drivers, or at least two > compatibles/bindings for something that is effectively the same hardware. > > Actually, my first RFC approach [1] was to create a separate driver. But > in the end it seemed very weird to have two drivers and two DT nodes for > the same hardware block. Also I have no idea what happens if both > interfaces are used at the same time. > > The other idea from back then was to replace the MMIO (FSB) interface > with ELE, but this would mean that we rely on the proprietary ELE > firmware to be available for simple things like reading a MAC address, > which is not desirable either, I guess. > > In which direction should I move on with this? > > [1] > https://patchwork.kernel.org/project/linux-arm-kernel/patch/20250416142715.1042363-1-frieder@fris.de/ >