* [PATCH v2 1/6] dt-bindings: crypto: qcom,inline-crypto-engine: Fix legacy/new SoC strictness split
2026-07-01 20:17 [PATCH v2 0/6] Shikra: Add DT support for ICE, RNG and QCE Kuldeep Singh
@ 2026-07-01 20:17 ` Kuldeep Singh
2026-07-03 6:51 ` Krzysztof Kozlowski
2026-07-01 20:17 ` [PATCH v2 2/6] dt-bindings: crypto: qcom,inline-crypto-engine: Document Shikra ICE Kuldeep Singh
` (4 subsequent siblings)
5 siblings, 1 reply; 22+ messages in thread
From: Kuldeep Singh @ 2026-07-01 20:17 UTC (permalink / raw)
To: Herbert Xu, David S. Miller, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Bjorn Andersson, Harshal Dev, Vinod Koul,
Bartosz Golaszewski, Konrad Dybcio, Frank Li, Andy Gross
Cc: Kuldeep Singh, Krzysztof Kozlowski, linux-arm-msm, linux-crypto,
devicetree, linux-kernel, dmaengine
Couple of already merged SoCs describe ICE as single clock historically
which are recently updated with mandatory 2 clocks.
Keep only the known legacy compatibles flexible, and make strict
validation default(of power-domains and 2 clocks) for all other Soc
compatibles.
This ensures old DTs are valid while ensuring any new SoC (not in the
legacy allowlist) must follow latest requirements by default.
Fixes: e27264daac7d ("dt-bindings: crypto: qcom,ice: Fix missing power-domain and iface clk")
Signed-off-by: Kuldeep Singh <kuldeep.singh@oss.qualcomm.com>
---
.../bindings/crypto/qcom,inline-crypto-engine.yaml | 23 ++++++++++++++++------
1 file changed, 17 insertions(+), 6 deletions(-)
diff --git a/Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml b/Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml
index db895c50e2d2..4f3689a24410 100644
--- a/Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml
+++ b/Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml
@@ -55,14 +55,25 @@ required:
additionalProperties: false
+# Do not extend the list.
+# Legacy SoCs are allowed for single clock.
+# New SoCs must provide both clocks and power domains.
allOf:
- if:
- properties:
- compatible:
- contains:
- enum:
- - qcom,eliza-inline-crypto-engine
- - qcom,milos-inline-crypto-engine
+ not:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - qcom,kaanapali-inline-crypto-engine
+ - qcom,qcs8300-inline-crypto-engine
+ - qcom,sa8775p-inline-crypto-engine
+ - qcom,sc7180-inline-crypto-engine
+ - qcom,sc7280-inline-crypto-engine
+ - qcom,sm8450-inline-crypto-engine
+ - qcom,sm8550-inline-crypto-engine
+ - qcom,sm8650-inline-crypto-engine
+ - qcom,sm8750-inline-crypto-engine
then:
required:
--
2.34.1
^ permalink raw reply related [flat|nested] 22+ messages in thread* Re: [PATCH v2 1/6] dt-bindings: crypto: qcom,inline-crypto-engine: Fix legacy/new SoC strictness split
2026-07-01 20:17 ` [PATCH v2 1/6] dt-bindings: crypto: qcom,inline-crypto-engine: Fix legacy/new SoC strictness split Kuldeep Singh
@ 2026-07-03 6:51 ` Krzysztof Kozlowski
2026-07-03 8:25 ` Kuldeep Singh
0 siblings, 1 reply; 22+ messages in thread
From: Krzysztof Kozlowski @ 2026-07-03 6:51 UTC (permalink / raw)
To: Kuldeep Singh
Cc: Herbert Xu, David S. Miller, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Bjorn Andersson, Harshal Dev, Vinod Koul,
Bartosz Golaszewski, Konrad Dybcio, Frank Li, Andy Gross,
Krzysztof Kozlowski, linux-arm-msm, linux-crypto, devicetree,
linux-kernel, dmaengine
On Thu, Jul 02, 2026 at 01:47:11AM +0530, Kuldeep Singh wrote:
> Couple of already merged SoCs describe ICE as single clock historically
> which are recently updated with mandatory 2 clocks.
>
> Keep only the known legacy compatibles flexible, and make strict
> validation default(of power-domains and 2 clocks) for all other Soc
> compatibles.
>
> This ensures old DTs are valid while ensuring any new SoC (not in the
> legacy allowlist) must follow latest requirements by default.
>
> Fixes: e27264daac7d ("dt-bindings: crypto: qcom,ice: Fix missing power-domain and iface clk")
Please drop, original codeo was correct, no bug to fix.
> Signed-off-by: Kuldeep Singh <kuldeep.singh@oss.qualcomm.com>
> ---
> .../bindings/crypto/qcom,inline-crypto-engine.yaml | 23 ++++++++++++++++------
> 1 file changed, 17 insertions(+), 6 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml b/Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml
> index db895c50e2d2..4f3689a24410 100644
> --- a/Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml
> +++ b/Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml
> @@ -55,14 +55,25 @@ required:
>
> additionalProperties: false
>
> +# Do not extend the list.
> +# Legacy SoCs are allowed for single clock.
> +# New SoCs must provide both clocks and power domains.
> allOf:
> - if:
> - properties:
> - compatible:
> - contains:
> - enum:
> - - qcom,eliza-inline-crypto-engine
> - - qcom,milos-inline-crypto-engine
> + not:
> + properties:
> + compatible:
> + contains:
> + enum:
> + - qcom,kaanapali-inline-crypto-engine
Your change is not equivalent in relation to hawi. Please make it
explicit in commit msg - all devices which are fixed by this.
> + - qcom,qcs8300-inline-crypto-engine
> + - qcom,sa8775p-inline-crypto-engine
> + - qcom,sc7180-inline-crypto-engine
> + - qcom,sc7280-inline-crypto-engine
> + - qcom,sm8450-inline-crypto-engine
> + - qcom,sm8550-inline-crypto-engine
> + - qcom,sm8650-inline-crypto-engine
> + - qcom,sm8750-inline-crypto-engine
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 22+ messages in thread* Re: [PATCH v2 1/6] dt-bindings: crypto: qcom,inline-crypto-engine: Fix legacy/new SoC strictness split
2026-07-03 6:51 ` Krzysztof Kozlowski
@ 2026-07-03 8:25 ` Kuldeep Singh
0 siblings, 0 replies; 22+ messages in thread
From: Kuldeep Singh @ 2026-07-03 8:25 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Herbert Xu, David S. Miller, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Bjorn Andersson, Harshal Dev, Vinod Koul,
Bartosz Golaszewski, Konrad Dybcio, Frank Li, Andy Gross,
Krzysztof Kozlowski, linux-arm-msm, linux-crypto, devicetree,
linux-kernel, dmaengine
On 03-07-2026 12:21, Krzysztof Kozlowski wrote:
> On Thu, Jul 02, 2026 at 01:47:11AM +0530, Kuldeep Singh wrote:
>> Couple of already merged SoCs describe ICE as single clock historically
>> which are recently updated with mandatory 2 clocks.
>>
>> Keep only the known legacy compatibles flexible, and make strict
>> validation default(of power-domains and 2 clocks) for all other Soc
>> compatibles.
>>
>> This ensures old DTs are valid while ensuring any new SoC (not in the
>> legacy allowlist) must follow latest requirements by default.
>>
>> Fixes: e27264daac7d ("dt-bindings: crypto: qcom,ice: Fix missing power-domain and iface clk")
>
> Please drop, original codeo was correct, no bug to fix.
Ok.
>
>> Signed-off-by: Kuldeep Singh <kuldeep.singh@oss.qualcomm.com>
>> ---
>> .../bindings/crypto/qcom,inline-crypto-engine.yaml | 23 ++++++++++++++++------
>> 1 file changed, 17 insertions(+), 6 deletions(-)
>>
>> diff --git a/Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml b/Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml
>> index db895c50e2d2..4f3689a24410 100644
>> --- a/Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml
>> +++ b/Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml
>> @@ -55,14 +55,25 @@ required:
>>
>> additionalProperties: false
>>
>> +# Do not extend the list.
>> +# Legacy SoCs are allowed for single clock.
>> +# New SoCs must provide both clocks and power domains.
>> allOf:
>> - if:
>> - properties:
>> - compatible:
>> - contains:
>> - enum:
>> - - qcom,eliza-inline-crypto-engine
>> - - qcom,milos-inline-crypto-engine
>> + not:
>> + properties:
>> + compatible:
>> + contains:
>> + enum:
>> + - qcom,kaanapali-inline-crypto-engine
>
> Your change is not equivalent in relation to hawi. Please make it
> explicit in commit msg - all devices which are fixed by this.
Sure, eliza/milos/hawi are non-legacy and will adapt 2 clocks model by
default so will update them in commit message.
--
Regards
Kuldeep
^ permalink raw reply [flat|nested] 22+ messages in thread
* [PATCH v2 2/6] dt-bindings: crypto: qcom,inline-crypto-engine: Document Shikra ICE
2026-07-01 20:17 [PATCH v2 0/6] Shikra: Add DT support for ICE, RNG and QCE Kuldeep Singh
2026-07-01 20:17 ` [PATCH v2 1/6] dt-bindings: crypto: qcom,inline-crypto-engine: Fix legacy/new SoC strictness split Kuldeep Singh
@ 2026-07-01 20:17 ` Kuldeep Singh
2026-07-03 6:51 ` Krzysztof Kozlowski
2026-07-03 8:17 ` Bartosz Golaszewski
2026-07-01 20:17 ` [PATCH v2 3/6] dt-bindings: crypto: qcom,prng: Document Shikra TRNG Kuldeep Singh
` (3 subsequent siblings)
5 siblings, 2 replies; 22+ messages in thread
From: Kuldeep Singh @ 2026-07-01 20:17 UTC (permalink / raw)
To: Herbert Xu, David S. Miller, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Bjorn Andersson, Harshal Dev, Vinod Koul,
Bartosz Golaszewski, Konrad Dybcio, Frank Li, Andy Gross
Cc: Kuldeep Singh, Krzysztof Kozlowski, linux-arm-msm, linux-crypto,
devicetree, linux-kernel, dmaengine
Document the Inline Crypto Engine (ICE) on the Qualcomm Shikra platform.
Signed-off-by: Kuldeep Singh <kuldeep.singh@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 4f3689a24410..9e6d3af42971 100644
--- a/Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml
+++ b/Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml
@@ -21,6 +21,7 @@ properties:
- qcom,sa8775p-inline-crypto-engine
- qcom,sc7180-inline-crypto-engine
- qcom,sc7280-inline-crypto-engine
+ - qcom,shikra-inline-crypto-engine
- qcom,sm8450-inline-crypto-engine
- qcom,sm8550-inline-crypto-engine
- qcom,sm8650-inline-crypto-engine
--
2.34.1
^ permalink raw reply related [flat|nested] 22+ messages in thread* Re: [PATCH v2 2/6] dt-bindings: crypto: qcom,inline-crypto-engine: Document Shikra ICE
2026-07-01 20:17 ` [PATCH v2 2/6] dt-bindings: crypto: qcom,inline-crypto-engine: Document Shikra ICE Kuldeep Singh
@ 2026-07-03 6:51 ` Krzysztof Kozlowski
2026-07-03 8:17 ` Bartosz Golaszewski
1 sibling, 0 replies; 22+ messages in thread
From: Krzysztof Kozlowski @ 2026-07-03 6:51 UTC (permalink / raw)
To: Kuldeep Singh
Cc: Herbert Xu, David S. Miller, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Bjorn Andersson, Harshal Dev, Vinod Koul,
Bartosz Golaszewski, Konrad Dybcio, Frank Li, Andy Gross,
Krzysztof Kozlowski, linux-arm-msm, linux-crypto, devicetree,
linux-kernel, dmaengine
On Thu, Jul 02, 2026 at 01:47:12AM +0530, Kuldeep Singh wrote:
> Document the Inline Crypto Engine (ICE) on the Qualcomm Shikra platform.
>
> Signed-off-by: Kuldeep Singh <kuldeep.singh@oss.qualcomm.com>
> ---
> Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml | 1 +
> 1 file changed, 1 insertion(+)
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PATCH v2 2/6] dt-bindings: crypto: qcom,inline-crypto-engine: Document Shikra ICE
2026-07-01 20:17 ` [PATCH v2 2/6] dt-bindings: crypto: qcom,inline-crypto-engine: Document Shikra ICE Kuldeep Singh
2026-07-03 6:51 ` Krzysztof Kozlowski
@ 2026-07-03 8:17 ` Bartosz Golaszewski
1 sibling, 0 replies; 22+ messages in thread
From: Bartosz Golaszewski @ 2026-07-03 8:17 UTC (permalink / raw)
To: Kuldeep Singh
Cc: Krzysztof Kozlowski, linux-arm-msm, linux-crypto, devicetree,
linux-kernel, dmaengine, Herbert Xu, David S. Miller, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Bjorn Andersson, Harshal Dev,
Vinod Koul, Bartosz Golaszewski, Konrad Dybcio, Frank Li,
Andy Gross
On Wed, 1 Jul 2026 22:17:12 +0200, Kuldeep Singh
<kuldeep.singh@oss.qualcomm.com> said:
> Document the Inline Crypto Engine (ICE) on the Qualcomm Shikra platform.
>
> Signed-off-by: Kuldeep Singh <kuldeep.singh@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 4f3689a24410..9e6d3af42971 100644
> --- a/Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml
> +++ b/Documentation/devicetree/bindings/crypto/qcom,inline-crypto-engine.yaml
> @@ -21,6 +21,7 @@ properties:
> - qcom,sa8775p-inline-crypto-engine
> - qcom,sc7180-inline-crypto-engine
> - qcom,sc7280-inline-crypto-engine
> + - qcom,shikra-inline-crypto-engine
> - qcom,sm8450-inline-crypto-engine
> - qcom,sm8550-inline-crypto-engine
> - qcom,sm8650-inline-crypto-engine
>
> --
> 2.34.1
>
>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
^ permalink raw reply [flat|nested] 22+ messages in thread
* [PATCH v2 3/6] dt-bindings: crypto: qcom,prng: Document Shikra TRNG
2026-07-01 20:17 [PATCH v2 0/6] Shikra: Add DT support for ICE, RNG and QCE Kuldeep Singh
2026-07-01 20:17 ` [PATCH v2 1/6] dt-bindings: crypto: qcom,inline-crypto-engine: Fix legacy/new SoC strictness split Kuldeep Singh
2026-07-01 20:17 ` [PATCH v2 2/6] dt-bindings: crypto: qcom,inline-crypto-engine: Document Shikra ICE Kuldeep Singh
@ 2026-07-01 20:17 ` Kuldeep Singh
2026-07-03 6:52 ` Krzysztof Kozlowski
2026-07-03 8:17 ` Bartosz Golaszewski
2026-07-01 20:17 ` [PATCH v2 4/6] dt-bindings: crypto: qcom-qce: Document the Shikra crypto engine Kuldeep Singh
` (2 subsequent siblings)
5 siblings, 2 replies; 22+ messages in thread
From: Kuldeep Singh @ 2026-07-01 20:17 UTC (permalink / raw)
To: Herbert Xu, David S. Miller, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Bjorn Andersson, Harshal Dev, Vinod Koul,
Bartosz Golaszewski, Konrad Dybcio, Frank Li, Andy Gross
Cc: Kuldeep Singh, Krzysztof Kozlowski, linux-arm-msm, linux-crypto,
devicetree, linux-kernel, dmaengine
Document shikra compatible for the True Random Number Generator.
Signed-off-by: Kuldeep Singh <kuldeep.singh@oss.qualcomm.com>
---
Documentation/devicetree/bindings/crypto/qcom,prng.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/crypto/qcom,prng.yaml b/Documentation/devicetree/bindings/crypto/qcom,prng.yaml
index dc270c8aedf3..5de52d7a745c 100644
--- a/Documentation/devicetree/bindings/crypto/qcom,prng.yaml
+++ b/Documentation/devicetree/bindings/crypto/qcom,prng.yaml
@@ -30,6 +30,7 @@ properties:
- qcom,sa8255p-trng
- qcom,sa8775p-trng
- qcom,sc7280-trng
+ - qcom,shikra-trng
- qcom,sm8450-trng
- qcom,sm8550-trng
- qcom,sm8650-trng
--
2.34.1
^ permalink raw reply related [flat|nested] 22+ messages in thread* Re: [PATCH v2 3/6] dt-bindings: crypto: qcom,prng: Document Shikra TRNG
2026-07-01 20:17 ` [PATCH v2 3/6] dt-bindings: crypto: qcom,prng: Document Shikra TRNG Kuldeep Singh
@ 2026-07-03 6:52 ` Krzysztof Kozlowski
2026-07-03 8:17 ` Bartosz Golaszewski
1 sibling, 0 replies; 22+ messages in thread
From: Krzysztof Kozlowski @ 2026-07-03 6:52 UTC (permalink / raw)
To: Kuldeep Singh
Cc: Herbert Xu, David S. Miller, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Bjorn Andersson, Harshal Dev, Vinod Koul,
Bartosz Golaszewski, Konrad Dybcio, Frank Li, Andy Gross,
Krzysztof Kozlowski, linux-arm-msm, linux-crypto, devicetree,
linux-kernel, dmaengine
On Thu, Jul 02, 2026 at 01:47:13AM +0530, Kuldeep Singh wrote:
> Document shikra compatible for the True Random Number Generator.
>
> Signed-off-by: Kuldeep Singh <kuldeep.singh@oss.qualcomm.com>
> ---
> Documentation/devicetree/bindings/crypto/qcom,prng.yaml | 1 +
> 1 file changed, 1 insertion(+)
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PATCH v2 3/6] dt-bindings: crypto: qcom,prng: Document Shikra TRNG
2026-07-01 20:17 ` [PATCH v2 3/6] dt-bindings: crypto: qcom,prng: Document Shikra TRNG Kuldeep Singh
2026-07-03 6:52 ` Krzysztof Kozlowski
@ 2026-07-03 8:17 ` Bartosz Golaszewski
1 sibling, 0 replies; 22+ messages in thread
From: Bartosz Golaszewski @ 2026-07-03 8:17 UTC (permalink / raw)
To: Kuldeep Singh
Cc: Herbert Xu, David S. Miller, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Bjorn Andersson, Harshal Dev, Vinod Koul,
Bartosz Golaszewski, Konrad Dybcio, Frank Li, Andy Gross,
Krzysztof Kozlowski, linux-arm-msm, linux-crypto, devicetree,
linux-kernel, dmaengine
On Wed, 1 Jul 2026 22:17:13 +0200, Kuldeep Singh
<kuldeep.singh@oss.qualcomm.com> said:
> Document shikra compatible for the True Random Number Generator.
>
> Signed-off-by: Kuldeep Singh <kuldeep.singh@oss.qualcomm.com>
> ---
> Documentation/devicetree/bindings/crypto/qcom,prng.yaml | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/Documentation/devicetree/bindings/crypto/qcom,prng.yaml b/Documentation/devicetree/bindings/crypto/qcom,prng.yaml
> index dc270c8aedf3..5de52d7a745c 100644
> --- a/Documentation/devicetree/bindings/crypto/qcom,prng.yaml
> +++ b/Documentation/devicetree/bindings/crypto/qcom,prng.yaml
> @@ -30,6 +30,7 @@ properties:
> - qcom,sa8255p-trng
> - qcom,sa8775p-trng
> - qcom,sc7280-trng
> + - qcom,shikra-trng
> - qcom,sm8450-trng
> - qcom,sm8550-trng
> - qcom,sm8650-trng
>
> --
> 2.34.1
>
>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
^ permalink raw reply [flat|nested] 22+ messages in thread
* [PATCH v2 4/6] dt-bindings: crypto: qcom-qce: Document the Shikra crypto engine
2026-07-01 20:17 [PATCH v2 0/6] Shikra: Add DT support for ICE, RNG and QCE Kuldeep Singh
` (2 preceding siblings ...)
2026-07-01 20:17 ` [PATCH v2 3/6] dt-bindings: crypto: qcom,prng: Document Shikra TRNG Kuldeep Singh
@ 2026-07-01 20:17 ` Kuldeep Singh
2026-07-03 6:52 ` Krzysztof Kozlowski
2026-07-03 8:16 ` Bartosz Golaszewski
2026-07-01 20:17 ` [PATCH v2 5/6] dt-bindings: dma: qcom,bam-dma: Increase iommus maxItems to seven Kuldeep Singh
2026-07-01 20:17 ` [PATCH v2 6/6] arm64: dts: qcom: shikra: Add ICE, TRNG and QCE nodes Kuldeep Singh
5 siblings, 2 replies; 22+ messages in thread
From: Kuldeep Singh @ 2026-07-01 20:17 UTC (permalink / raw)
To: Herbert Xu, David S. Miller, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Bjorn Andersson, Harshal Dev, Vinod Koul,
Bartosz Golaszewski, Konrad Dybcio, Frank Li, Andy Gross
Cc: Kuldeep Singh, Krzysztof Kozlowski, linux-arm-msm, linux-crypto,
devicetree, linux-kernel, dmaengine
Document the crypto engine on the Qualcomm Shikra platform.
Signed-off-by: Kuldeep Singh <kuldeep.singh@oss.qualcomm.com>
---
Documentation/devicetree/bindings/crypto/qcom-qce.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/crypto/qcom-qce.yaml b/Documentation/devicetree/bindings/crypto/qcom-qce.yaml
index 08febd66c22b..5a653757ee75 100644
--- a/Documentation/devicetree/bindings/crypto/qcom-qce.yaml
+++ b/Documentation/devicetree/bindings/crypto/qcom-qce.yaml
@@ -54,6 +54,7 @@ properties:
- qcom,qcs8300-qce
- qcom,sa8775p-qce
- qcom,sc7280-qce
+ - qcom,shikra-qce
- qcom,sm6350-qce
- qcom,sm8250-qce
- qcom,sm8350-qce
--
2.34.1
^ permalink raw reply related [flat|nested] 22+ messages in thread* Re: [PATCH v2 4/6] dt-bindings: crypto: qcom-qce: Document the Shikra crypto engine
2026-07-01 20:17 ` [PATCH v2 4/6] dt-bindings: crypto: qcom-qce: Document the Shikra crypto engine Kuldeep Singh
@ 2026-07-03 6:52 ` Krzysztof Kozlowski
2026-07-03 8:16 ` Bartosz Golaszewski
1 sibling, 0 replies; 22+ messages in thread
From: Krzysztof Kozlowski @ 2026-07-03 6:52 UTC (permalink / raw)
To: Kuldeep Singh
Cc: Herbert Xu, David S. Miller, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Bjorn Andersson, Harshal Dev, Vinod Koul,
Bartosz Golaszewski, Konrad Dybcio, Frank Li, Andy Gross,
Krzysztof Kozlowski, linux-arm-msm, linux-crypto, devicetree,
linux-kernel, dmaengine
On Thu, Jul 02, 2026 at 01:47:14AM +0530, Kuldeep Singh wrote:
> Document the crypto engine on the Qualcomm Shikra platform.
>
> Signed-off-by: Kuldeep Singh <kuldeep.singh@oss.qualcomm.com>
> ---
> Documentation/devicetree/bindings/crypto/qcom-qce.yaml | 1 +
> 1 file changed, 1 insertion(+)
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PATCH v2 4/6] dt-bindings: crypto: qcom-qce: Document the Shikra crypto engine
2026-07-01 20:17 ` [PATCH v2 4/6] dt-bindings: crypto: qcom-qce: Document the Shikra crypto engine Kuldeep Singh
2026-07-03 6:52 ` Krzysztof Kozlowski
@ 2026-07-03 8:16 ` Bartosz Golaszewski
1 sibling, 0 replies; 22+ messages in thread
From: Bartosz Golaszewski @ 2026-07-03 8:16 UTC (permalink / raw)
To: Kuldeep Singh
Cc: Herbert Xu, David S. Miller, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Bjorn Andersson, Harshal Dev, Vinod Koul,
Bartosz Golaszewski, Konrad Dybcio, Frank Li, Andy Gross,
Krzysztof Kozlowski, linux-arm-msm, linux-crypto, devicetree,
linux-kernel, dmaengine
On Wed, 1 Jul 2026 22:17:14 +0200, Kuldeep Singh
<kuldeep.singh@oss.qualcomm.com> said:
> Document the crypto engine on the Qualcomm Shikra platform.
>
> Signed-off-by: Kuldeep Singh <kuldeep.singh@oss.qualcomm.com>
> ---
> Documentation/devicetree/bindings/crypto/qcom-qce.yaml | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/Documentation/devicetree/bindings/crypto/qcom-qce.yaml b/Documentation/devicetree/bindings/crypto/qcom-qce.yaml
> index 08febd66c22b..5a653757ee75 100644
> --- a/Documentation/devicetree/bindings/crypto/qcom-qce.yaml
> +++ b/Documentation/devicetree/bindings/crypto/qcom-qce.yaml
> @@ -54,6 +54,7 @@ properties:
> - qcom,qcs8300-qce
> - qcom,sa8775p-qce
> - qcom,sc7280-qce
> + - qcom,shikra-qce
> - qcom,sm6350-qce
> - qcom,sm8250-qce
> - qcom,sm8350-qce
>
> --
> 2.34.1
>
>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
^ permalink raw reply [flat|nested] 22+ messages in thread
* [PATCH v2 5/6] dt-bindings: dma: qcom,bam-dma: Increase iommus maxItems to seven
2026-07-01 20:17 [PATCH v2 0/6] Shikra: Add DT support for ICE, RNG and QCE Kuldeep Singh
` (3 preceding siblings ...)
2026-07-01 20:17 ` [PATCH v2 4/6] dt-bindings: crypto: qcom-qce: Document the Shikra crypto engine Kuldeep Singh
@ 2026-07-01 20:17 ` Kuldeep Singh
2026-07-03 6:54 ` Krzysztof Kozlowski
2026-07-01 20:17 ` [PATCH v2 6/6] arm64: dts: qcom: shikra: Add ICE, TRNG and QCE nodes Kuldeep Singh
5 siblings, 1 reply; 22+ messages in thread
From: Kuldeep Singh @ 2026-07-01 20:17 UTC (permalink / raw)
To: Herbert Xu, David S. Miller, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Bjorn Andersson, Harshal Dev, Vinod Koul,
Bartosz Golaszewski, Konrad Dybcio, Frank Li, Andy Gross
Cc: Kuldeep Singh, Krzysztof Kozlowski, linux-arm-msm, linux-crypto,
devicetree, linux-kernel, dmaengine
Upcoming Shikra BAM DMA uses 7 IOMMU entries and not 6, so increase the
`iommus` maxItems constraint.
Fix below error:
dma-controller@1b04000 (qcom,bam-v1.7.4): iommus: [[25, 132, 17], [25,
134, 17], [25, 146, 0], [25, 148, 17], [25, 150, 17], [25, 152, 1], [25,
159, 0]] is too long
from schema $id: http://devicetree.org/schemas/dma/qcom,bam-dma.yaml
Signed-off-by: Kuldeep Singh <kuldeep.singh@oss.qualcomm.com>
---
Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml b/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml
index 0923fb189ada..e72adc172af1 100644
--- a/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml
+++ b/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml
@@ -48,7 +48,7 @@ properties:
iommus:
minItems: 1
- maxItems: 6
+ maxItems: 7
num-channels:
$ref: /schemas/types.yaml#/definitions/uint32
--
2.34.1
^ permalink raw reply related [flat|nested] 22+ messages in thread* Re: [PATCH v2 5/6] dt-bindings: dma: qcom,bam-dma: Increase iommus maxItems to seven
2026-07-01 20:17 ` [PATCH v2 5/6] dt-bindings: dma: qcom,bam-dma: Increase iommus maxItems to seven Kuldeep Singh
@ 2026-07-03 6:54 ` Krzysztof Kozlowski
2026-07-03 8:38 ` Kuldeep Singh
0 siblings, 1 reply; 22+ messages in thread
From: Krzysztof Kozlowski @ 2026-07-03 6:54 UTC (permalink / raw)
To: Kuldeep Singh
Cc: Herbert Xu, David S. Miller, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Bjorn Andersson, Harshal Dev, Vinod Koul,
Bartosz Golaszewski, Konrad Dybcio, Frank Li, Andy Gross,
Krzysztof Kozlowski, linux-arm-msm, linux-crypto, devicetree,
linux-kernel, dmaengine
On Thu, Jul 02, 2026 at 01:47:15AM +0530, Kuldeep Singh wrote:
> Upcoming Shikra BAM DMA uses 7 IOMMU entries and not 6, so increase the
> `iommus` maxItems constraint.
>
> Fix below error:
> dma-controller@1b04000 (qcom,bam-v1.7.4): iommus: [[25, 132, 17], [25,
There is no dma-controller@1b04000 in DTS. Please drop all the warnings
which do not exist.
You cannot add incorrect code, cause warnings and then based on that
claim that there is a warning to fix. It's like adding NULL ptr
exception in next patch and therefore now you add some additional checks
for that future NULL ptr exception.
Solution is: do not add NULL ptr exception...
> 134, 17], [25, 146, 0], [25, 148, 17], [25, 150, 17], [25, 152, 1], [25,
> 159, 0]] is too long
> from schema $id: http://devicetree.org/schemas/dma/qcom,bam-dma.yaml
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PATCH v2 5/6] dt-bindings: dma: qcom,bam-dma: Increase iommus maxItems to seven
2026-07-03 6:54 ` Krzysztof Kozlowski
@ 2026-07-03 8:38 ` Kuldeep Singh
2026-07-03 8:57 ` Konrad Dybcio
0 siblings, 1 reply; 22+ messages in thread
From: Kuldeep Singh @ 2026-07-03 8:38 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Herbert Xu, David S. Miller, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Bjorn Andersson, Harshal Dev, Vinod Koul,
Bartosz Golaszewski, Konrad Dybcio, Frank Li, Andy Gross,
Krzysztof Kozlowski, linux-arm-msm, linux-crypto, devicetree,
linux-kernel, dmaengine
On 03-07-2026 12:24, Krzysztof Kozlowski wrote:
> On Thu, Jul 02, 2026 at 01:47:15AM +0530, Kuldeep Singh wrote:
>> Upcoming Shikra BAM DMA uses 7 IOMMU entries and not 6, so increase the
>> `iommus` maxItems constraint.
>>
>> Fix below error:
>> dma-controller@1b04000 (qcom,bam-v1.7.4): iommus: [[25, 132, 17], [25,
>
> There is no dma-controller@1b04000 in DTS. Please drop all the warnings
> which do not exist.
Kindly check patch 6/6, it is introducing bam node with 7iommus which IP
describes and hence, updated bindings before to accustom this which also
helps in avoiding rob's dt-schema bot error.
The same way we add qcom,shikra* compatible before consuming in DT,
isn't this case also similar where bindings are updated as per the DT
changes?
> You cannot add incorrect code,
Shikra bam actually has 7 iommus and hence, bindings need an update.
--
Regards
Kuldeep
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PATCH v2 5/6] dt-bindings: dma: qcom,bam-dma: Increase iommus maxItems to seven
2026-07-03 8:38 ` Kuldeep Singh
@ 2026-07-03 8:57 ` Konrad Dybcio
2026-07-03 9:01 ` Kuldeep Singh
0 siblings, 1 reply; 22+ messages in thread
From: Konrad Dybcio @ 2026-07-03 8:57 UTC (permalink / raw)
To: Kuldeep Singh, Krzysztof Kozlowski
Cc: Herbert Xu, David S. Miller, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Bjorn Andersson, Harshal Dev, Vinod Koul,
Bartosz Golaszewski, Konrad Dybcio, Frank Li, Andy Gross,
Krzysztof Kozlowski, linux-arm-msm, linux-crypto, devicetree,
linux-kernel, dmaengine
On 7/3/26 10:38 AM, Kuldeep Singh wrote:
> On 03-07-2026 12:24, Krzysztof Kozlowski wrote:
>> On Thu, Jul 02, 2026 at 01:47:15AM +0530, Kuldeep Singh wrote:
>>> Upcoming Shikra BAM DMA uses 7 IOMMU entries and not 6, so increase the
>>> `iommus` maxItems constraint.
>>>
>>> Fix below error:
>>> dma-controller@1b04000 (qcom,bam-v1.7.4): iommus: [[25, 132, 17], [25,
>>
>> There is no dma-controller@1b04000 in DTS. Please drop all the warnings
>> which do not exist.
>
> Kindly check patch 6/6, it is introducing bam node with 7iommus which IP
> describes and hence, updated bindings before to accustom this which also
> helps in avoiding rob's dt-schema bot error.
Krzysztof is saying that the error doesn't exist in the tree (because
the offending DTS hunk is not merged), so you shouldn't claim this fixes
an error, rather that Shikra simply needs it
Konrad
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PATCH v2 5/6] dt-bindings: dma: qcom,bam-dma: Increase iommus maxItems to seven
2026-07-03 8:57 ` Konrad Dybcio
@ 2026-07-03 9:01 ` Kuldeep Singh
2026-07-04 8:37 ` Krzysztof Kozlowski
0 siblings, 1 reply; 22+ messages in thread
From: Kuldeep Singh @ 2026-07-03 9:01 UTC (permalink / raw)
To: Konrad Dybcio, Krzysztof Kozlowski
Cc: Herbert Xu, David S. Miller, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Bjorn Andersson, Harshal Dev, Vinod Koul,
Bartosz Golaszewski, Konrad Dybcio, Frank Li, Andy Gross,
Krzysztof Kozlowski, linux-arm-msm, linux-crypto, devicetree,
linux-kernel, dmaengine
On 03-07-2026 14:27, Konrad Dybcio wrote:
> On 7/3/26 10:38 AM, Kuldeep Singh wrote:
>> On 03-07-2026 12:24, Krzysztof Kozlowski wrote:
>>> On Thu, Jul 02, 2026 at 01:47:15AM +0530, Kuldeep Singh wrote:
>>>> Upcoming Shikra BAM DMA uses 7 IOMMU entries and not 6, so increase the
>>>> `iommus` maxItems constraint.
>>>>
>>>> Fix below error:
>>>> dma-controller@1b04000 (qcom,bam-v1.7.4): iommus: [[25, 132, 17], [25,
>>>
>>> There is no dma-controller@1b04000 in DTS. Please drop all the warnings
>>> which do not exist.
>>
>> Kindly check patch 6/6, it is introducing bam node with 7iommus which IP
>> describes and hence, updated bindings before to accustom this which also
>> helps in avoiding rob's dt-schema bot error.
>
> Krzysztof is saying that the error doesn't exist in the tree (because
> the offending DTS hunk is not merged), so you shouldn't claim this fixes
> an error, rather that Shikra simply needs it
In previous patchset, krzysztof ask was to add error in commit log and
hence updated that.
Maybe some misunderstanding!
I get the point, in that case I should simply say below and drop errors
in commit message.
"Upcoming Shikra BAM DMA uses 7 IOMMU entries and not 6, so increase the
`iommus` maxItems constraint."
Hope this is fine.
--
Regards
Kuldeep
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PATCH v2 5/6] dt-bindings: dma: qcom,bam-dma: Increase iommus maxItems to seven
2026-07-03 9:01 ` Kuldeep Singh
@ 2026-07-04 8:37 ` Krzysztof Kozlowski
2026-07-04 8:38 ` Krzysztof Kozlowski
0 siblings, 1 reply; 22+ messages in thread
From: Krzysztof Kozlowski @ 2026-07-04 8:37 UTC (permalink / raw)
To: Kuldeep Singh, Konrad Dybcio
Cc: Herbert Xu, David S. Miller, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Bjorn Andersson, Harshal Dev, Vinod Koul,
Bartosz Golaszewski, Konrad Dybcio, Frank Li, Andy Gross,
Krzysztof Kozlowski, linux-arm-msm, linux-crypto, devicetree,
linux-kernel, dmaengine
On 03/07/2026 11:01, Kuldeep Singh wrote:
>
>
> On 03-07-2026 14:27, Konrad Dybcio wrote:
>> On 7/3/26 10:38 AM, Kuldeep Singh wrote:
>>> On 03-07-2026 12:24, Krzysztof Kozlowski wrote:
>>>> On Thu, Jul 02, 2026 at 01:47:15AM +0530, Kuldeep Singh wrote:
>>>>> Upcoming Shikra BAM DMA uses 7 IOMMU entries and not 6, so increase the
>>>>> `iommus` maxItems constraint.
>>>>>
>>>>> Fix below error:
>>>>> dma-controller@1b04000 (qcom,bam-v1.7.4): iommus: [[25, 132, 17], [25,
>>>>
>>>> There is no dma-controller@1b04000 in DTS. Please drop all the warnings
>>>> which do not exist.
>>>
>>> Kindly check patch 6/6, it is introducing bam node with 7iommus which IP
>>> describes and hence, updated bindings before to accustom this which also
>>> helps in avoiding rob's dt-schema bot error.
>>
>> Krzysztof is saying that the error doesn't exist in the tree (because
>> the offending DTS hunk is not merged), so you shouldn't claim this fixes
>> an error, rather that Shikra simply needs it
>
> In previous patchset, krzysztof ask was to add error in commit log and
> hence updated that.
> Maybe some misunderstanding!
From that answer you should have understood there are no warnings to be
fixed, no warnings to be mentioned, so that commit msg should have been
fixed.
Solution is not to add fake warnings in such case, like you did here.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PATCH v2 5/6] dt-bindings: dma: qcom,bam-dma: Increase iommus maxItems to seven
2026-07-04 8:37 ` Krzysztof Kozlowski
@ 2026-07-04 8:38 ` Krzysztof Kozlowski
0 siblings, 0 replies; 22+ messages in thread
From: Krzysztof Kozlowski @ 2026-07-04 8:38 UTC (permalink / raw)
To: Kuldeep Singh, Konrad Dybcio
Cc: Herbert Xu, David S. Miller, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Bjorn Andersson, Harshal Dev, Vinod Koul,
Bartosz Golaszewski, Konrad Dybcio, Frank Li, Andy Gross,
Krzysztof Kozlowski, linux-arm-msm, linux-crypto, devicetree,
linux-kernel, dmaengine
On 04/07/2026 10:37, Krzysztof Kozlowski wrote:
> On 03/07/2026 11:01, Kuldeep Singh wrote:
>>
>>
>> On 03-07-2026 14:27, Konrad Dybcio wrote:
>>> On 7/3/26 10:38 AM, Kuldeep Singh wrote:
>>>> On 03-07-2026 12:24, Krzysztof Kozlowski wrote:
>>>>> On Thu, Jul 02, 2026 at 01:47:15AM +0530, Kuldeep Singh wrote:
>>>>>> Upcoming Shikra BAM DMA uses 7 IOMMU entries and not 6, so increase the
>>>>>> `iommus` maxItems constraint.
>>>>>>
>>>>>> Fix below error:
>>>>>> dma-controller@1b04000 (qcom,bam-v1.7.4): iommus: [[25, 132, 17], [25,
>>>>>
>>>>> There is no dma-controller@1b04000 in DTS. Please drop all the warnings
>>>>> which do not exist.
>>>>
>>>> Kindly check patch 6/6, it is introducing bam node with 7iommus which IP
>>>> describes and hence, updated bindings before to accustom this which also
>>>> helps in avoiding rob's dt-schema bot error.
>>>
>>> Krzysztof is saying that the error doesn't exist in the tree (because
>>> the offending DTS hunk is not merged), so you shouldn't claim this fixes
>>> an error, rather that Shikra simply needs it
>>
>> In previous patchset, krzysztof ask was to add error in commit log and
>> hence updated that.
>> Maybe some misunderstanding!
>
> From that answer you should have understood there are no warnings to be
> fixed, no warnings to be mentioned, so that commit msg should have been
> fixed.
>
> Solution is not to add fake warnings in such case, like you did here.
>
I even said that to you last time at v1!
"Again, there is no error. Revert this patch and check."
https://lore.kernel.org/all/c6415963-ef68-4422-a7fb-fd23b007de32@kernel.org/
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 22+ messages in thread
* [PATCH v2 6/6] arm64: dts: qcom: shikra: Add ICE, TRNG and QCE nodes
2026-07-01 20:17 [PATCH v2 0/6] Shikra: Add DT support for ICE, RNG and QCE Kuldeep Singh
` (4 preceding siblings ...)
2026-07-01 20:17 ` [PATCH v2 5/6] dt-bindings: dma: qcom,bam-dma: Increase iommus maxItems to seven Kuldeep Singh
@ 2026-07-01 20:17 ` Kuldeep Singh
2026-07-03 8:16 ` Bartosz Golaszewski
5 siblings, 1 reply; 22+ messages in thread
From: Kuldeep Singh @ 2026-07-01 20:17 UTC (permalink / raw)
To: Herbert Xu, David S. Miller, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Bjorn Andersson, Harshal Dev, Vinod Koul,
Bartosz Golaszewski, Konrad Dybcio, Frank Li, Andy Gross
Cc: Kuldeep Singh, Krzysztof Kozlowski, linux-arm-msm, linux-crypto,
devicetree, linux-kernel, dmaengine
Add device tree nodes describing the crypto hardware blocks present
on the Qualcomm Shikra platform:
- BAM DMA controller used by the Qualcomm crypto engine
- QCE (crypto) engine with DMA support
- TRNG hardware random number generator
- Inline crypto engine (ICE)
Also connect the SDHC controller to ICE via "qcom,ice" property to
support inline encryption.
On Shikra, different BAM pipe pairs (for example 0x84/0x94 and
0x86/0x96) may still resolve to the same resulting SID due SMMU-side
optimization. They are still distinct pipe pairs and therefore require
separate DT IOMMU entries.
Signed-off-by: Kuldeep Singh <kuldeep.singh@oss.qualcomm.com>
---
arch/arm64/boot/dts/qcom/shikra.dtsi | 52 ++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/shikra.dtsi b/arch/arm64/boot/dts/qcom/shikra.dtsi
index 4e5bc9e17c8e..a95e2140416c 100644
--- a/arch/arm64/boot/dts/qcom/shikra.dtsi
+++ b/arch/arm64/boot/dts/qcom/shikra.dtsi
@@ -482,6 +482,41 @@ config_noc: interconnect@1900000 {
#interconnect-cells = <2>;
};
+ cryptobam: dma-controller@1b04000 {
+ compatible = "qcom,bam-v1.7.4", "qcom,bam-v1.7.0";
+ reg = <0x0 0x01b04000 0x0 0x24000>;
+ interrupts = <GIC_SPI 247 IRQ_TYPE_LEVEL_HIGH 0>;
+ #dma-cells = <1>;
+ iommus = <&apps_smmu 0x84 0x0011>,
+ <&apps_smmu 0x86 0x0011>,
+ <&apps_smmu 0x92 0x0>,
+ <&apps_smmu 0x94 0x0011>,
+ <&apps_smmu 0x96 0x0011>,
+ <&apps_smmu 0x98 0x0001>,
+ <&apps_smmu 0x9f 0x0>;
+ qcom,ee = <0>;
+ qcom,controlled-remotely;
+ num-channels = <16>;
+ qcom,num-ees = <4>;
+ };
+
+ crypto: crypto@1b3a000 {
+ compatible = "qcom,shikra-qce", "qcom,sm8150-qce", "qcom,qce";
+ reg = <0x0 0x01b3a000 0x0 0x6000>;
+ dmas = <&cryptobam 4>, <&cryptobam 5>;
+ dma-names = "rx", "tx";
+ iommus = <&apps_smmu 0x84 0x0011>,
+ <&apps_smmu 0x86 0x0011>,
+ <&apps_smmu 0x92 0x0>,
+ <&apps_smmu 0x94 0x0011>,
+ <&apps_smmu 0x96 0x0011>,
+ <&apps_smmu 0x98 0x0001>,
+ <&apps_smmu 0x9f 0x0>;
+ interconnects = <&system_noc MASTER_CRYPTO_CORE0 0
+ &mc_virt SLAVE_EBI_CH0 0>;
+ interconnect-names = "memory";
+ };
+
qfprom: efuse@1b44000 {
compatible = "qcom,shikra-qfprom", "qcom,qfprom";
reg = <0x0 0x01b44000 0x0 0x3000>;
@@ -521,6 +556,11 @@ spmi_bus: spmi@1c40000 {
qcom,ee = <0>;
};
+ rng: rng@4454000 {
+ compatible = "qcom,shikra-trng", "qcom,trng";
+ reg = <0x0 0x04454000 0x0 0x1000>;
+ };
+
rpm_msg_ram: sram@45f0000 {
compatible = "qcom,rpm-msg-ram", "mmio-sram";
reg = <0x0 0x045f0000 0x0 0x7000>;
@@ -582,6 +622,7 @@ &mc_virt SLAVE_EBI_CH0 RPM_ALWAYS_TAG>,
mmc-hs400-enhanced-strobe;
resets = <&gcc GCC_SDCC1_BCR>;
+ qcom,ice = <&sdhc_ice>;
status = "disabled";
@@ -604,6 +645,17 @@ opp-384000000 {
};
};
+ sdhc_ice: crypto@4748000 {
+ compatible = "qcom,shikra-inline-crypto-engine",
+ "qcom,inline-crypto-engine";
+ reg = <0x0 0x04748000 0x0 0x18000>;
+ clocks = <&gcc GCC_SDCC1_ICE_CORE_CLK>,
+ <&gcc GCC_SDCC1_AHB_CLK>;
+ clock-names = "core",
+ "iface";
+ power-domains = <&rpmpd RPMHPD_CX>;
+ };
+
qupv3_0: geniqup@4ac0000 {
compatible = "qcom,geni-se-qup";
reg = <0x0 0x04ac0000 0x0 0x2000>;
--
2.34.1
^ permalink raw reply related [flat|nested] 22+ messages in thread* Re: [PATCH v2 6/6] arm64: dts: qcom: shikra: Add ICE, TRNG and QCE nodes
2026-07-01 20:17 ` [PATCH v2 6/6] arm64: dts: qcom: shikra: Add ICE, TRNG and QCE nodes Kuldeep Singh
@ 2026-07-03 8:16 ` Bartosz Golaszewski
0 siblings, 0 replies; 22+ messages in thread
From: Bartosz Golaszewski @ 2026-07-03 8:16 UTC (permalink / raw)
To: Kuldeep Singh
Cc: Krzysztof Kozlowski, linux-arm-msm, linux-crypto, devicetree,
linux-kernel, dmaengine, Herbert Xu, David S. Miller, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Bjorn Andersson, Harshal Dev,
Vinod Koul, Bartosz Golaszewski, Konrad Dybcio, Frank Li,
Andy Gross
On Wed, 1 Jul 2026 22:17:16 +0200, Kuldeep Singh
<kuldeep.singh@oss.qualcomm.com> said:
> Add device tree nodes describing the crypto hardware blocks present
> on the Qualcomm Shikra platform:
>
> - BAM DMA controller used by the Qualcomm crypto engine
> - QCE (crypto) engine with DMA support
> - TRNG hardware random number generator
> - Inline crypto engine (ICE)
>
> Also connect the SDHC controller to ICE via "qcom,ice" property to
> support inline encryption.
>
> On Shikra, different BAM pipe pairs (for example 0x84/0x94 and
> 0x86/0x96) may still resolve to the same resulting SID due SMMU-side
> optimization. They are still distinct pipe pairs and therefore require
> separate DT IOMMU entries.
>
> Signed-off-by: Kuldeep Singh <kuldeep.singh@oss.qualcomm.com>
> ---
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
^ permalink raw reply [flat|nested] 22+ messages in thread