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 0EF5CCE7B1A for ; Thu, 28 Sep 2023 18:52:38 +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-Transfer-Encoding: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-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=1RXelSjJ1BJlWJj1+wFKh0CDdLnkic4jZCkbxwaCe5w=; b=umlhstA3fjJBWM q/bwCEP/R6gBYbMj/idfvIvYZNjvg7mNia9m9HWFDy3gqkH14qKjewmLnoH6AzfKKkjHjfVMYihLG u2IaFlQYgqV5R8132ZGjuR4faWvhkRGosiEu7CkazwpK4+UIcyGZJ+n3qs2702RcbKsPzifWUiMR3 UxTet8zA1DfFglCUDm71BfTjMCq2uChisN+2T9MViAv8cNhLUjNMMd+miE2SBgLGajAmTbm7231Pj pQTGZsdVZKFI3PuxuK9GXuZX3S46mwXiTDSrj0tpaQPY0Qf8XsDz8lgYTHLPQD+Y+0ws6tppfL77N gPp0wTQ5Aq8kfEhXLgNg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qlw7M-006XVB-05; Thu, 28 Sep 2023 18:52:08 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qlw7I-006XUL-0b for linux-arm-kernel@lists.infradead.org; Thu, 28 Sep 2023 18:52:06 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by ams.source.kernel.org (Postfix) with ESMTP id 9C834B81D76; Thu, 28 Sep 2023 18:52:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1EFFDC433C8; Thu, 28 Sep 2023 18:52:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695927122; bh=n3aZdNHw4MpEqxnCX4fjYDB+dJUPetWTFBhMgHS1KU8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Flz0tRnVGo4/Y0PD9nmkCdwWh/N9m61Q8xa2FbhfSXDcp9moHABUQSJFXB+c8ynIN Y+zcjCkLKHVqVx1IatT+ZLBDXX8ylvQSqyrcn9nfUfDVh6aMsTWOVQMqUu2syXsnkU aGhlU7a2VXrA9HW6bebOLy8QCRV0pDLJNl8ns8G02VgFMtSv/KFZ1aNY8IG1js3cEG RrT/+bU02sp7OHJlGaKTnhpJG36yFmUgjssgDEHYwHJVydSaF30Ll22knqO64SQFls xa0hMWoptxs6SHtPCDsJzwC1jMM/IeA80EGhJ8baIu+gOSD+M2VBo0+MAgNmF4iFLQ iVLw/CXpBeL5A== Received: (nullmailer pid 1052656 invoked by uid 1000); Thu, 28 Sep 2023 18:51:59 -0000 Date: Thu, 28 Sep 2023 13:51:59 -0500 From: Rob Herring 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, festevam@gmail.com, linux-imx@nxp.com, davem@davemloft.net, 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 Subject: Re: [PATCH v6 02/11] dt-bindings: arm: fsl: add imx-se-fw binding doc Message-ID: <20230928185159.GA1035361-robh@kernel.org> References: <20230927175401.1962733-1-pankaj.gupta@nxp.com> <20230927175401.1962733-3-pankaj.gupta@nxp.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230927175401.1962733-3-pankaj.gupta@nxp.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230928_115204_511717_07ADC506 X-CRM114-Status: GOOD ( 22.71 ) 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: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Sep 27, 2023 at 11:23:52PM +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 > > 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: Need '|' to preserve formatting. > + 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 The firmware is not compatible across chips? > + > + 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 Extra space in there. Wrap lines at 80 unless there's a benefit to going to 100. > + 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: Just the common 'sram' property. > + description: Phandle to the device SRAM Used for what? > + $ref: /schemas/types.yaml#/definitions/phandle-array > + > +required: > + - compatible > + - mboxes > + - mbox-names > + - fsl,mu-id How is memory-region optional? > + > +additionalProperties: false > + > +examples: > + - | > + ele_fw: se-fw { Drop unused labels. > + compatible = "fsl,imx8ulp-se-fw"; > + mbox-names = "tx", "rx"; > + mboxes = <&s4muap 0 0>, <&s4muap 1 0>; > + fsl,mu-id = <2>; > + }; > -- > 2.34.1 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel