* [PATCH 0/4] crypto: qcom-qce: add support for SM8550
@ 2022-11-16 10:23 Neil Armstrong
2022-11-16 10:23 ` [PATCH 1/4] dt-bindings: dma: qcom,bam-dma: Add 'interconnects' and 'interconnect-names' Neil Armstrong
` (3 more replies)
0 siblings, 4 replies; 10+ messages in thread
From: Neil Armstrong @ 2022-11-16 10:23 UTC (permalink / raw)
To: Vinod Koul, Andy Gross, David S. Miller, Bjorn Andersson,
Thara Gopinath, Rob Herring, Krzysztof Kozlowski, Herbert Xu,
Bhupesh Sharma, Konrad Dybcio
Cc: linux-crypto, linux-kernel, devicetree, dmaengine,
Neil Armstrong, Abel Vesa, linux-arm-msm
This adds the necessary bindings and driver changes to enable
the Qualcomm Crypto engine on the SM8550 SoC.
Dependencies:
- https://lore.kernel.org/all/20220920114051.1116441-1-bhupesh.sharma@linaro.org/
--
To: Andy Gross <agross@kernel.org>
To: Bjorn Andersson <andersson@kernel.org>
To: Konrad Dybcio <konrad.dybcio@somainline.org>
To: Vinod Koul <vkoul@kernel.org>
To: Rob Herring <robh+dt@kernel.org>
To: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
To: Herbert Xu <herbert@gondor.apana.org.au>
To: "David S. Miller" <davem@davemloft.net>
To: Bhupesh Sharma <bhupesh.sharma@linaro.org>
To: Thara Gopinath <thara.gopinath@gmail.com>
Cc: linux-arm-msm@vger.kernel.org
Cc: dmaengine@vger.kernel.org
Cc: devicetree@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: linux-crypto@vger.kernel.org
Cc: Abel Vesa <abel.vesa@linaro.org>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
---
Abel Vesa (1):
dt-bindings: dma: qcom,bam-dma: Add 'interconnects' and 'interconnect-names'
Neil Armstrong (3):
dt-bindings: qcom-qce: document clocks and clock-names as optional
dt-bindings: qcom-qce: document sm8550 compatible
crypto: qce: core: Add new compatibles for SM8550
Documentation/devicetree/bindings/crypto/qcom-qce.yaml | 3 +--
Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml | 8 ++++++++
drivers/crypto/qce/core.c | 1 +
3 files changed, 10 insertions(+), 2 deletions(-)
---
base-commit: 8931ecbe1f2017471608e262dd2914ce376155a4
change-id: 20221114-narmstrong-sm8550-upstream-qce-ed3135413002
Best regards,
--
Neil Armstrong <neil.armstrong@linaro.org>
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 1/4] dt-bindings: dma: qcom,bam-dma: Add 'interconnects' and 'interconnect-names'
2022-11-16 10:23 [PATCH 0/4] crypto: qcom-qce: add support for SM8550 Neil Armstrong
@ 2022-11-16 10:23 ` Neil Armstrong
2022-11-16 11:49 ` Krzysztof Kozlowski
2022-11-16 10:23 ` [PATCH 2/4] dt-bindings: qcom-qce: document clocks and clock-names as optional Neil Armstrong
` (2 subsequent siblings)
3 siblings, 1 reply; 10+ messages in thread
From: Neil Armstrong @ 2022-11-16 10:23 UTC (permalink / raw)
To: Vinod Koul, Andy Gross, David S. Miller, Bjorn Andersson,
Thara Gopinath, Rob Herring, Krzysztof Kozlowski, Herbert Xu,
Bhupesh Sharma, Konrad Dybcio
Cc: linux-crypto, linux-kernel, devicetree, dmaengine,
Neil Armstrong, Abel Vesa, linux-arm-msm
From: Abel Vesa <abel.vesa@linaro.org>
Add 'interconnects' and 'interconnect-names' as optional properties
to the device-tree binding documentation for BAM DMA IP.
These properties describe the interconnect path between BAM and main
memory and the interconnect type respectively.
Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
---
Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml b/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml
index 003098caf709..ce8bbb2de4c5 100644
--- a/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml
+++ b/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml
@@ -36,6 +36,14 @@ properties:
interrupts:
maxItems: 1
+ interconnects:
+ maxItems: 1
+ description:
+ Interconnect path between bam and main memory.
+
+ interconnect-names:
+ const: memory
+
iommus:
minItems: 1
maxItems: 4
--
b4 0.10.1
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 2/4] dt-bindings: qcom-qce: document clocks and clock-names as optional
2022-11-16 10:23 [PATCH 0/4] crypto: qcom-qce: add support for SM8550 Neil Armstrong
2022-11-16 10:23 ` [PATCH 1/4] dt-bindings: dma: qcom,bam-dma: Add 'interconnects' and 'interconnect-names' Neil Armstrong
@ 2022-11-16 10:23 ` Neil Armstrong
2022-11-16 11:52 ` Krzysztof Kozlowski
2022-11-16 10:23 ` [PATCH 3/4] dt-bindings: qcom-qce: document sm8550 compatible Neil Armstrong
2022-11-16 10:23 ` [PATCH 4/4] crypto: qce: core: Add new compatibles for SM8550 Neil Armstrong
3 siblings, 1 reply; 10+ messages in thread
From: Neil Armstrong @ 2022-11-16 10:23 UTC (permalink / raw)
To: Vinod Koul, Andy Gross, David S. Miller, Bjorn Andersson,
Thara Gopinath, Rob Herring, Krzysztof Kozlowski, Herbert Xu,
Bhupesh Sharma, Konrad Dybcio
Cc: linux-crypto, linux-kernel, devicetree, dmaengine,
Neil Armstrong, Abel Vesa, linux-arm-msm
On certain Snapdragon processors, the crypto engine clocks are enabled by
default by security firmware.
Drop clocks and clock-names from the required properties list.
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
---
Documentation/devicetree/bindings/crypto/qcom-qce.yaml | 2 --
1 file changed, 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/crypto/qcom-qce.yaml b/Documentation/devicetree/bindings/crypto/qcom-qce.yaml
index aa2f676f5382..f25089bf9a2b 100644
--- a/Documentation/devicetree/bindings/crypto/qcom-qce.yaml
+++ b/Documentation/devicetree/bindings/crypto/qcom-qce.yaml
@@ -67,8 +67,6 @@ properties:
required:
- compatible
- reg
- - clocks
- - clock-names
- dmas
- dma-names
--
b4 0.10.1
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 3/4] dt-bindings: qcom-qce: document sm8550 compatible
2022-11-16 10:23 [PATCH 0/4] crypto: qcom-qce: add support for SM8550 Neil Armstrong
2022-11-16 10:23 ` [PATCH 1/4] dt-bindings: dma: qcom,bam-dma: Add 'interconnects' and 'interconnect-names' Neil Armstrong
2022-11-16 10:23 ` [PATCH 2/4] dt-bindings: qcom-qce: document clocks and clock-names as optional Neil Armstrong
@ 2022-11-16 10:23 ` Neil Armstrong
2022-11-16 11:54 ` Krzysztof Kozlowski
2022-11-16 10:23 ` [PATCH 4/4] crypto: qce: core: Add new compatibles for SM8550 Neil Armstrong
3 siblings, 1 reply; 10+ messages in thread
From: Neil Armstrong @ 2022-11-16 10:23 UTC (permalink / raw)
To: Vinod Koul, Andy Gross, David S. Miller, Bjorn Andersson,
Thara Gopinath, Rob Herring, Krzysztof Kozlowski, Herbert Xu,
Bhupesh Sharma, Konrad Dybcio
Cc: linux-crypto, linux-kernel, devicetree, dmaengine,
Neil Armstrong, Abel Vesa, linux-arm-msm
This documents the compatible used for QCE on SM8550.
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
---
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 f25089bf9a2b..544ff67202a1 100644
--- a/Documentation/devicetree/bindings/crypto/qcom-qce.yaml
+++ b/Documentation/devicetree/bindings/crypto/qcom-qce.yaml
@@ -24,6 +24,7 @@ properties:
- qcom,sm8150-qce
- qcom,sm8250-qce
- qcom,sm8350-qce
+ - qcom,sm8550-qce
reg:
maxItems: 1
--
b4 0.10.1
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 4/4] crypto: qce: core: Add new compatibles for SM8550
2022-11-16 10:23 [PATCH 0/4] crypto: qcom-qce: add support for SM8550 Neil Armstrong
` (2 preceding siblings ...)
2022-11-16 10:23 ` [PATCH 3/4] dt-bindings: qcom-qce: document sm8550 compatible Neil Armstrong
@ 2022-11-16 10:23 ` Neil Armstrong
2022-11-16 11:55 ` Krzysztof Kozlowski
3 siblings, 1 reply; 10+ messages in thread
From: Neil Armstrong @ 2022-11-16 10:23 UTC (permalink / raw)
To: Vinod Koul, Andy Gross, David S. Miller, Bjorn Andersson,
Thara Gopinath, Rob Herring, Krzysztof Kozlowski, Herbert Xu,
Bhupesh Sharma, Konrad Dybcio
Cc: linux-crypto, linux-kernel, devicetree, dmaengine,
Neil Armstrong, Abel Vesa, linux-arm-msm
Add the compatible for the Qualcomm Crypto core found in the SM8550 SoC.
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
---
drivers/crypto/qce/core.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/crypto/qce/core.c b/drivers/crypto/qce/core.c
index ef774f6edb5a..fae578ba3e30 100644
--- a/drivers/crypto/qce/core.c
+++ b/drivers/crypto/qce/core.c
@@ -302,6 +302,7 @@ static const struct of_device_id qce_crypto_of_match[] = {
{ .compatible = "qcom,sdm845-qce", },
{ .compatible = "qcom,sm8150-qce", },
{ .compatible = "qcom,sm8250-qce", },
+ { .compatible = "qcom,sm8550-qce", },
{}
};
MODULE_DEVICE_TABLE(of, qce_crypto_of_match);
--
b4 0.10.1
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 1/4] dt-bindings: dma: qcom,bam-dma: Add 'interconnects' and 'interconnect-names'
2022-11-16 10:23 ` [PATCH 1/4] dt-bindings: dma: qcom,bam-dma: Add 'interconnects' and 'interconnect-names' Neil Armstrong
@ 2022-11-16 11:49 ` Krzysztof Kozlowski
0 siblings, 0 replies; 10+ messages in thread
From: Krzysztof Kozlowski @ 2022-11-16 11:49 UTC (permalink / raw)
To: Neil Armstrong, Vinod Koul, Andy Gross, David S. Miller,
Bjorn Andersson, Thara Gopinath, Rob Herring,
Krzysztof Kozlowski, Herbert Xu, Bhupesh Sharma, Konrad Dybcio
Cc: linux-crypto, linux-kernel, devicetree, dmaengine, Abel Vesa,
linux-arm-msm
On 16/11/2022 11:23, Neil Armstrong wrote:
> From: Abel Vesa <abel.vesa@linaro.org>
Subject is precious, so after prefixes (these are good) just "Add
interconnects".
>
> Add 'interconnects' and 'interconnect-names' as optional properties
> to the device-tree binding documentation for BAM DMA IP.
>
> These properties describe the interconnect path between BAM and main
> memory and the interconnect type respectively.
Where is the type described? What is an "interconnect type"?
>
> Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
> Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
> ---
> Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 2/4] dt-bindings: qcom-qce: document clocks and clock-names as optional
2022-11-16 10:23 ` [PATCH 2/4] dt-bindings: qcom-qce: document clocks and clock-names as optional Neil Armstrong
@ 2022-11-16 11:52 ` Krzysztof Kozlowski
0 siblings, 0 replies; 10+ messages in thread
From: Krzysztof Kozlowski @ 2022-11-16 11:52 UTC (permalink / raw)
To: Neil Armstrong, Vinod Koul, Andy Gross, David S. Miller,
Bjorn Andersson, Thara Gopinath, Rob Herring,
Krzysztof Kozlowski, Herbert Xu, Bhupesh Sharma, Konrad Dybcio
Cc: linux-crypto, linux-kernel, devicetree, dmaengine, Abel Vesa,
linux-arm-msm
On 16/11/2022 11:23, Neil Armstrong wrote:
> On certain Snapdragon processors, the crypto engine clocks are enabled by
If by "enabled" you mean "controlled", then looks fine. Otherwise
without exclusive control by firmware, clock enabled e.g. by firmware or
bootloader might still be disabled by SoC. Which case is here?
Probably we should have dedicated compatibles for that.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 3/4] dt-bindings: qcom-qce: document sm8550 compatible
2022-11-16 10:23 ` [PATCH 3/4] dt-bindings: qcom-qce: document sm8550 compatible Neil Armstrong
@ 2022-11-16 11:54 ` Krzysztof Kozlowski
2022-11-17 9:42 ` Neil Armstrong
0 siblings, 1 reply; 10+ messages in thread
From: Krzysztof Kozlowski @ 2022-11-16 11:54 UTC (permalink / raw)
To: Neil Armstrong, Vinod Koul, Andy Gross, David S. Miller,
Bjorn Andersson, Thara Gopinath, Rob Herring,
Krzysztof Kozlowski, Herbert Xu, Bhupesh Sharma, Konrad Dybcio
Cc: linux-crypto, linux-kernel, devicetree, dmaengine, Abel Vesa,
linux-arm-msm
On 16/11/2022 11:23, Neil Armstrong wrote:
> This documents the compatible used for QCE on SM8550.
>
So we have a dedicated compatible... This should be squashed with
previous one, added allOf:if:then making clocks optional only for this
platform (assuming that my understanding of "enable=exclusive control"
is correct).
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 4/4] crypto: qce: core: Add new compatibles for SM8550
2022-11-16 10:23 ` [PATCH 4/4] crypto: qce: core: Add new compatibles for SM8550 Neil Armstrong
@ 2022-11-16 11:55 ` Krzysztof Kozlowski
0 siblings, 0 replies; 10+ messages in thread
From: Krzysztof Kozlowski @ 2022-11-16 11:55 UTC (permalink / raw)
To: Neil Armstrong, Vinod Koul, Andy Gross, David S. Miller,
Bjorn Andersson, Thara Gopinath, Rob Herring,
Krzysztof Kozlowski, Herbert Xu, Bhupesh Sharma, Konrad Dybcio
Cc: linux-crypto, linux-kernel, devicetree, dmaengine, Abel Vesa,
linux-arm-msm
On 16/11/2022 11:23, Neil Armstrong wrote:
> Add the compatible for the Qualcomm Crypto core found in the SM8550 SoC.
>
> Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
> ---
> drivers/crypto/qce/core.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/crypto/qce/core.c b/drivers/crypto/qce/core.c
> index ef774f6edb5a..fae578ba3e30 100644
> --- a/drivers/crypto/qce/core.c
> +++ b/drivers/crypto/qce/core.c
> @@ -302,6 +302,7 @@ static const struct of_device_id qce_crypto_of_match[] = {
> { .compatible = "qcom,sdm845-qce", },
> { .compatible = "qcom,sm8150-qce", },
> { .compatible = "qcom,sm8250-qce", },
> + { .compatible = "qcom,sm8550-qce", },
The same problem as in your dependency. No need for this. Use fallbacks.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 3/4] dt-bindings: qcom-qce: document sm8550 compatible
2022-11-16 11:54 ` Krzysztof Kozlowski
@ 2022-11-17 9:42 ` Neil Armstrong
0 siblings, 0 replies; 10+ messages in thread
From: Neil Armstrong @ 2022-11-17 9:42 UTC (permalink / raw)
To: Krzysztof Kozlowski, Vinod Koul, Andy Gross, David S. Miller,
Bjorn Andersson, Thara Gopinath, Rob Herring,
Krzysztof Kozlowski, Herbert Xu, Bhupesh Sharma, Konrad Dybcio
Cc: linux-crypto, linux-kernel, devicetree, dmaengine, Abel Vesa,
linux-arm-msm
On 16/11/2022 12:54, Krzysztof Kozlowski wrote:
> On 16/11/2022 11:23, Neil Armstrong wrote:
>> This documents the compatible used for QCE on SM8550.
>>
>
> So we have a dedicated compatible... This should be squashed with
> previous one, added allOf:if:then making clocks optional only for this
> platform (assuming that my understanding of "enable=exclusive control"
> is correct).
I'll wait until the dependent patchset is refreshed and a fallback plan decided.
Neil
>
> Best regards,
> Krzysztof
>
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2022-11-17 9:43 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-16 10:23 [PATCH 0/4] crypto: qcom-qce: add support for SM8550 Neil Armstrong
2022-11-16 10:23 ` [PATCH 1/4] dt-bindings: dma: qcom,bam-dma: Add 'interconnects' and 'interconnect-names' Neil Armstrong
2022-11-16 11:49 ` Krzysztof Kozlowski
2022-11-16 10:23 ` [PATCH 2/4] dt-bindings: qcom-qce: document clocks and clock-names as optional Neil Armstrong
2022-11-16 11:52 ` Krzysztof Kozlowski
2022-11-16 10:23 ` [PATCH 3/4] dt-bindings: qcom-qce: document sm8550 compatible Neil Armstrong
2022-11-16 11:54 ` Krzysztof Kozlowski
2022-11-17 9:42 ` Neil Armstrong
2022-11-16 10:23 ` [PATCH 4/4] crypto: qce: core: Add new compatibles for SM8550 Neil Armstrong
2022-11-16 11:55 ` Krzysztof Kozlowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®