Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2902176rdh; Mon, 30 Oct 2023 10:51:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IES5o779AaDVEZpYnIK+9qWtMm/5YDd3KpDKb9OrayNslLA+QAsi2oroDu+V3v6GNsuOeGm X-Received: by 2002:a05:6a20:2589:b0:16b:c20d:f979 with SMTP id k9-20020a056a20258900b0016bc20df979mr13790952pzd.13.1698688310240; Mon, 30 Oct 2023 10:51:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698688310; cv=none; d=google.com; s=arc-20160816; b=hekO5UpnExdKweVdMsnNYwsWkhCDML0XEe4Zxdbo4/Mqid0DFILmH2ul7mXvRJiLgG Sa7jxWrYlTXrkG2THY4lSZCxZg4jsUbpuKZP7ykbC9eHVbrU1xpd3CEj+hlLIx2GentJ XzeJpBD+TNM3OUAV+mK9k/ujjPHQTdckg0dEZ3nZw0dQitS5hFEQ5UwwueXHOSsJDl6y P0dK/teSMR2tvIXDhXPR/OWewMcV4v+jtjZyVCmcZGkvMqVUSrwpMiF0r4AsjX+GRGfi Pe/vCz62IY2NAr/jklQgMQhguo48KmCjrVJBzZn1GOtBfh1vINJ0rIOXI2zui29rAed2 HjJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:autocrypt :from:references:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=BVXGBO/IbvKV8xn8ukrndBb8EmA+/oLaHjhyoTLulGg=; fh=4rS3z2GZ1ocdMbfT3SJm9qlR2aByO+76qKwLKciDblA=; b=R1IP8Uno1/azCDXQiVsl7KOr9dF4tnTCcGrrDtEdyjqfK1NHQOgLstM6WG26cjLGgq heQM+5JPJVXpRiS80ixh2StjF8CYoZy0g43EOVAw4zjuj5tkfEl6+XiRdU2cQusQOYxN uB/iqG4Z3QTzdMHi3mCux9tccTrQrbx7VN3+A69XCOJV9H2womZRnCSX+DqUYXqkbeVL 0yYPofsErr6Ev0JFOX57LTzKkHXSqIGLrU8ZPI3j3QebsetSPbckQOm/I8yv8ND8Gmi1 BUTuamjQicNvT0BNhxtgvDsHo/K0i4nn1Ub6E+HhZ+fdX/mNzc8WyVrpiBxBGhEUXW4h 0D6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vcX5ZGr9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id l5-20020a633e05000000b0056da0ae25a2si5124857pga.32.2023.10.30.10.51.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 10:51:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vcX5ZGr9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 925F8809AC96; Mon, 30 Oct 2023 10:51:46 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233964AbjJ3Rva (ORCPT + 99 others); Mon, 30 Oct 2023 13:51:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233952AbjJ3Rv3 (ORCPT ); Mon, 30 Oct 2023 13:51:29 -0400 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33EDBD9 for ; Mon, 30 Oct 2023 10:51:25 -0700 (PDT) Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-538e8eca9c1so7684064a12.3 for ; Mon, 30 Oct 2023 10:51:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698688283; x=1699293083; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=BVXGBO/IbvKV8xn8ukrndBb8EmA+/oLaHjhyoTLulGg=; b=vcX5ZGr9nFwo5yAMQBSK5PSn/RC1yM9PTql0keRkgbgc8D1vUXo8tICI/V1dKZlGGd N/ZONAUcd7nKWtJvZyl+otaj/xq33SWWdE4WM8q89FuUzNRO16WmscoyOm89CAS3yFQO 2pjeWO2Urc9631yO229eCnJdaE58BmEz3NqHVeMB0FEmwrbVqhgS1YX5FNJ2xJA3ySsc ZffqWZJixdSdOehoPJYXgR4ua8wk478dutpsgNIc7Jo041Li/TntXM1x4ipv6fBnJzxI JCI7lAp8AjomUCsUti+ipICK7BbCu7YtlewTfppzJ6JYJHDN/DkA66woiIdvTB5/g9RN OSFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698688283; x=1699293083; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=BVXGBO/IbvKV8xn8ukrndBb8EmA+/oLaHjhyoTLulGg=; b=TbbQGF9TogEZKdP6A44shumuo6qlAwU9CuJYrOR+BIflnlNvrYRmbKkZBdIhH7khq9 eKnQZpBaks5/gwqAKIyaw0qBC2m1EGazdnpGdOgiFF/mikonWkGs+vnuGP/Y3eWeNhZ0 x46euV62jg1et2IhpU3eQapQScGEZb9kzXJsKkO9jwAJSJY9NmyxMc233cy0+IzUtFMz E9m5wOQZnIbYuIHeSrryrQ4yT9uiWBrGWsiqVQp8QN4wxbk7cR8S26nEy/0dd/jJuPK8 fe6n8AmrcU502z+1eu4CSLWFa5W7k1lBX+WiQxJsGn1scCr/eYNJzwYq1ZoBl3Lhd3FV 5nbQ== X-Gm-Message-State: AOJu0YwwsNyZEqnHvc+kY0NFsNQF1+rFsHG0d03GP1tnqIDiIJim+NyA PSCstmxco3LUNRMl7K18U/febQ== X-Received: by 2002:a50:8a99:0:b0:543:52be:e6ad with SMTP id j25-20020a508a99000000b0054352bee6admr1433091edj.5.1698688283654; Mon, 30 Oct 2023 10:51:23 -0700 (PDT) Received: from [192.168.1.20] ([178.197.218.126]) by smtp.gmail.com with ESMTPSA id x8-20020a50d608000000b00543597cd190sm429445edi.47.2023.10.30.10.51.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 Oct 2023 10:51:23 -0700 (PDT) Message-ID: <56e3959a-0c0f-45ba-991d-d1e6afecb014@linaro.org> Date: Mon, 30 Oct 2023 18:51:20 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v7 02/11] dt-bindings: arm: fsl: add imx-se-fw binding doc Content-Language: en-US To: Pankaj Gupta , 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 References: <20231030095849.3456820-1-pankaj.gupta@nxp.com> <20231030095849.3456820-3-pankaj.gupta@nxp.com> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzTRLcnp5c3p0b2Yg S296bG93c2tpIDxrcnp5c3p0b2Yua296bG93c2tpQGxpbmFyby5vcmc+wsGUBBMBCgA+FiEE m9B+DgxR+NWWd7dUG5NDfTtBYpsFAmI+BxMCGwMFCRRfreEFCwkIBwIGFQoJCAsCBBYCAwEC HgECF4AACgkQG5NDfTtBYptgbhAAjAGunRoOTduBeC7V6GGOQMYIT5n3OuDSzG1oZyM4kyvO XeodvvYv49/ng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> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.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 (pete.vger.email [0.0.0.0]); Mon, 30 Oct 2023 10:51:46 -0700 (PDT) On 30/10/2023 10:58, 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 | 83 +++++++++++++++++++ > 1 file changed, 83 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..0503ea497d61 > --- /dev/null > +++ b/Documentation/devicetree/bindings/firmware/fsl,imx-se-fw.yaml > @@ -0,0 +1,83 @@ > +# 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: This is a friendly reminder during the review process. It seems my or other reviewer's previous comments were not fully addressed. Maybe the feedback got lost between the quotes, maybe you just forgot to apply it. Please go back to the previous discussion and either implement all requested changes or keep discussing them. Thank you. Also - not tested > + 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 > + > + memory-region: > + items: > + - description: Reserved memory region that can be accessed by firmware. Used for > + exchanging the buffers between driver and firmware. > + > + sram: > + description: Phandle to the device SRAM Nothing improved > + $ref: /schemas/types.yaml#/definitions/phandle-array How many items? What's inside? > + > +required: > + - compatible > + - mboxes > + - mbox-names > + > +allOf: > + # memory-region > + - if: > + properties: > + compatible: > + contains: > + enum: > + - fsl,imx8ulp-se-fw > + - fsl,imx93-se-fw > + then: > + required: > + - memory-region > + else: > + not: > + required: > + - memory-region That's not the syntax. Test it. You wanted :false > + > +additionalProperties: false > + > +examples: > + - | > + se-fw2 { And how suddenly "2" appeared here? Anyway: Node names should be generic. See also an explanation and list of examples (not exhaustive) in DT specification: https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation > + compatible = "fsl,imx8ulp-se-fw"; > + mbox-names = "tx", "rx"; > + mboxes = <&s4muap 0 0>, <&s4muap 1 0>; Add complete example, so you miss sram. This code is not going well. :( I understand some discussions on properties but lack of testing? At v7 of patchset still not tested? Best regards, Krzysztof