Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2692555rdh; Wed, 27 Sep 2023 09:48:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEHUhmsaWq+Wi43s2St0toVtE4mR5qOswwRhkOpHDp9kzyRYFd8HD+8N9CrGa/pHC/Qu7fC X-Received: by 2002:a05:6358:712:b0:143:9763:e6 with SMTP id e18-20020a056358071200b00143976300e6mr2466817rwj.0.1695833286275; Wed, 27 Sep 2023 09:48:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1695833286; cv=pass; d=google.com; s=arc-20160816; b=teQCEzCJViJJnMcHQbfICQsJuoYVNkbGEYCKwC9vKQSJi7Z3YBZ7KOEQX7h7TJnK+k BGr/vMmIf/Tfykr6Ok6wAevUSgpjtATvTCpZRiFvqBzOk1PA6PS9QP00wyP3zE2lzhGt qihoTcc9um9hz+0iDY5qE0VXP0v4c+WNWwrTed/wjbrTgcV5O01m7XeVQA2OixINnJgc +41KgPmXZj+yRV5MSkgWHK57Q96k7kMPF4Xe8fVN6dZEz8btxy42BHsiIkSyPNhrCeWo 42wyU8+aO72X4PBst354Pnhi4E3JgCDp0bg5zCuVfijaAwPXqv5zBZ2DuRBnHlSQGbie fzQg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=y8+ymlawP3djoeglT5X6ixc1UnvqX9Wv925OgQ2Z9mk=; fh=PhkPLZHnlbS6I+4VLYKKEzEfaQxz9t7w9SK9rKaz9As=; b=0FZ351UieV0DyS1XaWAWJbj0Bga0znwTPcle51gWce6+ShGrgyrci9WsHuo3w9BGRA VZ7pczsuy0IKM1ZWch17atmk6TPSLcFmFu6o6qPUyKqmEhpOKBtngiShks9Pm56zo+yc clOuv/YEwN4sVBSH3T1te0rE/zoLpJrQGz8KXY6rnGFR712r3tXyRaGHg0ZNSVe5kdfX JVCk5MRChsaxvo99PkobVD+Xw0/poVdQoeELj46FmMe8XGCFRjWFyU8+EroKv/Jh8gRO F2xPPRdivImKT+aAFgXLlJb2zQjk2c6e8jq49wRorrXUUWHMfe7mj7FMyzC1j7M6v2TG +atw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=R0R6rgY2; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id bs1-20020a632801000000b00565f182839asi15239346pgb.28.2023.09.27.09.48.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 09:48:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=R0R6rgY2; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id E7E058246E0D; Wed, 27 Sep 2023 05:27:17 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231435AbjI0M0v (ORCPT + 99 others); Wed, 27 Sep 2023 08:26:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231422AbjI0M0r (ORCPT ); Wed, 27 Sep 2023 08:26:47 -0400 Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02on2079.outbound.protection.outlook.com [40.107.241.79]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 231B0199; Wed, 27 Sep 2023 05:26:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OtjOMAdggvR8MivNBUw0+xH/MJo8lzVjxpA9XRN1vnDJykqmUwfD/kNvHmaBngq4yJSanV/HlD3sNK4H1ZANN+am+jo7WlbE0dtvWcvKiVWSsfL55H6BEggK8SpwRrEPNAn+m4f9gj2C0Ohs9xi/qR85v1WzAR8Mf5z2mNNCavVWxcIyeztxf2PmNPCNT7fNhNQsqWNp9Ne5KZl2D2zQxuQjmmJUvLMTVgqEBK/GHd6cN/nEQ11PcrCab7Q5NYHrA5VEDreP3jkHqJWAVwaq5eUcureB12thRqF60j7tbkxl0afsrJDXIehU7lG8pKP98yesS9RB/yNJBmgjhohKFw== 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=y8+ymlawP3djoeglT5X6ixc1UnvqX9Wv925OgQ2Z9mk=; b=bMcXV06pwumfYrb38VIPrmizVehndFeYF0vlAPQOaSDiE2FPt65eEo8lNbvu0Wh5RkTpARt5Tyb1Y/kPzwxMTC0tE4LSuwHt0DB9VCWQNZB1qlEHEeumBadCwgPg8xFuPj/NAIMZ1vIKwKIQxnT4dkGWVNfefW6xB3sTpu2Wt3uhj0eyh6HoB+DYt5p1+qVjtgfCaefi2mrdM/yBdnE9K176VXdBR+0gAV3dIdXsZIStMWjPlIyEsCga0ngrw8lynxZ6Eh6jM5OOIS8qzdiskplfO7YZWHPoJt8L/gjQsMSprB77jbMhaxYCLWBKIhxApRKsxp58IWRfTC8EoSLP+Q== 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=y8+ymlawP3djoeglT5X6ixc1UnvqX9Wv925OgQ2Z9mk=; b=R0R6rgY2dyw8WWftaxFwEaBLDeguQRLyyoqM1rW9H/s9iMjsf7swHcYPyFTmsO5qPBMub73h4i4sBTzp53UL0N2oLys1TIcZStmn7BpgN+HTq76KcouwURwj/O+0lpy4FqhxTt/hPUid92h6LVDyeapdHNSjYJVNSRYT1kyMd7Q= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DU2PR04MB8630.eurprd04.prod.outlook.com (2603:10a6:10:2dd::15) by AS8PR04MB7704.eurprd04.prod.outlook.com (2603:10a6:20b:296::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6813.27; Wed, 27 Sep 2023 12:26:37 +0000 Received: from DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::dbc:99b7:7808:f82e]) by DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::dbc:99b7:7808:f82e%7]) with mapi id 15.20.6838.016; Wed, 27 Sep 2023 12:26:37 +0000 From: Pankaj Gupta To: shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, clin@suse.com, conor+dt@kernel.org, pierre.gondois@arm.com, festevam@gmail.com, linux-imx@nxp.com, davem@davemloft.net, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, gaurav.jain@nxp.com, alexander.stein@ew.tq-group.com, V.Sethi@nxp.com Cc: Pankaj Gupta Subject: [PATCH v6 02/11] dt-bindings: arm: fsl: add imx-se-fw binding doc Date: Wed, 27 Sep 2023 23:23:52 +0530 Message-Id: <20230927175401.1962733-3-pankaj.gupta@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230927175401.1962733-1-pankaj.gupta@nxp.com> References: <20230927175401.1962733-1-pankaj.gupta@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR02CA0128.apcprd02.prod.outlook.com (2603:1096:4:188::20) To DU2PR04MB8630.eurprd04.prod.outlook.com (2603:10a6:10:2dd::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8630:EE_|AS8PR04MB7704:EE_ X-MS-Office365-Filtering-Correlation-Id: 1ba0d855-4cfa-4e31-da33-08dbbf54fe97 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: pmVQ6z7nSz3l6xOyUZS4t870kMSiVW8doEhNnLM8WNnvJxN1iXbSh9VRpybFCoU/pbTLKT0St9WWYAs1lootkFt9tjGBepe6PY2IMrW+Z9oZmaNLZFzRof8FIe7U1v9m4CHEnI/JRHGWhbcRjqE4zmeAMnB8xFdZYiSWcZfvi7A7N88z9n0bxT6NmWW1KyvcPh5gwwmIxwe6IROJP4SEbE6BKsH3DKnDD+56D0PiE+qLm1BxAeIwvaCCpqO3wI6DKYLQ4iiX4Xa4Vgo6IAzBrgZM/PM22zHBeogqoX0fLmsrJbEyH/tNWaQagl9sruIP2eeO2aX+8JzafO6wSVEi3Ir/kMNA2hYemifkmgYFJ65FD7++azGJw77H36m5Evl6p3rMAYd6qqiqC4H6Rjxn6KbR8JTRysrXBEnCVDsbJ8vpC9vsjEbqVanTgzyOOfZ2Ny3cd66209Gd1jgROuZ+eolstnrCH7NXuc5c+2NH1c4bjsxJur//JGaYjZ1k/x6fMTR1Shq3oTgPaGBIms3PLNFe4LHefFNJPzowJ2NoCTYwxKj6C/aBfEbAw8aGhRydkELco52d1X/zS40B/z6JzCrI6KUE/f662klhBFc36O9W3BPB5J1w9A703N+qCRkw X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU2PR04MB8630.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(346002)(366004)(136003)(39860400002)(396003)(376002)(230922051799003)(1800799009)(186009)(451199024)(1076003)(2616005)(6506007)(52116002)(6512007)(44832011)(26005)(8936002)(478600001)(921005)(5660300002)(6666004)(36756003)(4326008)(2906002)(316002)(6636002)(86362001)(66556008)(66946007)(8676002)(966005)(41300700001)(38100700002)(38350700002)(66476007)(6486002)(7416002)(83380400001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?P3Mgjvc7XlQhLSaN+PauMX/qFd07t/YS1xA6GHNgag7WXtyM5lR4H9qaV0Vo?= =?us-ascii?Q?8WvI1h2WvNOscAvToz8vUs1NyQzSa5qWTUQhQ/vS+micn9oUaE8mfIFfPIfL?= =?us-ascii?Q?u/LRR/WqaFSdPV4GzyCkf7tPAcAMt3/+YGQxwDOnRWJ7F8wWkVNIzRq4SUzn?= =?us-ascii?Q?TsZ5slxArcKC99fwk2kYiLnR3fJWW2QjilFig2rqjM3Cn03egw0qO4uSVn0d?= =?us-ascii?Q?5SW6DgmOdxgz27TQZeaUgLcEVZpdI/rEjjcmPi9eGmhix5iOiaOR5Vtwh761?= =?us-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TpJ6UYobgYmgo+hzOymxBReSyf3q0Q8JN?= =?us-ascii?Q?6H3mYj1OuW7MZ+5yvDMH/BnToPHCowvkSOWgoRfrb0onFwGvvSMt8jocrjqn?= =?us-ascii?Q?zxl49i8QqdUipCzoxvcH+djLFXkrBPKdONshobNr4zRa3+6kK3Mm6uxNkOOU?= =?us-ascii?Q?JKCNjcdzw9lDBpULRVU1lDq9mNbzDQGDane5ICl6ZojrVLuK4qJ74OGLL/No?= =?us-ascii?Q?rwl+cPHo1dt7H4oaau2tFFbeZ3z6bvefmikW2qtFCIzqYq418HN4SF8VJ7y8?= =?us-ascii?Q?e9dEoHqa8pW7dBBuC9nkbl7JO+36pNBFswlcSkjGSkXic8xKik9aFPQWkNxx?= =?us-ascii?Q?DfWKbby5xadpV/X1cniyeC/xobJvRzZyakiPw4vSMrq5Px77XDRqmSRH4yLO?= =?us-ascii?Q?48CPU9NjHQ6C1/xcQuwQqW23TUgJmLnFK1kjubpt?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1ba0d855-4cfa-4e31-da33-08dbbf54fe97 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8630.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Sep 2023 12:26:37.5420 (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: 3UG50l9EN275sqtbZJUqMAAOJHGrFMC/xqReDZsBLqUjFgDoeVUp1SSSoRfdyVhrI3WrAUYMYfL8Afl76y1Sqg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB7704 X-Spam-Status: No, score=1.6 required=5.0 tests=DATE_IN_FUTURE_03_06, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 27 Sep 2023 05:27:18 -0700 (PDT) X-Spam-Level: * The NXP's i.MX EdgeLock Enclave, a HW IP creating an embedded secure enclave within the SoC boundary to enable features like - HSM - SHE - V2X Communicates via message unit with linux kernel. This driver is 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 can communicate on single MU. It exists on some i.MX processors. e.g. i.MX8ULP, i.MX93 etc. Signed-off-by: Pankaj Gupta --- .../bindings/firmware/fsl,imx-se-fw.yaml | 73 +++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 Documentation/devicetree/bindings/firmware/fsl,imx-se-fw.yaml diff --git a/Documentation/devicetree/bindings/firmware/fsl,imx-se-fw.yaml b/Documentation/devicetree/bindings/firmware/fsl,imx-se-fw.yaml new file mode 100644 index 000000000000..d250794432b3 --- /dev/null +++ b/Documentation/devicetree/bindings/firmware/fsl,imx-se-fw.yaml @@ -0,0 +1,73 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/firmware/fsl,imx-se-fw.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP i.MX EdgeLock Enclave Firmware (ELEFW) + +maintainers: + - Pankaj Gupta + +description: + The NXP's i.MX EdgeLock Enclave, a HW IP creating an embedded + secure enclave within the SoC boundary to enable features like + - HSM + - SHE + - V2X + + It uses message unit to communicate and coordinate to pass messages + (e.g., data, status and control) through its interfaces. + +properties: + compatible: + enum: + - fsl,imx8ulp-se-fw + - fsl,imx93-se-fw + + mboxes: + description: + All MU channels must be within the same MU instance. Cross instances are + not allowed. Users need to ensure that used MU instance does not conflict + with other execution environments. + items: + - description: TX0 MU channel + - description: RX0 MU channel + + mbox-names: + items: + - const: tx + - const: rx + + fsl,mu-id: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Identifier to the message-unit among the multiple message-unit that exists on SoC. + Per message-unit, multiple misc-devices are created, that are used by userspace + application as logical-waiter and logical-receiver. + + memory-region: + items: + - description: Reserved memory region that can be accessed by firmware. Used for + exchanging the buffers between driver and firmware. + + fsl,sram: + description: Phandle to the device SRAM + $ref: /schemas/types.yaml#/definitions/phandle-array + +required: + - compatible + - mboxes + - mbox-names + - fsl,mu-id + +additionalProperties: false + +examples: + - | + ele_fw: se-fw { + compatible = "fsl,imx8ulp-se-fw"; + mbox-names = "tx", "rx"; + mboxes = <&s4muap 0 0>, <&s4muap 1 0>; + fsl,mu-id = <2>; + }; -- 2.34.1