Skip to contentSkip to conversation

arm64: dts: qcom: sm8150: Add standalone ICE node for UFS

PATCH Applied Andrew Gigena 4 participants 9 messages Nov 11 – Nov 21

Subsystems (8)
lore
Share & tools
lore
#0 lore raw

v4 cover arm64: dts: qcom: sm8150: Add standalone ICE node for UFS

Hi everyone,

This series adds standalone ICE support to SM8150 (Snapdragon 855), matching newer Qualcomm platforms.

Patch 1 documents the sm8150 ICE compatible.
Patch 2 moves sm8150-ufshc to the standalone-ICE UFS binding. Patch 3 converts the UFS node to use a dedicated ICE node.

Tested on a Google Pixel 4 (google-flame): AES-256-XTS advertised, ext4 encryption supported, ICE self-test passes.

Changes in v4:
- Add Krzysztof's Reviewed-by to patch 1.
- Document the transient dtbs_check warning for embedded-ICE DTs and why
it has no practical impact (patch 2).
- Link to v3: https://patch.msgid.link/[email protected]

Changes in v3:
- Split bindings into two commits (compatible + standalone-ICE move).
- Drop author Tested-by from DTS patch.
- Link to v2: https://patch.msgid.link/[email protected]

Changes in v2:
- Move sm8150-ufshc to the standalone-ICE binding.
- Keep the ICE compatible sorted.
- Link to v1: https://patch.msgid.link/[email protected]

---
Andrew Gigena (3):
dt-bindings: crypto: ice: document sm8150 compatible
dt-bindings: ufs: qcom: classify sm8150-ufshc as standalone ICE
arm64: dts: qcom: sm8150: use standalone ICE for UFS

 .../bindings/crypto/qcom,inline-crypto-engine.yaml |  1 +
 .../devicetree/bindings/ufs/qcom,sc7180-ufshc.yaml |  2 ++
 .../devicetree/bindings/ufs/qcom,ufs.yaml          | 11 ++++------
 arch/arm64/boot/dts/qcom/sm8150.dtsi               | 25 ++++++++++++++--------
 4 files changed, 23 insertions(+), 16 deletions(-)

---
base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
change-id: 20261104-sm8150-ice-rfc-0b4b2c035e80

Best regards,

Signature · 1 line
Andrew Gigena <[email protected]>
#1 lore raw

PATCH v4 1/3 dt-bindings: crypto: ice: document sm8150 compatible

SM8150 uses a standalone ICE node, so its compatible must be listed.

---
 Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml +1 -0
index 23bf98c2b9fa..0d73e4581e6e 100644
@@ -24,6 +24,7 @@ properties:
           - qcom,sc7180-inline-crypto-engine
           - qcom,sc7280-inline-crypto-engine
           - qcom,shikra-inline-crypto-engine
+          - qcom,sm8150-inline-crypto-engine
           - qcom,sm8450-inline-crypto-engine
           - qcom,sm8550-inline-crypto-engine
           - qcom,sm8650-inline-crypto-engine
Signature · 1 line
2.56.0
maintainer
#2 lore raw

Re: [PATCH v4 1/3] dt-bindings: crypto: ice: document sm8150 compatible

Quoted 9 lines · On Wed, Nov 11, 2026 at 05:53:21PM +0000, Andrew Gigena via B4 Relay wrote:

From: Andrew Gigena <[email protected]>

SM8150 uses a standalone ICE node, so its compatible must be listed.

---
 Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml | 1 +
 1 file changed, 1 insertion(+)

Patch applied. Thanks.

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
#3 lore raw

PATCH v4 2/3 dt-bindings: ufs: qcom: classify sm8150-ufshc as standalone ICE

In reply to Andrew Gigena

SM8150 UFS uses a standalone ICE node, so its compatible belongs to the standalone-ICE binding rather than the embedded-ICE one.

This tightens the schema for qcom,sm8150-ufshc: the standalone-ICE binding allows one reg entry and eight clocks, while existing DTs still use the embedded-ICE layout. This causes a transient, validation-only dtbs_check warning until those DTs are converted (sm8150.dtsi follows in the next patch); existing DTBs still boot.

---
 Documentation/devicetree/bindings/ufs/qcom,sc7180-ufshc.yaml |  2 ++
 Documentation/devicetree/bindings/ufs/qcom,ufs.yaml          | 11 ++++-------
 2 files changed, 6 insertions(+), 7 deletions(-)
Documentation/devicetree/bindings/ufs/qcom,sc7180-ufshc.yaml +2 -0
index 3c407426d697..572eec814a60 100644
@@ -23,6 +23,7 @@ select:
           - qcom,sc7280-ufshc
           - qcom,sc8180x-ufshc
           - qcom,sc8280xp-ufshc
+          - qcom,sm8150-ufshc
           - qcom,sm8250-ufshc
           - qcom,sm8350-ufshc
           - qcom,sm8450-ufshc
@@ -48,6 +49,7 @@ properties:
               - qcom,sc7280-ufshc
               - qcom,sc8180x-ufshc
               - qcom,sc8280xp-ufshc
+              - qcom,sm8150-ufshc
               - qcom,sm8250-ufshc
               - qcom,sm8350-ufshc
               - qcom,sm8450-ufshc
Documentation/devicetree/bindings/ufs/qcom,ufs.yaml +4 -7
index 516bb61a4624..ef4d1d055169 100644
@@ -23,7 +23,6 @@ select:
           - qcom,sm6115-ufshc
           - qcom,sm6125-ufshc
           - qcom,sm6350-ufshc
-          - qcom,sm8150-ufshc
   required:
     - compatible
 
@@ -38,7 +37,6 @@ properties:
           - qcom,sm6115-ufshc
           - qcom,sm6125-ufshc
           - qcom,sm6350-ufshc
-          - qcom,sm8150-ufshc
       - const: qcom,ufshc
       - const: jedec,ufs-2.0
 
@@ -69,7 +67,6 @@ allOf:
             enum:
               - qcom,sdm845-ufshc
               - qcom,sm6350-ufshc
-              - qcom,sm8150-ufshc
     then:
       properties:
         clocks:
@@ -175,10 +172,10 @@ unevaluatedProperties: false
 
 examples:
   - |
-    #include <dt-bindings/clock/qcom,gcc-sm8150.h>
+    #include <dt-bindings/clock/qcom,gcc-sdm845.h>
     #include <dt-bindings/clock/qcom,rpmh.h>
     #include <dt-bindings/gpio/gpio.h>
-    #include <dt-bindings/interconnect/qcom,sm8150.h>
+    #include <dt-bindings/interconnect/qcom,sdm845.h>
     #include <dt-bindings/interrupt-controller/arm-gic.h>
 
     soc {
@@ -186,7 +183,7 @@ examples:
         #size-cells = <2>;
 
         ufs@1d84000 {
-            compatible = "qcom,sm8150-ufshc", "qcom,ufshc",
+            compatible = "qcom,sdm845-ufshc", "qcom,ufshc",
                          "jedec,ufs-2.0";
             reg = <0x0 0x01d84000 0x0 0x2500>,
                   <0x0 0x01d90000 0x0 0x8000>;
@@ -207,7 +204,7 @@ examples:
             vccq-max-microamp = <1200000>;
 
             power-domains = <&gcc UFS_PHY_GDSC>;
-            iommus = <&apps_smmu 0x300 0>;
+            iommus = <&apps_smmu 0x100 0xf>;
 
             clocks = <&gcc GCC_UFS_PHY_AXI_CLK>,
                      <&gcc GCC_AGGRE_UFS_PHY_AXI_CLK>,
Signature · 1 line
2.56.0
Reviewed-by on v4 2/3
#4 lore raw

Re: [PATCH v4 2/3] dt-bindings: ufs: qcom: classify sm8150-ufshc as standalone ICE

Quoted 9 lines · Andrew Gigena

SM8150 UFS uses a standalone ICE node, so its compatible belongs to the standalone-ICE binding rather than the embedded-ICE one.

This tightens the schema for qcom,sm8150-ufshc: the standalone-ICE binding allows one reg entry and eight clocks, while existing DTs still use the embedded-ICE layout. This causes a transient, validation-only dtbs_check warning until those DTs are converted (sm8150.dtsi follows in the next patch); existing DTBs still boot.

Quoted 5 lines
---
 Documentation/devicetree/bindings/ufs/qcom,sc7180-ufshc.yaml |  2 ++
 Documentation/devicetree/bindings/ufs/qcom,ufs.yaml          | 11 ++++-------
 2 files changed, 6 insertions(+), 7 deletions(-)

Best regards,
Krzysztof

maintainer Applied
#5 lore raw

Re: [PATCH v4 2/3] dt-bindings: ufs: qcom: classify sm8150-ufshc as standalone ICE

In reply to Andrew Gigena

Andrew,

Quoted 8 lines

SM8150 UFS uses a standalone ICE node, so its compatible belongs to the standalone-ICE binding rather than the embedded-ICE one.

This tightens the schema for qcom,sm8150-ufshc: the standalone-ICE binding allows one reg entry and eight clocks, while existing DTs still use the embedded-ICE layout. This causes a transient, validation-only dtbs_check warning until those DTs are converted (sm8150.dtsi follows in the next patch); existing DTBs still boot.

Applied to 7.5/scsi-staging, thanks!

Signature · 1 line
Martin K. Petersen
#6 lore raw

PATCH v4 3/3 arm64: dts: qcom: sm8150: use standalone ICE for UFS

In reply to Andrew Gigena

Align SM8150 with the standalone ICE representation used on newer platforms instead of embedding ICE registers in the UFS node.

---
 arch/arm64/boot/dts/qcom/sm8150.dtsi | 25 ++++++++++++++++---------
 1 file changed, 16 insertions(+), 9 deletions(-)
arch/arm64/boot/dts/qcom/sm8150.dtsi +16 -9
index 293fcbacff34..b3d6f3d92395 100644
@@ -2071,9 +2071,7 @@ pcie1_phy: phy@1c0e000 {
 		ufs_mem_hc: ufshc@1d84000 {
 			compatible = "qcom,sm8150-ufshc", "qcom,ufshc",
 				     "jedec,ufs-2.0";
-			reg = <0 0x01d84000 0 0x2500>,
-			      <0 0x01d90000 0 0x8000>;
-			reg-names = "std", "ice";
+			reg = <0 0x01d84000 0 0x2500>;
 			interrupts = <GIC_SPI 265 IRQ_TYPE_LEVEL_HIGH>;
 			phys = <&ufs_mem_phy>;
 			phy-names = "ufsphy";
@@ -2092,8 +2090,7 @@ ufs_mem_hc: ufshc@1d84000 {
 				"ref_clk",
 				"tx_lane0_sync_clk",
 				"rx_lane0_sync_clk",
-				"rx_lane1_sync_clk",
-				"ice_core_clk";
+				"rx_lane1_sync_clk";
 			clocks =
 				<&gcc GCC_UFS_PHY_AXI_CLK>,
 				<&gcc GCC_AGGRE_UFS_PHY_AXI_CLK>,
@@ -2102,8 +2099,7 @@ ufs_mem_hc: ufshc@1d84000 {
 				<&rpmhcc RPMH_CXO_CLK>,
 				<&gcc GCC_UFS_PHY_TX_SYMBOL_0_CLK>,
 				<&gcc GCC_UFS_PHY_RX_SYMBOL_0_CLK>,
-				<&gcc GCC_UFS_PHY_RX_SYMBOL_1_CLK>,
-				<&gcc GCC_UFS_PHY_ICE_CORE_CLK>;
+				<&gcc GCC_UFS_PHY_RX_SYMBOL_1_CLK>;
 			freq-table-hz =
 				<37500000 300000000>,
 				<0 0>,
@@ -2112,8 +2108,8 @@ ufs_mem_hc: ufshc@1d84000 {
 				<0 0>,
 				<0 0>,
 				<0 0>,
-				<0 0>,
-				<0 300000000>;
+				<0 0>;
+			qcom,ice = <&ice>;
 
 			status = "disabled";
 		};
@@ -2139,6 +2135,17 @@ ufs_mem_phy: phy@1d87000 {
 			status = "disabled";
 		};
 
+		ice: crypto@1d90000 {
+			compatible = "qcom,sm8150-inline-crypto-engine",
+				     "qcom,inline-crypto-engine";
+			reg = <0 0x01d90000 0 0x8000>;
+			clocks = <&gcc GCC_UFS_PHY_ICE_CORE_CLK>,
+				 <&gcc GCC_UFS_PHY_AHB_CLK>;
+			clock-names = "core",
+				      "iface";
+			power-domains = <&gcc UFS_PHY_GDSC>;
+		};
+
 		cryptobam: dma-controller@1dc4000 {
 			compatible = "qcom,bam-v1.7.4", "qcom,bam-v1.7.0";
 			reg = <0 0x01dc4000 0 0x24000>;
Signature · 1 line
2.56.0
Reviewed-by on v4 3/3
#7 lore raw

Re: [PATCH v4 3/3] arm64: dts: qcom: sm8150: use standalone ICE for UFS

Quoted 7 lines · Andrew Gigena

Align SM8150 with the standalone ICE representation used on newer platforms instead of embedding ICE registers in the UFS node.

---
 arch/arm64/boot/dts/qcom/sm8150.dtsi | 25 ++++++++++++++++---------
 1 file changed, 16 insertions(+), 9 deletions(-)

Best regards,
Krzysztof

maintainer Applied
#8 lore raw
In reply to Andrew Gigena
Quoted 8 lines · Andrew Gigena

This series adds standalone ICE support to SM8150 (Snapdragon 855), matching newer Qualcomm platforms.

Patch 1 documents the sm8150 ICE compatible.
Patch 2 moves sm8150-ufshc to the standalone-ICE UFS binding. Patch 3 converts the UFS node to use a dedicated ICE node.

[...]

Applied to 7.5/scsi-queue, thanks!

[2/3] dt-bindings: ufs: qcom: classify sm8150-ufshc as standalone ICE

      https://git.kernel.org/mkp/scsi/c/08fec21faae4
Signature · 1 line
Martin K. Petersen