2016-03-22 02:00:38

by Krzysztof Kozlowski

[permalink] [raw]
Subject: [PATCH 1/2] ARM: dts: exynos: Add Security SubSystem node to Exynos4

Add Security SubSystem (SSS) node to Exynos4 which provides hardware
acceleration of AES operations.

Signed-off-by: Krzysztof Kozlowski <[email protected]>
---
arch/arm/boot/dts/exynos4.dtsi | 9 +++++++++
1 file changed, 9 insertions(+)

diff --git a/arch/arm/boot/dts/exynos4.dtsi b/arch/arm/boot/dts/exynos4.dtsi
index c679b3cc3c48..39000f9c6b86 100644
--- a/arch/arm/boot/dts/exynos4.dtsi
+++ b/arch/arm/boot/dts/exynos4.dtsi
@@ -969,6 +969,15 @@
#iommu-cells = <0>;
};

+ sss: sss@10830000 {
+ compatible = "samsung,exynos4210-secss";
+ reg = <0x10830000 0x300>;
+ interrupts = <0 112 0>;
+ clocks = <&clock CLK_SSS>;
+ clock-names = "secss";
+ status = "disabled";
+ };
+
prng: rng@10830400 {
compatible = "samsung,exynos4-rng";
reg = <0x10830400 0x200>;
--
2.5.0


2016-03-22 02:00:42

by Krzysztof Kozlowski

[permalink] [raw]
Subject: [PATCH 2/2] ARM: dts: exynos: Enable SSS on Trats2

Enable the Security SubSystem (SSS) on Trats2 (Exynos4412) board which
allows usage of its hardware accelerated AES operations.

Signed-off-by: Krzysztof Kozlowski <[email protected]>
---
arch/arm/boot/dts/exynos4412-trats2.dts | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/arch/arm/boot/dts/exynos4412-trats2.dts b/arch/arm/boot/dts/exynos4412-trats2.dts
index ed017cc7b14f..2bf363c3bf62 100644
--- a/arch/arm/boot/dts/exynos4412-trats2.dts
+++ b/arch/arm/boot/dts/exynos4412-trats2.dts
@@ -1286,6 +1286,10 @@
};
};

+&sss {
+ status = "okay";
+};
+
&tmu {
vtmu-supply = <&ldo10_reg>;
status = "okay";
--
2.5.0

2016-03-22 13:56:41

by Javier Martinez Canillas

[permalink] [raw]
Subject: Re: [PATCH 1/2] ARM: dts: exynos: Add Security SubSystem node to Exynos4

Hello Krzysztof,

On 03/21/2016 11:00 PM, Krzysztof Kozlowski wrote:
> Add Security SubSystem (SSS) node to Exynos4 which provides hardware
> acceleration of AES operations.
>
> Signed-off-by: Krzysztof Kozlowski <[email protected]>
> ---

Reviewed-by: Javier Martinez Canillas <[email protected]>

Best regards,
--
Javier Martinez Canillas
Open Source Group
Samsung Research America

2016-03-22 13:58:57

by Javier Martinez Canillas

[permalink] [raw]
Subject: Re: [PATCH 2/2] ARM: dts: exynos: Enable SSS on Trats2

Hello Krzysztof,

On 03/21/2016 11:00 PM, Krzysztof Kozlowski wrote:
> Enable the Security SubSystem (SSS) on Trats2 (Exynos4412) board which
> allows usage of its hardware accelerated AES operations.
>
> Signed-off-by: Krzysztof Kozlowski <[email protected]>
> ---

Reviewed-by: Javier Martinez Canillas <[email protected]>

Best regards,
--
Javier Martinez Canillas
Open Source Group
Samsung Research America

2016-03-22 19:25:27

by Tobias Jakobi

[permalink] [raw]
Subject: Re: [PATCH 2/2] ARM: dts: exynos: Enable SSS on Trats2

Hello Krzysztof,

you can also add the node to the exynos4412-odroid-common dtsi. I have
checked that it works properly on an X2.

Thanks for patches and fixing that alignment issue!

With best wishes,
Tobias



Krzysztof Kozlowski wrote:
> Enable the Security SubSystem (SSS) on Trats2 (Exynos4412) board which
> allows usage of its hardware accelerated AES operations.
>
> Signed-off-by: Krzysztof Kozlowski <[email protected]>
> ---
> arch/arm/boot/dts/exynos4412-trats2.dts | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/arch/arm/boot/dts/exynos4412-trats2.dts b/arch/arm/boot/dts/exynos4412-trats2.dts
> index ed017cc7b14f..2bf363c3bf62 100644
> --- a/arch/arm/boot/dts/exynos4412-trats2.dts
> +++ b/arch/arm/boot/dts/exynos4412-trats2.dts
> @@ -1286,6 +1286,10 @@
> };
> };
>
> +&sss {
> + status = "okay";
> +};
> +
> &tmu {
> vtmu-supply = <&ldo10_reg>;
> status = "okay";
>

2016-03-23 00:27:56

by Krzysztof Kozlowski

[permalink] [raw]
Subject: Re: [PATCH 2/2] ARM: dts: exynos: Enable SSS on Trats2

On 23.03.2016 04:25, Tobias Jakobi wrote:
> Hello Krzysztof,
>
> you can also add the node to the exynos4412-odroid-common dtsi. I have
> checked that it works properly on an X2.
>
> Thanks for patches and fixing that alignment issue!

Thanks for testing it. I'll send a follow up with you as Tested-by.

I didn't add it because my Odroid U3 is in unusable state... I need to
fix it.

Best regards,
Krzysztof