Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: pankaj.gupta@oss.nxp.com
Cc: robh@kernel.org, Frank.Li@kernel.org, conor+dt@kernel.org,
	devicetree@vger.kernel.org, imx@lists.linux.dev
Subject: Re: [PATCH v33 6/7] arm64: dts: imx8ulp: add secure enclave node
Date: Wed, 05 Aug 2026 08:02:18 +0000	[thread overview]
Message-ID: <20260805080219.518B11F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260805-imx-se-if-v33-6-212e32ff0295@nxp.com>

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] The commit message instructs boards to include `imx8ulp-firmware.dtsi` to provide the `memory-region` and enable the secure enclave, but this file is completely missing from the patch series and source tree.
- [Low] The newly added `hsm0: secure-enclave` node lacks the `memory-region` property, which will cause `dtbs_check` validation errors for all boards that include this SoC dtsi but do not explicitly provide it.
--

--- Patch [6]: [PATCH v33 6/7] arm64: dts: imx8ulp: add secure enclave node ---
commit 16318bc9e2bce734d6b1cf3cd835e37f3629b093
Author: Pankaj Gupta <pankaj.gupta@nxp.com>

arm64: dts: imx8ulp: add secure enclave node

This commit adds the EdgeLock Enclave (ELE) secure-enclave node to the
i.MX8ULP SoC dtsi. The node is kept disabled by default to avoid imposing
reserved-memory requirements on all boards.

> Keep the node disabled in the SoC dtsi so it does not impose a
> reserved-memory requirement on every board. Boards enable the enclave and
> provide its memory-region by including imx8ulp-firmware.dtsi.

[Severity: Medium]
The commit message states that boards should include imx8ulp-firmware.dtsi
to provide the memory-region and enable the enclave, but is this file
missing from the patch series and the source tree?

It doesn't seem to be present, which might prevent boards from actually
following this procedure to enable the enclave.

> diff --git a/arch/arm64/boot/dts/freescale/imx8ulp.dtsi b/arch/arm64/boot/dts/freescale/imx8ulp.dtsi
> index c6d1bb9edf388..38233dd74ee33 100644
> --- a/arch/arm64/boot/dts/freescale/imx8ulp.dtsi
> +++ b/arch/arm64/boot/dts/freescale/imx8ulp.dtsi

[ ... ]

> @@ -185,6 +185,14 @@ scmi_sensor: protocol@15 {
>  				#thermal-sensor-cells = <1>;
>  			};
>  		};
> +
> +		hsm0: secure-enclave {
> +			compatible = "fsl,imx8ulp-se-ele-hsm";
> +			mbox-names = "tx", "rx";
> +			mboxes = <&s4muap 0 0>, <&s4muap 1 0>;
> +			sram = <&sram0>;
> +			status = "disabled";
> +		};
>  	};
>  
>  	cm33: remoteproc-cm33 {

[Severity: Low]
Will this incomplete hsm0 node trigger dtbs_check validation errors?

The fsl,imx-se.yaml schema strictly requires a memory-region property for
the fsl,imx8ulp-se-ele-hsm compatible.

Since dt-validate evaluates all nodes, including those with
status = "disabled", it appears any board including imx8ulp.dtsi that does
not explicitly supply a memory-region for this node will fail schema
validation.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260805-imx-se-if-v33-0-212e32ff0295@nxp.com?part=6

  reply	other threads:[~2026-08-05  8:02 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-05  8:44 [PATCH v33 0/7] firmware: imx: driver for NXP secure-enclave pankaj.gupta
2026-08-05  8:44 ` [PATCH v33 1/7] Documentation/firmware: add imx/se to other_interfaces pankaj.gupta
2026-08-05  7:58   ` sashiko-bot
2026-08-05  8:44 ` [PATCH v33 2/7] dt-bindings: arm: fsl: add imx-se-fw binding doc pankaj.gupta
2026-08-05  8:44 ` [PATCH v33 3/7] firmware: imx: add driver for NXP EdgeLock Enclave pankaj.gupta
2026-08-05  8:09   ` sashiko-bot
2026-08-05 13:08     ` Pankaj Gupta (OSS)
2026-08-05  8:44 ` [PATCH v33 4/7] firmware: imx: device context dedicated to priv pankaj.gupta
2026-08-05  8:16   ` sashiko-bot
2026-08-05 13:09     ` Pankaj Gupta (OSS)
2026-08-05  8:44 ` [PATCH v33 5/7] firmware: imx: adds miscdev pankaj.gupta
2026-08-05  8:10   ` sashiko-bot
2026-08-05 13:12     ` Pankaj Gupta (OSS)
2026-08-05  8:44 ` [PATCH v33 6/7] arm64: dts: imx8ulp: add secure enclave node pankaj.gupta
2026-08-05  8:02   ` sashiko-bot [this message]
2026-08-05  8:44 ` [PATCH v33 7/7] arm64: dts: imx8ulp: add reserved memory for EdgeLock Enclave pankaj.gupta

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260805080219.518B11F000E9@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=Frank.Li@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=imx@lists.linux.dev \
    --cc=pankaj.gupta@oss.nxp.com \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox