Devicetree
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Enable ICE for UFS on Qualcomm Glymur
@ 2026-11-18  9:08 Wenjia Zhang
  2026-11-18  9:08 ` [PATCH v2 1/2] dt-bindings: crypto: qcom,inline-crypto-engine: Add Glymur support Wenjia Zhang
  2026-11-18  9:08 ` [PATCH v2 2/2] arm64: dts: qcom: glymur: Add ICE node for UFS inline encryption Wenjia Zhang
  0 siblings, 2 replies; 8+ messages in thread
From: Wenjia Zhang @ 2026-11-18  9:08 UTC (permalink / raw)
  To: Abel Vesa, Herbert Xu, David S. Miller, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Bjorn Andersson, Konrad Dybcio
  Cc: linux-arm-msm, linux-crypto, devicetree, Wenjia Zhang

This series enables the Inline Crypto Engine (ICE) for UFS storage
on the Qualcomm Glymur platform, including the Glymur QCB board.

The hardware reports ICE v4.0.3 with Hardware Key Manager (HWKM) v2.

Patch 1 documents the Glymur ICE compatible string.
Patch 2 adds the ICE node with its registers, clocks and power domain,
and connects the UFS host controller to ICE through the qcom,ice phandle.

Validation:
- Observed ICE v4.0.3 and HWKM v2 during probe.
- Standard-key and wrapped-key tests passed
- checkpatch --strict --no-signoff: no errors, warnings or checks.
- Targeted ICE DT binding validation passed.
- Glymur QCB DTB compilation passed.

---
Changes in v2:
- Rebased on next-20261117 (7cfbf79c66c6).
- Removed the prerequisite metadata and dependency sections.
- Link to v1: https://lore.kernel.org/r/20261118-glymur_ufs_ice-v1-0-2ffe4bb931a6@oss.qualcomm.com

---
Wenjia Zhang (2):
      dt-bindings: crypto: qcom,inline-crypto-engine: Add Glymur support
      arm64: dts: qcom: glymur: Add ICE node for UFS inline encryption

 .../bindings/crypto/qcom,inline-crypto-engine.yaml          |  1 +
 arch/arm64/boot/dts/qcom/glymur.dtsi                        | 13 +++++++++++++
 2 files changed, 14 insertions(+)
---
base-commit: 7cfbf79c66c63e807ea452abf0546e6f6d6833a6
change-id: 20261117-glymur_ufs_ice-f469fdfcf38c

Best regards,
-- 
Wenjia Zhang <wenjia.zhang@oss.qualcomm.com>


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH v2 1/2] dt-bindings: crypto: qcom,inline-crypto-engine: Add Glymur support
  2026-11-18  9:08 [PATCH v2 0/2] Enable ICE for UFS on Qualcomm Glymur Wenjia Zhang
@ 2026-11-18  9:08 ` Wenjia Zhang
  2026-12-01 19:08   ` Rob Herring (Arm)
  2026-12-04  6:01   ` Herbert Xu
  2026-11-18  9:08 ` [PATCH v2 2/2] arm64: dts: qcom: glymur: Add ICE node for UFS inline encryption Wenjia Zhang
  1 sibling, 2 replies; 8+ messages in thread
From: Wenjia Zhang @ 2026-11-18  9:08 UTC (permalink / raw)
  To: Abel Vesa, Herbert Xu, David S. Miller, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Bjorn Andersson, Konrad Dybcio
  Cc: linux-arm-msm, linux-crypto, devicetree, Wenjia Zhang

Document the compatible string for the Inline Crypto Engine (ICE)
found on the Qualcomm Glymur SoC.

Signed-off-by: Wenjia Zhang <wenjia.zhang@oss.qualcomm.com>
---
 Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml b/Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml
index b98c4c6b77f05a4295b7225007187a7b05387338..01a1a36652d759610e36d5ac3ad56f4b2d45b96b 100644
--- a/Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml
+++ b/Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml
@@ -14,6 +14,7 @@ properties:
     items:
       - enum:
           - qcom,eliza-inline-crypto-engine
+          - qcom,glymur-inline-crypto-engine
           - qcom,hawi-inline-crypto-engine
           - qcom,ipq5210-inline-crypto-engine
           - qcom,ipq5424-inline-crypto-engine

-- 
2.43.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH v2 2/2] arm64: dts: qcom: glymur: Add ICE node for UFS inline encryption
  2026-11-18  9:08 [PATCH v2 0/2] Enable ICE for UFS on Qualcomm Glymur Wenjia Zhang
  2026-11-18  9:08 ` [PATCH v2 1/2] dt-bindings: crypto: qcom,inline-crypto-engine: Add Glymur support Wenjia Zhang
@ 2026-11-18  9:08 ` Wenjia Zhang
  2026-11-18  9:48   ` Kuldeep Singh
                     ` (2 more replies)
  1 sibling, 3 replies; 8+ messages in thread
From: Wenjia Zhang @ 2026-11-18  9:08 UTC (permalink / raw)
  To: Abel Vesa, Herbert Xu, David S. Miller, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Bjorn Andersson, Konrad Dybcio
  Cc: linux-arm-msm, linux-crypto, devicetree, Wenjia Zhang

Add the Inline Crypto Engine (ICE) device node to describe the
hardware-accelerated inline encryption for UFS storage on the
Glymur QCB board.

Signed-off-by: Wenjia Zhang <wenjia.zhang@oss.qualcomm.com>
---
 arch/arm64/boot/dts/qcom/glymur.dtsi | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/glymur.dtsi b/arch/arm64/boot/dts/qcom/glymur.dtsi
index 165dfa11f17f55478cfda09c3db2143a1e5b91b8..ba949704e3b4fe2aa497873be6fa0a5cd2f3a1b4 100644
--- a/arch/arm64/boot/dts/qcom/glymur.dtsi
+++ b/arch/arm64/boot/dts/qcom/glymur.dtsi
@@ -4156,6 +4156,8 @@ &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>,
 			phys = <&ufs_mem_phy>;
 			phy-names = "ufsphy";
 
+			qcom,ice = <&ice>;
+
 			#reset-cells = <1>;
 
 			status = "disabled";
@@ -4201,6 +4203,17 @@ opp-403000000 {
 			};
 		};
 
+		ice: crypto@1d88000 {
+			compatible = "qcom,glymur-inline-crypto-engine",
+				     "qcom,inline-crypto-engine";
+			reg = <0x0 0x01d88000 0x0 0x18000>;
+			clocks = <&gcc GCC_UFS_PHY_ICE_CORE_CLK>,
+				 <&gcc GCC_UFS_PHY_AHB_CLK>;
+			clock-names = "core",
+				      "iface";
+			power-domains = <&gcc GCC_UFS_PHY_GDSC>;
+		};
+
 		cryptobam: dma-controller@1dc4000 {
 			compatible = "qcom,bam-v1.7.4", "qcom,bam-v1.7.0";
 			reg = <0x0 0x01dc4000 0x0 0x28000>;

-- 
2.43.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH v2 2/2] arm64: dts: qcom: glymur: Add ICE node for UFS inline encryption
  2026-11-18  9:08 ` [PATCH v2 2/2] arm64: dts: qcom: glymur: Add ICE node for UFS inline encryption Wenjia Zhang
@ 2026-11-18  9:48   ` Kuldeep Singh
  2026-11-20  8:36   ` Abel Vesa
  2026-11-26 14:51   ` Konrad Dybcio
  2 siblings, 0 replies; 8+ messages in thread
From: Kuldeep Singh @ 2026-11-18  9:48 UTC (permalink / raw)
  To: Wenjia Zhang, Abel Vesa, Herbert Xu, David S. Miller, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Bjorn Andersson, Konrad Dybcio
  Cc: linux-arm-msm, linux-crypto, devicetree

On 18-11-2026 14:38, Wenjia Zhang wrote:
> Add the Inline Crypto Engine (ICE) device node to describe the
> hardware-accelerated inline encryption for UFS storage on the
> Glymur QCB board.
> 
> Signed-off-by: Wenjia Zhang <wenjia.zhang@oss.qualcomm.com>

ICE addr/reg and other values are correct as per hardware spec.

Reviewed-by: Kuldeep Singh <kuldeep.singh@oss.qualcomm.com>

-- 
Regards
Kuldeep


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v2 2/2] arm64: dts: qcom: glymur: Add ICE node for UFS inline encryption
  2026-11-18  9:08 ` [PATCH v2 2/2] arm64: dts: qcom: glymur: Add ICE node for UFS inline encryption Wenjia Zhang
  2026-11-18  9:48   ` Kuldeep Singh
@ 2026-11-20  8:36   ` Abel Vesa
  2026-11-26 14:51   ` Konrad Dybcio
  2 siblings, 0 replies; 8+ messages in thread
From: Abel Vesa @ 2026-11-20  8:36 UTC (permalink / raw)
  To: Wenjia Zhang
  Cc: Abel Vesa, Herbert Xu, David S. Miller, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Bjorn Andersson, Konrad Dybcio,
	linux-arm-msm, linux-crypto, devicetree

On 26-11-18 17:08:54, Wenjia Zhang wrote:
> Add the Inline Crypto Engine (ICE) device node to describe the
> hardware-accelerated inline encryption for UFS storage on the
> Glymur QCB board.
> 
> Signed-off-by: Wenjia Zhang <wenjia.zhang@oss.qualcomm.com>

Reviewed-by: Abel Vesa <abel.vesa@oss.qualcomm.com>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v2 2/2] arm64: dts: qcom: glymur: Add ICE node for UFS inline encryption
  2026-11-18  9:08 ` [PATCH v2 2/2] arm64: dts: qcom: glymur: Add ICE node for UFS inline encryption Wenjia Zhang
  2026-11-18  9:48   ` Kuldeep Singh
  2026-11-20  8:36   ` Abel Vesa
@ 2026-11-26 14:51   ` Konrad Dybcio
  2 siblings, 0 replies; 8+ messages in thread
From: Konrad Dybcio @ 2026-11-26 14:51 UTC (permalink / raw)
  To: Wenjia Zhang, Abel Vesa, Herbert Xu, David S. Miller, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Bjorn Andersson, Konrad Dybcio
  Cc: linux-arm-msm, linux-crypto, devicetree

On 11/18/26 10:08 AM, Wenjia Zhang wrote:
> Add the Inline Crypto Engine (ICE) device node to describe the
> hardware-accelerated inline encryption for UFS storage on the
> Glymur QCB board.

This is overly specific, the enablement of the block doesn't have
anything to do with the QCB board. Mentioning you tested it on
there is perhaps what you were after.

> Signed-off-by: Wenjia Zhang <wenjia.zhang@oss.qualcomm.com>
> ---

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>

Konrad

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v2 1/2] dt-bindings: crypto: qcom,inline-crypto-engine: Add Glymur support
  2026-11-18  9:08 ` [PATCH v2 1/2] dt-bindings: crypto: qcom,inline-crypto-engine: Add Glymur support Wenjia Zhang
@ 2026-12-01 19:08   ` Rob Herring (Arm)
  2026-12-04  6:01   ` Herbert Xu
  1 sibling, 0 replies; 8+ messages in thread
From: Rob Herring (Arm) @ 2026-12-01 19:08 UTC (permalink / raw)
  To: Wenjia Zhang
  Cc: linux-crypto, Herbert Xu, David S. Miller, Conor Dooley,
	Krzysztof Kozlowski, Abel Vesa, linux-arm-msm, Konrad Dybcio,
	Bjorn Andersson, devicetree


On Wed, 18 Nov 2026 17:08:53 +0800, Wenjia Zhang wrote:
> Document the compatible string for the Inline Crypto Engine (ICE)
> found on the Qualcomm Glymur SoC.
> 
> Signed-off-by: Wenjia Zhang <wenjia.zhang@oss.qualcomm.com>
> ---
>  Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml | 1 +
>  1 file changed, 1 insertion(+)
> 

Acked-by: Rob Herring (Arm) <robh@kernel.org>


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v2 1/2] dt-bindings: crypto: qcom,inline-crypto-engine: Add Glymur support
  2026-11-18  9:08 ` [PATCH v2 1/2] dt-bindings: crypto: qcom,inline-crypto-engine: Add Glymur support Wenjia Zhang
  2026-12-01 19:08   ` Rob Herring (Arm)
@ 2026-12-04  6:01   ` Herbert Xu
  1 sibling, 0 replies; 8+ messages in thread
From: Herbert Xu @ 2026-12-04  6:01 UTC (permalink / raw)
  To: Wenjia Zhang
  Cc: Abel Vesa, David S. Miller, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Bjorn Andersson, Konrad Dybcio, linux-arm-msm,
	linux-crypto, devicetree

On Wed, Nov 18, 2026 at 05:08:53PM +0800, Wenjia Zhang wrote:
> Document the compatible string for the Inline Crypto Engine (ICE)
> found on the Qualcomm Glymur SoC.
> 
> Signed-off-by: Wenjia Zhang <wenjia.zhang@oss.qualcomm.com>
> ---
>  Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml | 1 +
>  1 file changed, 1 insertion(+)

Patch applied.  Thanks.
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-12-04  6:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-18  9:08 [PATCH v2 0/2] Enable ICE for UFS on Qualcomm Glymur Wenjia Zhang
2026-11-18  9:08 ` [PATCH v2 1/2] dt-bindings: crypto: qcom,inline-crypto-engine: Add Glymur support Wenjia Zhang
2026-12-01 19:08   ` Rob Herring (Arm)
2026-12-04  6:01   ` Herbert Xu
2026-11-18  9:08 ` [PATCH v2 2/2] arm64: dts: qcom: glymur: Add ICE node for UFS inline encryption Wenjia Zhang
2026-11-18  9:48   ` Kuldeep Singh
2026-11-20  8:36   ` Abel Vesa
2026-11-26 14:51   ` Konrad Dybcio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox