sunxi: add support for 4.1
[openwrt/openwrt.git] / target / linux / sunxi / patches-4.1 / 191-dt-sun4i-add-ss-to-a10.patch
1 From 56ba8c5814a859dd94667643a3bc22984efd1521 Mon Sep 17 00:00:00 2001
2 From: LABBE Corentin <clabbe.montjoie@gmail.com>
3 Date: Fri, 17 Jul 2015 16:39:38 +0200
4 Subject: [PATCH] ARM: sun4i: dt: Add Security System to A10 SoC DTS
5
6 The Security System is a hardware cryptographic accelerator that support
7 AES/MD5/SHA1/DES/3DES/PRNG algorithms.
8 It could be found on many Allwinner SoC.
9
10 This patch enable the Security System on the Allwinner A10 SoC Device-tree.
11
12 Signed-off-by: LABBE Corentin <clabbe.montjoie@gmail.com>
13 Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
14 ---
15 arch/arm/boot/dts/sun4i-a10.dtsi | 8 ++++++++
16 1 file changed, 8 insertions(+)
17
18 diff --git a/arch/arm/boot/dts/sun4i-a10.dtsi b/arch/arm/boot/dts/sun4i-a10.dtsi
19 index 61c03d1..551e3d1 100644
20 --- a/arch/arm/boot/dts/sun4i-a10.dtsi
21 +++ b/arch/arm/boot/dts/sun4i-a10.dtsi
22 @@ -643,6 +643,14 @@
23 status = "disabled";
24 };
25
26 + crypto: crypto-engine@01c15000 {
27 + compatible = "allwinner,sun4i-a10-crypto";
28 + reg = <0x01c15000 0x1000>;
29 + interrupts = <86>;
30 + clocks = <&ahb_gates 5>, <&ss_clk>;
31 + clock-names = "ahb", "mod";
32 + };
33 +
34 spi2: spi@01c17000 {
35 compatible = "allwinner,sun4i-a10-spi";
36 reg = <0x01c17000 0x1000>;