mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH V2 0/2] Add QCrypto support for SC7280
@ 2023-12-12 13:32 Om Prakash Singh
  2023-12-12 13:32 ` [PATCH V2 1/2] dt-bindings: crypto: qcom-qce: document the SC7280 crypto engine Om Prakash Singh
  2023-12-12 13:32 ` [PATCH V2 2/2] arm64: dts: qcom: sc7280: add QCrypto nodes Om Prakash Singh
  0 siblings, 2 replies; 7+ messages in thread
From: Om Prakash Singh @ 2023-12-12 13:32 UTC (permalink / raw)
  To: quic_omprsing
  Cc: neil.armstrong, konrad.dybcio, agross, andersson, conor+dt,
	davem, devicetree, herbert, krzysztof.kozlowski+dt,
	linux-arm-msm, linux-crypto, linux-kernel, marijn.suijten,
	robh+dt, vkoul

Document SC7280 support for QCrypto driver and add QCE and Crypto BAM DMA nodes

Om Prakash Singh (2):
  dt-bindings: crypto: qcom-qce: document the SC7280 crypto engine
  arm64: dts: qcom: sc7280: add QCrypto nodes

 .../devicetree/bindings/crypto/qcom-qce.yaml  |  1 +
 arch/arm64/boot/dts/qcom/sc7280.dtsi          | 22 +++++++++++++++++++
 2 files changed, 23 insertions(+)

-- 
2.25.1


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

* [PATCH V2 1/2] dt-bindings: crypto: qcom-qce: document the SC7280 crypto engine
  2023-12-12 13:32 [PATCH V2 0/2] Add QCrypto support for SC7280 Om Prakash Singh
@ 2023-12-12 13:32 ` Om Prakash Singh
  2023-12-12 13:32 ` [PATCH V2 2/2] arm64: dts: qcom: sc7280: add QCrypto nodes Om Prakash Singh
  1 sibling, 0 replies; 7+ messages in thread
From: Om Prakash Singh @ 2023-12-12 13:32 UTC (permalink / raw)
  To: quic_omprsing
  Cc: neil.armstrong, konrad.dybcio, agross, andersson, conor+dt,
	davem, devicetree, herbert, krzysztof.kozlowski+dt,
	linux-arm-msm, linux-crypto, linux-kernel, marijn.suijten,
	robh+dt, vkoul, Krzysztof Kozlowski

Document the crypto engine on the SM7280 Platform.

Signed-off-by: Om Prakash Singh <quic_omprsing@quicinc.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---

Changes in V2:
	No change in this patch

 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 eeb8a956d7cb..1797699cf454 100644
--- a/Documentation/devicetree/bindings/crypto/qcom-qce.yaml
+++ b/Documentation/devicetree/bindings/crypto/qcom-qce.yaml
@@ -44,6 +44,7 @@ properties:
 
       - items:
           - enum:
+              - qcom,sc7280-qce
               - qcom,sm8250-qce
               - qcom,sm8350-qce
               - qcom,sm8450-qce
-- 
2.25.1


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

* [PATCH V2 2/2] arm64: dts: qcom: sc7280: add QCrypto nodes
  2023-12-12 13:32 [PATCH V2 0/2] Add QCrypto support for SC7280 Om Prakash Singh
  2023-12-12 13:32 ` [PATCH V2 1/2] dt-bindings: crypto: qcom-qce: document the SC7280 crypto engine Om Prakash Singh
@ 2023-12-12 13:32 ` Om Prakash Singh
  2023-12-12 15:02   ` Krzysztof Kozlowski
  1 sibling, 1 reply; 7+ messages in thread
From: Om Prakash Singh @ 2023-12-12 13:32 UTC (permalink / raw)
  To: quic_omprsing
  Cc: neil.armstrong, konrad.dybcio, agross, andersson, conor+dt,
	davem, devicetree, herbert, krzysztof.kozlowski+dt,
	linux-arm-msm, linux-crypto, linux-kernel, marijn.suijten,
	robh+dt, vkoul

Add the QCE and Crypto BAM DMA nodes.

Signed-off-by: Om Prakash Singh <quic_omprsing@quicinc.com>
---

Changes in V2:
  - Update DT node sequence as per register ascending order
  - Fix DT node properties as per convention

 arch/arm64/boot/dts/qcom/sc7280.dtsi | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi
index 66f1eb83cca7..7b705df21f4e 100644
--- a/arch/arm64/boot/dts/qcom/sc7280.dtsi
+++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi
@@ -2272,6 +2272,28 @@ ipa: ipa@1e40000 {
 			status = "disabled";
 		};
 
+		cryptobam: dma-controller@1dc4000 {
+			compatible = "qcom,bam-v1.7.4", "qcom,bam-v1.7.0";
+			reg = <0x0 0x01dc4000 0x0 0x28000>;
+			interrupts = <GIC_SPI 272 IRQ_TYPE_LEVEL_HIGH>;
+			#dma-cells = <1>;
+			qcom,ee = <0>;
+			qcom,controlled-remotely;
+			iommus = <&apps_smmu 0x4e4 0x0011>,
+				 <&apps_smmu 0x4e6 0x0011>;
+		};
+
+		crypto: crypto@1dfa000 {
+			compatible = "qcom,sc7280-qce", "qcom,sm8150-qce", "qcom,qce";
+			reg = <0x0 0x01dfa000 0x0 0x6000>;
+			dmas = <&cryptobam 4>, <&cryptobam 5>;
+			dma-names = "rx", "tx";
+			iommus = <&apps_smmu 0x4e4 0x0011>,
+				 <&apps_smmu 0x4e4 0x0011>;
+			interconnects = <&aggre2_noc MASTER_CRYPTO 0 &mc_virt SLAVE_EBI1 0>;
+			interconnect-names = "memory";
+		};
+
 		tcsr_mutex: hwlock@1f40000 {
 			compatible = "qcom,tcsr-mutex";
 			reg = <0 0x01f40000 0 0x20000>;
-- 
2.25.1


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

* Re: [PATCH V2 2/2] arm64: dts: qcom: sc7280: add QCrypto nodes
  2023-12-12 13:32 ` [PATCH V2 2/2] arm64: dts: qcom: sc7280: add QCrypto nodes Om Prakash Singh
@ 2023-12-12 15:02   ` Krzysztof Kozlowski
  2023-12-14  5:41     ` Om Prakash Singh
  0 siblings, 1 reply; 7+ messages in thread
From: Krzysztof Kozlowski @ 2023-12-12 15:02 UTC (permalink / raw)
  To: Om Prakash Singh
  Cc: neil.armstrong, konrad.dybcio, agross, andersson, conor+dt,
	davem, devicetree, herbert, krzysztof.kozlowski+dt,
	linux-arm-msm, linux-crypto, linux-kernel, marijn.suijten,
	robh+dt, vkoul

On 12/12/2023 14:32, Om Prakash Singh wrote:
> Add the QCE and Crypto BAM DMA nodes.
> 
> Signed-off-by: Om Prakash Singh <quic_omprsing@quicinc.com>
> ---
> 
> Changes in V2:
>   - Update DT node sequence as per register ascending order

Hm, I don't see it...

>   - Fix DT node properties as per convention
> 
>  arch/arm64/boot/dts/qcom/sc7280.dtsi | 22 ++++++++++++++++++++++
>  1 file changed, 22 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi
> index 66f1eb83cca7..7b705df21f4e 100644
> --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi
> @@ -2272,6 +2272,28 @@ ipa: ipa@1e40000 {
>  			status = "disabled";
>  		};
>  
> +		cryptobam: dma-controller@1dc4000 {

It still looks like not correctly ordered by unit address against other
nodes in the file.




Best regards,
Krzysztof


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

* Re: [PATCH V2 2/2] arm64: dts: qcom: sc7280: add QCrypto nodes
  2023-12-12 15:02   ` Krzysztof Kozlowski
@ 2023-12-14  5:41     ` Om Prakash Singh
  2023-12-14  7:22       ` Krzysztof Kozlowski
  0 siblings, 1 reply; 7+ messages in thread
From: Om Prakash Singh @ 2023-12-14  5:41 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: neil.armstrong, konrad.dybcio, agross, andersson, conor+dt,
	davem, devicetree, herbert, krzysztof.kozlowski+dt,
	linux-arm-msm, linux-crypto, linux-kernel, marijn.suijten,
	robh+dt, vkoul



On 12/12/2023 8:32 PM, Krzysztof Kozlowski wrote:
> On 12/12/2023 14:32, Om Prakash Singh wrote:
>> Add the QCE and Crypto BAM DMA nodes.
>>
>> Signed-off-by: Om Prakash Singh <quic_omprsing@quicinc.com>
>> ---
>>
>> Changes in V2:
>>    - Update DT node sequence as per register ascending order
> 
> Hm, I don't see it...
> 
>>    - Fix DT node properties as per convention
>>
>>   arch/arm64/boot/dts/qcom/sc7280.dtsi | 22 ++++++++++++++++++++++
>>   1 file changed, 22 insertions(+)
>>
>> diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi
>> index 66f1eb83cca7..7b705df21f4e 100644
>> --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi
>> +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi
>> @@ -2272,6 +2272,28 @@ ipa: ipa@1e40000 {
>>   			status = "disabled";
>>   		};
>>   
>> +		cryptobam: dma-controller@1dc4000 {
> 
> It still looks like not correctly ordered by unit address against other
> nodes in the file.
> 

Hi Krzysztof,
Probably I am missing something basic here. I am trying to put entries 
addresses that are sorted wrt their current adjacent.

And it looks fine to me.

1c0e000 (current exist)
1dc4000 (newly added)
1dfa000	(newly added)
1e40000	(current exist)

> 
> 
> 
> Best regards,
> Krzysztof
> 

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

* Re: [PATCH V2 2/2] arm64: dts: qcom: sc7280: add QCrypto nodes
  2023-12-14  5:41     ` Om Prakash Singh
@ 2023-12-14  7:22       ` Krzysztof Kozlowski
  2023-12-14 10:22         ` Om Prakash Singh
  0 siblings, 1 reply; 7+ messages in thread
From: Krzysztof Kozlowski @ 2023-12-14  7:22 UTC (permalink / raw)
  To: Om Prakash Singh
  Cc: neil.armstrong, konrad.dybcio, agross, andersson, conor+dt,
	davem, devicetree, herbert, krzysztof.kozlowski+dt,
	linux-arm-msm, linux-crypto, linux-kernel, marijn.suijten,
	robh+dt, vkoul

On 14/12/2023 06:41, Om Prakash Singh wrote:
> 
> 
> On 12/12/2023 8:32 PM, Krzysztof Kozlowski wrote:
>> On 12/12/2023 14:32, Om Prakash Singh wrote:
>>> Add the QCE and Crypto BAM DMA nodes.
>>>
>>> Signed-off-by: Om Prakash Singh <quic_omprsing@quicinc.com>
>>> ---
>>>
>>> Changes in V2:
>>>    - Update DT node sequence as per register ascending order
>>
>> Hm, I don't see it...
>>
>>>    - Fix DT node properties as per convention
>>>
>>>   arch/arm64/boot/dts/qcom/sc7280.dtsi | 22 ++++++++++++++++++++++
>>>   1 file changed, 22 insertions(+)
>>>
>>> diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi
>>> index 66f1eb83cca7..7b705df21f4e 100644
>>> --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi
>>> +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi
>>> @@ -2272,6 +2272,28 @@ ipa: ipa@1e40000 {
>>>   			status = "disabled";
>>>   		};
>>>   
>>> +		cryptobam: dma-controller@1dc4000 {
>>
>> It still looks like not correctly ordered by unit address against other
>> nodes in the file.
>>
> 
> Hi Krzysztof,
> Probably I am missing something basic here. I am trying to put entries 
> addresses that are sorted wrt their current adjacent.
> 
> And it looks fine to me.
> 
> 1c0e000 (current exist)
> 1dc4000 (newly added)
> 1dfa000	(newly added)
> 1e40000	(current exist)

Then why the diff shows:
@@ -2272,6 +2272,28 @@ ipa: ipa@1e40000 {
above your changes?

Best regards,
Krzysztof


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

* Re: [PATCH V2 2/2] arm64: dts: qcom: sc7280: add QCrypto nodes
  2023-12-14  7:22       ` Krzysztof Kozlowski
@ 2023-12-14 10:22         ` Om Prakash Singh
  0 siblings, 0 replies; 7+ messages in thread
From: Om Prakash Singh @ 2023-12-14 10:22 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: neil.armstrong, konrad.dybcio, agross, andersson, conor+dt,
	davem, devicetree, herbert, krzysztof.kozlowski+dt,
	linux-arm-msm, linux-crypto, linux-kernel, marijn.suijten,
	robh+dt, vkoul



On 12/14/2023 12:52 PM, Krzysztof Kozlowski wrote:
> On 14/12/2023 06:41, Om Prakash Singh wrote:
>>
>>
>> On 12/12/2023 8:32 PM, Krzysztof Kozlowski wrote:
>>> On 12/12/2023 14:32, Om Prakash Singh wrote:
>>>> Add the QCE and Crypto BAM DMA nodes.
>>>>
>>>> Signed-off-by: Om Prakash Singh <quic_omprsing@quicinc.com>
>>>> ---
>>>>
>>>> Changes in V2:
>>>>     - Update DT node sequence as per register ascending order
>>>
>>> Hm, I don't see it...
>>>
>>>>     - Fix DT node properties as per convention
>>>>
>>>>    arch/arm64/boot/dts/qcom/sc7280.dtsi | 22 ++++++++++++++++++++++
>>>>    1 file changed, 22 insertions(+)
>>>>
>>>> diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi
>>>> index 66f1eb83cca7..7b705df21f4e 100644
>>>> --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi
>>>> +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi
>>>> @@ -2272,6 +2272,28 @@ ipa: ipa@1e40000 {
>>>>    			status = "disabled";
>>>>    		};
>>>>    
>>>> +		cryptobam: dma-controller@1dc4000 {
>>>
>>> It still looks like not correctly ordered by unit address against other
>>> nodes in the file.
>>>
>>
>> Hi Krzysztof,
>> Probably I am missing something basic here. I am trying to put entries
>> addresses that are sorted wrt their current adjacent.
>>
>> And it looks fine to me.
>>
>> 1c0e000 (current exist)
>> 1dc4000 (newly added)
>> 1dfa000	(newly added)
>> 1e40000	(current exist)
> 
> Then why the diff shows:
> @@ -2272,6 +2272,28 @@ ipa: ipa@1e40000 {
> above your changes?

my mistake! Local change was not added in updated patch.
Submitting V3

> 
> Best regards,
> Krzysztof
> 

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

end of thread, other threads:[~2023-12-14 10:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-12 13:32 [PATCH V2 0/2] Add QCrypto support for SC7280 Om Prakash Singh
2023-12-12 13:32 ` [PATCH V2 1/2] dt-bindings: crypto: qcom-qce: document the SC7280 crypto engine Om Prakash Singh
2023-12-12 13:32 ` [PATCH V2 2/2] arm64: dts: qcom: sc7280: add QCrypto nodes Om Prakash Singh
2023-12-12 15:02   ` Krzysztof Kozlowski
2023-12-14  5:41     ` Om Prakash Singh
2023-12-14  7:22       ` Krzysztof Kozlowski
2023-12-14 10:22         ` Om Prakash Singh

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®