* [PATCH 0/2] Add Crypto Support for J784S4 SoC
@ 2023-03-13 10:47 ` Jayesh Choudhary
0 siblings, 0 replies; 8+ messages in thread
From: Jayesh Choudhary @ 2023-03-13 10:47 UTC (permalink / raw)
To: nm, vigneshr
Cc: kristo, robh+dt, krzysztof.kozlowski+dt, kamlesh,
linux-arm-kernel, devicetree, linux-kernel, j-choudhary
This series adds the crypto node for sa2ul for j784s4 platform.
First patch adds the device-id for NAVSS without which the probe
for dma-controller fails due to 'ti,sci-dev-id' read failure.
Second patch adds the crypto node.
This series has functional dependency on j784s4 k3_soc_id[1] and
PSIL-thread support[2] but it does not affect the boot.
[1]:
<https://lore.kernel.org/all/20230313065025.185320-1-j-choudhary@ti.com/>
[2]:
<https://lore.kernel.org/all/20230308201513.116638-1-j-choudhary@ti.com/>
For testing the crypto support, crypto extra tests and self tests were
enabled and tcrypt tests were used to verify SHA-1/256/512, AES and DES3
algorithms.
Testing log:
<https://gist.github.com/Jayesh2000/4fe36337af6f9dc96a055359d5d6f4ca>
Jayesh Choudhary (2):
arm64: dts: ti: k3-j784s4-main: Add 'ti,sci-dev-id' for main_navss
arm64: dts: ti: k3-j784s4-main: Enable crypto accelerator
arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
--
2.25.1
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 0/2] Add Crypto Support for J784S4 SoC
@ 2023-03-13 10:47 ` Jayesh Choudhary
0 siblings, 0 replies; 8+ messages in thread
From: Jayesh Choudhary @ 2023-03-13 10:47 UTC (permalink / raw)
To: nm, vigneshr
Cc: kristo, robh+dt, krzysztof.kozlowski+dt, kamlesh,
linux-arm-kernel, devicetree, linux-kernel, j-choudhary
This series adds the crypto node for sa2ul for j784s4 platform.
First patch adds the device-id for NAVSS without which the probe
for dma-controller fails due to 'ti,sci-dev-id' read failure.
Second patch adds the crypto node.
This series has functional dependency on j784s4 k3_soc_id[1] and
PSIL-thread support[2] but it does not affect the boot.
[1]:
<https://lore.kernel.org/all/20230313065025.185320-1-j-choudhary@ti.com/>
[2]:
<https://lore.kernel.org/all/20230308201513.116638-1-j-choudhary@ti.com/>
For testing the crypto support, crypto extra tests and self tests were
enabled and tcrypt tests were used to verify SHA-1/256/512, AES and DES3
algorithms.
Testing log:
<https://gist.github.com/Jayesh2000/4fe36337af6f9dc96a055359d5d6f4ca>
Jayesh Choudhary (2):
arm64: dts: ti: k3-j784s4-main: Add 'ti,sci-dev-id' for main_navss
arm64: dts: ti: k3-j784s4-main: Enable crypto accelerator
arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
--
2.25.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 1/2] arm64: dts: ti: k3-j784s4-main: Add 'ti,sci-dev-id' for main_navss
2023-03-13 10:47 ` Jayesh Choudhary
@ 2023-03-13 10:47 ` Jayesh Choudhary
-1 siblings, 0 replies; 8+ messages in thread
From: Jayesh Choudhary @ 2023-03-13 10:47 UTC (permalink / raw)
To: nm, vigneshr
Cc: kristo, robh+dt, krzysztof.kozlowski+dt, kamlesh,
linux-arm-kernel, devicetree, linux-kernel, j-choudhary
Add the TISCI device ID for main navss node.
Signed-off-by: Jayesh Choudhary <j-choudhary@ti.com>
---
arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi
index 7edf324ac159..80a1b08c51a8 100644
--- a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi
@@ -398,6 +398,7 @@ main_navss: bus@30000000 {
#address-cells = <2>;
#size-cells = <2>;
ranges = <0x00 0x30000000 0x00 0x30000000 0x00 0x0c400000>;
+ ti,sci-dev-id = <280>;
dma-coherent;
dma-ranges;
--
2.25.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 1/2] arm64: dts: ti: k3-j784s4-main: Add 'ti,sci-dev-id' for main_navss
@ 2023-03-13 10:47 ` Jayesh Choudhary
0 siblings, 0 replies; 8+ messages in thread
From: Jayesh Choudhary @ 2023-03-13 10:47 UTC (permalink / raw)
To: nm, vigneshr
Cc: kristo, robh+dt, krzysztof.kozlowski+dt, kamlesh,
linux-arm-kernel, devicetree, linux-kernel, j-choudhary
Add the TISCI device ID for main navss node.
Signed-off-by: Jayesh Choudhary <j-choudhary@ti.com>
---
arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi
index 7edf324ac159..80a1b08c51a8 100644
--- a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi
@@ -398,6 +398,7 @@ main_navss: bus@30000000 {
#address-cells = <2>;
#size-cells = <2>;
ranges = <0x00 0x30000000 0x00 0x30000000 0x00 0x0c400000>;
+ ti,sci-dev-id = <280>;
dma-coherent;
dma-ranges;
--
2.25.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 2/2] arm64: dts: ti: k3-j784s4-main: Enable crypto accelerator
2023-03-13 10:47 ` Jayesh Choudhary
@ 2023-03-13 10:47 ` Jayesh Choudhary
-1 siblings, 0 replies; 8+ messages in thread
From: Jayesh Choudhary @ 2023-03-13 10:47 UTC (permalink / raw)
To: nm, vigneshr
Cc: kristo, robh+dt, krzysztof.kozlowski+dt, kamlesh,
linux-arm-kernel, devicetree, linux-kernel, j-choudhary
Add the node for SA2UL to support hardware crypto algorithms,
including SHA-1/256/512, AES, 3DES and AEAD suites.
Add rng node for hardware random number generator.
Signed-off-by: Jayesh Choudhary <j-choudhary@ti.com>
---
arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi
index 80a1b08c51a8..8c1474a7bd0f 100644
--- a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi
@@ -72,6 +72,25 @@ main_pmx0: pinctrl@11c000 {
pinctrl-single,function-mask = <0xffffffff>;
};
+ main_crypto: crypto@4e00000 {
+ compatible = "ti,j721e-sa2ul";
+ reg = <0x00 0x4e00000 0x00 0x1200>;
+ power-domains = <&k3_pds 369 TI_SCI_PD_EXCLUSIVE>;
+ #address-cells = <2>;
+ #size-cells = <2>;
+ ranges = <0x00 0x04e00000 0x00 0x04e00000 0x00 0x30000>;
+
+ dmas = <&main_udmap 0xca40>, <&main_udmap 0x4a40>,
+ <&main_udmap 0x4a41>;
+ dma-names = "tx", "rx1", "rx2";
+
+ rng: rng@4e10000 {
+ compatible = "inside-secure,safexcel-eip76";
+ reg = <0x00 0x4e10000 0x00 0x7d>;
+ interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
+ };
+ };
+
main_uart0: serial@2800000 {
compatible = "ti,j721e-uart", "ti,am654-uart";
reg = <0x00 0x02800000 0x00 0x200>;
--
2.25.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 2/2] arm64: dts: ti: k3-j784s4-main: Enable crypto accelerator
@ 2023-03-13 10:47 ` Jayesh Choudhary
0 siblings, 0 replies; 8+ messages in thread
From: Jayesh Choudhary @ 2023-03-13 10:47 UTC (permalink / raw)
To: nm, vigneshr
Cc: kristo, robh+dt, krzysztof.kozlowski+dt, kamlesh,
linux-arm-kernel, devicetree, linux-kernel, j-choudhary
Add the node for SA2UL to support hardware crypto algorithms,
including SHA-1/256/512, AES, 3DES and AEAD suites.
Add rng node for hardware random number generator.
Signed-off-by: Jayesh Choudhary <j-choudhary@ti.com>
---
arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi
index 80a1b08c51a8..8c1474a7bd0f 100644
--- a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi
@@ -72,6 +72,25 @@ main_pmx0: pinctrl@11c000 {
pinctrl-single,function-mask = <0xffffffff>;
};
+ main_crypto: crypto@4e00000 {
+ compatible = "ti,j721e-sa2ul";
+ reg = <0x00 0x4e00000 0x00 0x1200>;
+ power-domains = <&k3_pds 369 TI_SCI_PD_EXCLUSIVE>;
+ #address-cells = <2>;
+ #size-cells = <2>;
+ ranges = <0x00 0x04e00000 0x00 0x04e00000 0x00 0x30000>;
+
+ dmas = <&main_udmap 0xca40>, <&main_udmap 0x4a40>,
+ <&main_udmap 0x4a41>;
+ dma-names = "tx", "rx1", "rx2";
+
+ rng: rng@4e10000 {
+ compatible = "inside-secure,safexcel-eip76";
+ reg = <0x00 0x4e10000 0x00 0x7d>;
+ interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
+ };
+ };
+
main_uart0: serial@2800000 {
compatible = "ti,j721e-uart", "ti,am654-uart";
reg = <0x00 0x02800000 0x00 0x200>;
--
2.25.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH 0/2] Add Crypto Support for J784S4 SoC
2023-03-13 10:47 ` Jayesh Choudhary
@ 2023-03-14 11:50 ` Kamlesh Gurudasani
-1 siblings, 0 replies; 8+ messages in thread
From: Kamlesh Gurudasani @ 2023-03-14 11:50 UTC (permalink / raw)
To: Jayesh Choudhary, nm, vigneshr
Cc: kristo, robh+dt, krzysztof.kozlowski+dt, linux-arm-kernel,
devicetree, linux-kernel, j-choudhary
Jayesh Choudhary <j-choudhary@ti.com> writes:
> This series adds the crypto node for sa2ul for j784s4 platform.
>
> First patch adds the device-id for NAVSS without which the probe
> for dma-controller fails due to 'ti,sci-dev-id' read failure.
> Second patch adds the crypto node.
>
> This series has functional dependency on j784s4 k3_soc_id[1] and
> PSIL-thread support[2] but it does not affect the boot.
>
> [1]:
> <https://lore.kernel.org/all/20230313065025.185320-1-j-choudhary@ti.com/>
>
> [2]:
> <https://lore.kernel.org/all/20230308201513.116638-1-j-choudhary@ti.com/>
>
> For testing the crypto support, crypto extra tests and self tests were
> enabled and tcrypt tests were used to verify SHA-1/256/512, AES and DES3
> algorithms.
>
> Testing log:
> <https://gist.github.com/Jayesh2000/4fe36337af6f9dc96a055359d5d6f4ca>
>
> Jayesh Choudhary (2):
> arm64: dts: ti: k3-j784s4-main: Add 'ti,sci-dev-id' for main_navss
> arm64: dts: ti: k3-j784s4-main: Enable crypto accelerator
>
> arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi | 20 ++++++++++++++++++++
> 1 file changed, 20 insertions(+)
>
> --
> 2.25.1
Both patches look good to me.
Reviewed-by: Kamlesh Gurudasani <kamlesh@ti.com>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 0/2] Add Crypto Support for J784S4 SoC
@ 2023-03-14 11:50 ` Kamlesh Gurudasani
0 siblings, 0 replies; 8+ messages in thread
From: Kamlesh Gurudasani @ 2023-03-14 11:50 UTC (permalink / raw)
To: Jayesh Choudhary, nm, vigneshr
Cc: kristo, robh+dt, krzysztof.kozlowski+dt, linux-arm-kernel,
devicetree, linux-kernel, j-choudhary
Jayesh Choudhary <j-choudhary@ti.com> writes:
> This series adds the crypto node for sa2ul for j784s4 platform.
>
> First patch adds the device-id for NAVSS without which the probe
> for dma-controller fails due to 'ti,sci-dev-id' read failure.
> Second patch adds the crypto node.
>
> This series has functional dependency on j784s4 k3_soc_id[1] and
> PSIL-thread support[2] but it does not affect the boot.
>
> [1]:
> <https://lore.kernel.org/all/20230313065025.185320-1-j-choudhary@ti.com/>
>
> [2]:
> <https://lore.kernel.org/all/20230308201513.116638-1-j-choudhary@ti.com/>
>
> For testing the crypto support, crypto extra tests and self tests were
> enabled and tcrypt tests were used to verify SHA-1/256/512, AES and DES3
> algorithms.
>
> Testing log:
> <https://gist.github.com/Jayesh2000/4fe36337af6f9dc96a055359d5d6f4ca>
>
> Jayesh Choudhary (2):
> arm64: dts: ti: k3-j784s4-main: Add 'ti,sci-dev-id' for main_navss
> arm64: dts: ti: k3-j784s4-main: Enable crypto accelerator
>
> arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi | 20 ++++++++++++++++++++
> 1 file changed, 20 insertions(+)
>
> --
> 2.25.1
Both patches look good to me.
Reviewed-by: Kamlesh Gurudasani <kamlesh@ti.com>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2023-03-14 11:51 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-13 10:47 [PATCH 0/2] Add Crypto Support for J784S4 SoC Jayesh Choudhary
2023-03-13 10:47 ` Jayesh Choudhary
2023-03-13 10:47 ` [PATCH 1/2] arm64: dts: ti: k3-j784s4-main: Add 'ti,sci-dev-id' for main_navss Jayesh Choudhary
2023-03-13 10:47 ` Jayesh Choudhary
2023-03-13 10:47 ` [PATCH 2/2] arm64: dts: ti: k3-j784s4-main: Enable crypto accelerator Jayesh Choudhary
2023-03-13 10:47 ` Jayesh Choudhary
2023-03-14 11:50 ` [PATCH 0/2] Add Crypto Support for J784S4 SoC Kamlesh Gurudasani
2023-03-14 11:50 ` Kamlesh Gurudasani
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.