From: Frank Li <Frank.li@nxp.com>
To: John Ernberg <john.ernberg@actia.se>
Cc: "Horia Geantă" <horia.geanta@nxp.com>,
"Pankaj Gupta" <pankaj.gupta@nxp.com>,
"Gaurav Jain" <gaurav.jain@nxp.com>,
"Herbert Xu" <herbert@gondor.apana.org.au>,
"David S . Miller" <davem@davemloft.net>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Shawn Guo" <shawnguo@kernel.org>,
"Sascha Hauer" <s.hauer@pengutronix.de>,
"Peng Fan" <peng.fan@nxp.com>,
"Pengutronix Kernel Team" <kernel@pengutronix.de>,
"Fabio Estevam" <festevam@gmail.com>,
"linux-crypto@vger.kernel.org" <linux-crypto@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"imx@lists.linux.dev" <imx@lists.linux.dev>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH v5 4/4] arm64: dts: freescale: imx8qxp/imx8qm: Add CAAM support
Date: Tue, 10 Jun 2025 11:25:36 -0400 [thread overview]
Message-ID: <aEhOcPcsBLmaVS1A@lizhi-Precision-Tower-5810> (raw)
In-Reply-To: <20250610085110.2295392-5-john.ernberg@actia.se>
On Tue, Jun 10, 2025 at 08:51:17AM +0000, John Ernberg wrote:
> From: Horia Geantă <horia.geanta@nxp.com>
>
> The iMX8QXP and iMX8QM have a CAAM (Cryptographic Acceleration and
> Assurance Module) like many other iMXs.
>
> Add the definitions for it.
>
> Job Rings 0 and 1 are bound to the SECO (Security Controller) ARM core
> and are not exposed outside it. There's no point to define them in the
> bindings as they cannot be used outside the SECO.
>
> Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
> Signed-off-by: John Ernberg <john.ernberg@actia.se>
> Reviewed-by: Peng Fan <peng.fan@nxp.com>
>
> ---
>
> Imported from NXP tree, trimmed down and fixed the dtbs_check warnings.
> Constrained the ranges to the needed ones.
> Changed the commit message.
> Original here: https://github.com/nxp-imx/linux-imx/commit/699e54b386cb9b53def401798d0a4e646105583d
>
> ---
>
> v5:
> - Collect tags
>
> v4:
> - Drop [ ] rework detailing from commit log. (Frank Li)
> - Add an override dtsi to change the compatibles on QXP due to changes in
> 3/4. (Frank Li)
>
> v3:
> - no changes
>
> v2:
> - Use new compatibles introduced in 3/4 (Frank Li)
> ---
> .../boot/dts/freescale/imx8-ss-security.dtsi | 38 +++++++++++++++++++
> arch/arm64/boot/dts/freescale/imx8qm.dtsi | 1 +
> .../dts/freescale/imx8qxp-ss-security.dtsi | 16 ++++++++
> arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 2 +
> 4 files changed, 57 insertions(+)
> create mode 100644 arch/arm64/boot/dts/freescale/imx8-ss-security.dtsi
> create mode 100644 arch/arm64/boot/dts/freescale/imx8qxp-ss-security.dtsi
>
> diff --git a/arch/arm64/boot/dts/freescale/imx8-ss-security.dtsi b/arch/arm64/boot/dts/freescale/imx8-ss-security.dtsi
> new file mode 100644
> index 000000000000..9ecabb2d03e9
> --- /dev/null
> +++ b/arch/arm64/boot/dts/freescale/imx8-ss-security.dtsi
> @@ -0,0 +1,38 @@
> +// SPDX-License-Identifier: GPL-2.0+
> +/*
> + * Copyright 2019 NXP
> + */
> +
> +#include <dt-bindings/firmware/imx/rsrc.h>
> +
> +security_subsys: bus@31400000 {
> + compatible = "simple-bus";
> + #address-cells = <1>;
> + #size-cells = <1>;
> + ranges = <0x31400000 0x0 0x31400000 0x90000>;
> +
> + crypto: crypto@31400000 {
> + compatible = "fsl,imx8qm-caam", "fsl,sec-v4.0";
> + reg = <0x31400000 0x90000>;
> + interrupts = <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>;
> + #address-cells = <1>;
> + #size-cells = <1>;
> + ranges = <0 0x31400000 0x90000>;
> + fsl,sec-era = <9>;
vendor spec property should after common property, so fsl,sec-era should
be after power-domains.
after fix this
Reviewed-by: Frank Li <Frank.Li@nxp.com>
> + power-domains = <&pd IMX_SC_R_CAAM_JR2>;
> +
> + sec_jr2: jr@30000 {
> + compatible = "fsl,imx8qm-job-ring", "fsl,sec-v4.0-job-ring";
> + reg = <0x30000 0x10000>;
> + interrupts = <GIC_SPI 453 IRQ_TYPE_LEVEL_HIGH>;
> + power-domains = <&pd IMX_SC_R_CAAM_JR2>;
> + };
> +
> + sec_jr3: jr@40000 {
> + compatible = "fsl,imx8qm-job-ring", "fsl,sec-v4.0-job-ring";
> + reg = <0x40000 0x10000>;
> + interrupts = <GIC_SPI 454 IRQ_TYPE_LEVEL_HIGH>;
> + power-domains = <&pd IMX_SC_R_CAAM_JR3>;
> + };
> + };
> +};
> diff --git a/arch/arm64/boot/dts/freescale/imx8qm.dtsi b/arch/arm64/boot/dts/freescale/imx8qm.dtsi
> index 6fa31bc9ece8..6df018643f20 100644
> --- a/arch/arm64/boot/dts/freescale/imx8qm.dtsi
> +++ b/arch/arm64/boot/dts/freescale/imx8qm.dtsi
> @@ -612,6 +612,7 @@ vpu_dsp: dsp@556e8000 {
> };
>
> /* sorted in register address */
> + #include "imx8-ss-security.dtsi"
> #include "imx8-ss-cm41.dtsi"
> #include "imx8-ss-audio.dtsi"
> #include "imx8-ss-vpu.dtsi"
> diff --git a/arch/arm64/boot/dts/freescale/imx8qxp-ss-security.dtsi b/arch/arm64/boot/dts/freescale/imx8qxp-ss-security.dtsi
> new file mode 100644
> index 000000000000..15f1239dab24
> --- /dev/null
> +++ b/arch/arm64/boot/dts/freescale/imx8qxp-ss-security.dtsi
> @@ -0,0 +1,16 @@
> +// SPDX-License-Identifier: GPL-2.0+
> +/*
> + * Copyright 2025 Actia Nordic AB
> + */
> +
> +&crypto {
> + compatible = "fsl,imx8qxp-caam", "fsl,sec-v4.0";
> +};
> +
> +&sec_jr2 {
> + compatible = "fsl,imx8qxp-job-ring", "fsl,sec-v4.0-job-ring";
> +};
> +
> +&sec_jr3 {
> + compatible = "fsl,imx8qxp-job-ring", "fsl,sec-v4.0-job-ring";
> +};
> diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi
> index 05138326f0a5..e2e799cc294c 100644
> --- a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi
> +++ b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi
> @@ -321,6 +321,7 @@ map0 {
> /* sorted in register address */
> #include "imx8-ss-img.dtsi"
> #include "imx8-ss-vpu.dtsi"
> + #include "imx8-ss-security.dtsi"
> #include "imx8-ss-cm40.dtsi"
> #include "imx8-ss-gpu0.dtsi"
> #include "imx8-ss-adma.dtsi"
> @@ -332,6 +333,7 @@ map0 {
>
> #include "imx8qxp-ss-img.dtsi"
> #include "imx8qxp-ss-vpu.dtsi"
> +#include "imx8qxp-ss-security.dtsi"
> #include "imx8qxp-ss-adma.dtsi"
> #include "imx8qxp-ss-conn.dtsi"
> #include "imx8qxp-ss-lsio.dtsi"
> --
> 2.49.0
next prev parent reply other threads:[~2025-06-10 18:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-10 8:51 [PATCH v5 0/4] crypto: caam - iMX8QXP support (and related fixes) John Ernberg
2025-06-10 8:51 ` [PATCH v5 4/4] arm64: dts: freescale: imx8qxp/imx8qm: Add CAAM support John Ernberg
2025-06-10 15:25 ` Frank Li [this message]
2025-06-10 8:51 ` [PATCH v5 1/4] crypto: caam - Prevent crash on suspend with iMX8QM / iMX8ULP John Ernberg
2025-06-10 15:22 ` Frank Li
2025-06-10 8:51 ` [PATCH v5 3/4] dt-bindings: crypto: fsl,sec-v4.0: Add power domains for iMX8QM and iMX8QXP John Ernberg
2025-06-10 8:51 ` [PATCH v5 2/4] crypto: caam - Support iMX8QXP and variants thereof John Ernberg
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=aEhOcPcsBLmaVS1A@lizhi-Precision-Tower-5810 \
--to=frank.li@nxp.com \
--cc=conor+dt@kernel.org \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=festevam@gmail.com \
--cc=gaurav.jain@nxp.com \
--cc=herbert@gondor.apana.org.au \
--cc=horia.geanta@nxp.com \
--cc=imx@lists.linux.dev \
--cc=john.ernberg@actia.se \
--cc=kernel@pengutronix.de \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pankaj.gupta@nxp.com \
--cc=peng.fan@nxp.com \
--cc=robh@kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@kernel.org \
/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