Skip to contentSkip to conversation

dt-bindings: crypto: ice: document the sa8775p inline crypto engine

PATCH Applied Bartosz Golaszewski 6 participants 7 messages Sep 13, 2023 – Oct 1, 2023

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

PATCH 1/2 dt-bindings: crypto: ice: document the sa8775p inline crypto engine

Add the compatible string for QCom ICE on sa8775p SoCs.

---
 .../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 7da9aa82d837..ca4f7d1cefaa 100644
@@ -13,6 +13,7 @@ properties:
   compatible:
     items:
       - enum:
+          - qcom,sa8775p-inline-crypto-engine
           - qcom,sm8450-inline-crypto-engine
           - qcom,sm8550-inline-crypto-engine
       - const: qcom,inline-crypto-engine
Signature · 1 line
2.39.2
#1 lore raw

PATCH 2/2 arm64: dts: qcom: sa8775p: enable the inline crypto engine

Add an ICE node to sa8775p SoC description and enable it by adding a phandle to the UFS node.

---
 arch/arm64/boot/dts/qcom/sa8775p.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)
arch/arm64/boot/dts/qcom/sa8775p.dtsi +8 -0
index 9f4f58e831a4..b6a93b11cbbd 100644
@@ -1525,6 +1525,7 @@ ufs_mem_hc: ufs@1d84000 {
 					<0 0>,
 					<0 0>,
 					<0 0>;
+			qcom,ice = <&ice>;
 			status = "disabled";
 		};
 
@@ -1546,6 +1547,13 @@ ufs_mem_phy: phy@1d87000 {
 			status = "disabled";
 		};
 
+		ice: crypto@1d88000 {
+			compatible = "qcom,sa8775p-inline-crypto-engine",
+				     "qcom,inline-crypto-engine";
+			reg = <0x0 0x01d88000 0x0 0x8000>;
+			clocks = <&gcc GCC_UFS_PHY_ICE_CORE_CLK>;
+		};
+
 		usb_0_hsphy: phy@88e4000 {
 			compatible = "qcom,sa8775p-usb-hs-phy",
 				     "qcom,usb-snps-hs-5nm-phy";
Signature · 1 line
2.39.2
Reviewed-by on v1 2/2
#2 lore raw

Re: [PATCH 2/2] arm64: dts: qcom: sa8775p: enable the inline crypto engine

Quoted 5 lines · Bartosz Golaszewski

Add an ICE node to sa8775p SoC description and enable it by adding a phandle to the UFS node.

---

I don't have any sources backing this up, but 8350 seems to have the exact same register ranges for this block, so I'm inclined to believe it's ok

Konrad

maintainer Applied
#5 lore raw

Re: (subset) [PATCH 1/2] dt-bindings: crypto: ice: document the sa8775p inline crypto engine

In reply to Bartosz Golaszewski
Quoted 3 lines · Bartosz Golaszewski

Add the compatible string for QCom ICE on sa8775p SoCs.

Applied, thanks!

[2/2] arm64: dts: qcom: sa8775p: enable the inline crypto engine

      commit: 96272ba7103d4518e2d0f17daf6fe0008fc6e12c

Best regards,

Signature · 1 line
Bjorn Andersson <[email protected]>
maintainer
#6 lore raw
In reply to Bartosz Golaszewski
Quoted 6 lines · Bartosz Golaszewski

Add the compatible string for QCom ICE on sa8775p SoCs.

---
 .../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