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 6EA67EB64DA for ; Wed, 12 Jul 2023 18:27:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version: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=Hlup8V9d6LcWyyyhUkWF5Ka4t9FXubrDXqjpXCy9umA=; b=adXu+u5I8xdJQcUiHvGAuZICkS iB5RBxIyy585c547Ra4bMdXa+a12R8J5rlDAzLf5dE2cSRLaeI5wEuWDYjwntcRh23L20kOrePZ/v K8yaJY5yu1sW+8nfKKYj2Espytrp/udmcYDYTsEAv5HHSHhA1en2UeMb8rH3mgWjFejishp4AbR2T xE75eQZYka/baaOdBG4nUNmyH7SgAgqh8ynhVCLSgGV66hL9MWzJjuHBG6vHSVMuT50N7cJI262+j s6hmAHbu66a9yRU/x34te+hlM2SzEXPGWj/qiupgC2btRSgh0I6JZ0JZcXDMMAt7nKfpH5njmvq2f TA+Ydbfg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qJeYG-000tDj-1L; Wed, 12 Jul 2023 18:27:00 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qJeYD-000tD7-2E for linux-arm-kernel@lists.infradead.org; Wed, 12 Jul 2023 18:26:59 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0B8D7618D1; Wed, 12 Jul 2023 18:26:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3C7C0C433C7; Wed, 12 Jul 2023 18:26:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689186416; bh=Q7hIJjg1COAF/FMM7M3FxLlMT24gT6lBvHIoG1GKhJY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=a2OO0NQ0az6y2fxQoi+xkXsK5eWKHyB0cfC0t79Gkr1u0XTOD3Qg+mRiEgii/CAJp od5LYXHZNnYgevU4Wre5AfUkJioAgYcqtvqoqxWB52CSoGaScpLwbfVkGXxL9TgwSP QHhFJ2jTNriV5zAw/Djxoosa1D79mF0y30oK7eRrW4RGQ9vDq6v+qKFNpDYIROuHTu +aH5/vlay8Q9mrkp8ftptoOfv4Rivr3ClgR08WdeAXj9WCYjoUV1fuoDmmR1EY/9IU 3OglgSMetPXl9ng5FjB0FSJuIsrE0bcyiiH4UPX2v38/r46HQsgQZ6UrKlYVTPdY/m bGj1QwFpXwFZA== Date: Wed, 12 Jul 2023 19:26:48 +0100 From: Conor Dooley To: Pankaj Gupta Cc: shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, clin@suse.com, conor+dt@kernel.org, pierre.gondois@arm.com, ping.bai@nxp.com, xiaoning.wang@nxp.com, wei.fang@nxp.com, peng.fan@nxp.com, haibo.chen@nxp.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, sahil.malhotra@nxp.com, aisheng.dong@nxp.com, V.Sethi@nxp.com Subject: Re: [PATCH v4 1/7] dt-bindings: arm: fsl: add se-fw binding doc Message-ID: <20230712-step-dimple-31746cd3a640@spud> References: <20230712121219.2654234-1-pankaj.gupta@nxp.com> <20230712121219.2654234-2-pankaj.gupta@nxp.com> MIME-Version: 1.0 In-Reply-To: <20230712121219.2654234-2-pankaj.gupta@nxp.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230712_112657_849770_47A9BA9D X-CRM114-Status: GOOD ( 25.83 ) 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: , Content-Type: multipart/mixed; boundary="===============7196577748230650326==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============7196577748230650326== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="MVVWJK8Ul290dK88" Content-Disposition: inline --MVVWJK8Ul290dK88 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hey, On Wed, Jul 12, 2023 at 05:42:13PM +0530, Pankaj Gupta wrote: > 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 >=20 > 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. >=20 > Driver configures multiple misc-device on the MU, for multiple > user-space applications can communicate on single MU. >=20 > It exists on some i.MX processors. e.g. i.MX8ULP, i.MX93 etc. >=20 > Signed-off-by: Pankaj Gupta > --- > .../bindings/arm/freescale/fsl,se-fw.yaml | 121 ++++++++++++++++++ > 1 file changed, 121 insertions(+) > create mode 100644 Documentation/devicetree/bindings/arm/freescale/fsl,s= e-fw.yaml >=20 > diff --git a/Documentation/devicetree/bindings/arm/freescale/fsl,se-fw.ya= ml b/Documentation/devicetree/bindings/arm/freescale/fsl,se-fw.yaml > new file mode 100644 > index 000000000000..7567da0b4c21 > --- /dev/null > +++ b/Documentation/devicetree/bindings/arm/freescale/fsl,se-fw.yaml > @@ -0,0 +1,121 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/arm/freescale/fsl,se-fw.yaml# I think on v3 you were asked to use a filename that matches the compatibles? > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: NXP i.MX EdgeLock Enclave Firmware (ELEFW) > + > +maintainers: > + - Pankaj Gupta > + value, i.e., supported SoC(s) are imx8ulp, imx93. > + > +properties: > + compatible: > + enum: > + - fsl,imx-ele This looks like a generic compatible, not a specific one, but you use it on the imx8ulp. I would have expected that you would have something like "fsl,imx8ulp-ele" for that. > + - fsl,imx93-ele > + > + mboxes: > + description: > + A list of phandles of TX MU channels followed by a list of phandle= s of > + RX MU channels. The number of expected tx and rx channels is 1 TX,= and > + 1 RX channels. All MU channels must be within the same MU instance. > + Cross instances are not allowed. The MU instance to be used is S4M= UAP > + for imx8ulp & imx93. Users need to ensure that used MU instance do= es not > + conflict with other execution environments. > + items: > + - description: TX0 MU channel > + - description: RX0 MU channel > + > + mbox-names: > + items: > + - const: tx > + - const: rx > + > + fsl,mu-did: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: > + Owner of message-unit, is identified via Domain ID or did. On v3 you had constraints: enum: [0, 1, 2, 3, 4, 5, 6, 7] Do constraints no longer apply? If they do, you can use minimum & maximum to specify them. > + fsl,mu-id: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: > + Identifier to the message-unit among the multiple message-unit tha= t exists on SoC. > + It is used to create the channels, default to 2 Are there constraints here? If so, same applies. You should use "default:" for defaults, rather than describing them in freeform text. Thanks, Conor. --MVVWJK8Ul290dK88 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZK7waAAKCRB4tDGHoIJi 0hFZAP9rTx13tffIjqCTITFWtmu6nm0KredohfkX/h4BpEkC9wEA354/9tSp0y3x Ed3lRny+J9oPVoUqCp3JeHTYp+SvYgQ= =IDyi -----END PGP SIGNATURE----- --MVVWJK8Ul290dK88-- --===============7196577748230650326== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============7196577748230650326==--