replace the TI patch with a smaller patchset
[openwrt/openwrt.git] / target / linux / omap / patches-3.12 / 301-ARM-dts-AM33XX-Add-AES-data-and-documentation.patch
1 Add the generic AM33XX AES module's device tree data and
2 enable it for the am335x-evm, am335x-evmsk, and am335x-bone
3 platforms. Also add Documentation file describing the data
4 for the AES module.
5
6 [joelf@ti.com: Dropped interrupt-parent propert, documentation fixups]
7
8 CC: Paul Walmsley <paul@pwsan.com>
9 Signed-off-by: Mark A. Greer <mgreer@animalcreek.com>
10
11 ---
12 .../devicetree/bindings/crypto/omap-aes.txt | 31 ++++++++++++++++++++++
13 arch/arm/boot/dts/am335x-bone.dts | 4 +++
14 arch/arm/boot/dts/am335x-evm.dts | 4 +++
15 arch/arm/boot/dts/am335x-evmsk.dts | 4 +++
16 arch/arm/boot/dts/am33xx.dtsi | 10 +++++++
17 5 files changed, 53 insertions(+)
18 create mode 100644 Documentation/devicetree/bindings/crypto/omap-aes.txt
19
20 diff --git a/Documentation/devicetree/bindings/crypto/omap-aes.txt b/Documentation/devicetree/bindings/crypto/omap-aes.txt
21 new file mode 100644
22 index 0000000..fd97176
23 --- /dev/null
24 +++ b/Documentation/devicetree/bindings/crypto/omap-aes.txt
25 @@ -0,0 +1,31 @@
26 +OMAP SoC AES crypto Module
27 +
28 +Required properties:
29 +
30 +- compatible : Should contain entries for this and backward compatible
31 + AES versions:
32 + - "ti,omap2-aes" for OMAP2.
33 + - "ti,omap3-aes" for OMAP3.
34 + - "ti,omap4-aes" for OMAP4 and AM33XX.
35 + Note that the OMAP2 and 3 versions are compatible (OMAP3 supports
36 + more algorithms) but they are incompatible with OMAP4.
37 +- ti,hwmods: Name of the hwmod associated with the AES module
38 +- reg : Offset and length of the register set for the module
39 +- interrupts : the interrupt-specifier for the AES module.
40 +
41 +Optional properties:
42 +- dmas: DMA specifiers for tx and rx dma. See the DMA client binding,
43 + Documentation/devicetree/bindings/dma/dma.txt
44 +- dma-names: DMA request names should include "tx" and "rx" if present.
45 +
46 +Example:
47 + /* AM335x */
48 + aes: aes@53500000 {
49 + compatible = "ti,omap4-aes";
50 + ti,hwmods = "aes";
51 + reg = <0x53500000 0xa0>;
52 + interrupts = <102>;
53 + dmas = <&edma 6>,
54 + <&edma 5>;
55 + dma-names = "tx", "rx";
56 + };
57 diff --git a/arch/arm/boot/dts/am335x-bone.dts b/arch/arm/boot/dts/am335x-bone.dts
58 index 8a9802e..94ee427 100644
59 --- a/arch/arm/boot/dts/am335x-bone.dts
60 +++ b/arch/arm/boot/dts/am335x-bone.dts
61 @@ -23,3 +23,7 @@
62 &sham {
63 status = "okay";
64 };
65 +
66 +&aes {
67 + status = "okay";
68 +};
69 diff --git a/arch/arm/boot/dts/am335x-evm.dts b/arch/arm/boot/dts/am335x-evm.dts
70 index d59e51c..86463fa 100644
71 --- a/arch/arm/boot/dts/am335x-evm.dts
72 +++ b/arch/arm/boot/dts/am335x-evm.dts
73 @@ -526,3 +526,7 @@
74 &sham {
75 status = "okay";
76 };
77 +
78 +&aes {
79 + status = "okay";
80 +};
81 diff --git a/arch/arm/boot/dts/am335x-evmsk.dts b/arch/arm/boot/dts/am335x-evmsk.dts
82 index d45a330..f577e65 100644
83 --- a/arch/arm/boot/dts/am335x-evmsk.dts
84 +++ b/arch/arm/boot/dts/am335x-evmsk.dts
85 @@ -428,3 +428,7 @@
86 &sham {
87 status = "okay";
88 };
89 +
90 +&aes {
91 + status = "okay";
92 +};
93 diff --git a/arch/arm/boot/dts/am33xx.dtsi b/arch/arm/boot/dts/am33xx.dtsi
94 index 299710b..2664da9 100644
95 --- a/arch/arm/boot/dts/am33xx.dtsi
96 +++ b/arch/arm/boot/dts/am33xx.dtsi
97 @@ -719,5 +719,15 @@
98 dmas = <&edma 36>;
99 dma-names = "rx";
100 };
101 +
102 + aes: aes@53500000 {
103 + compatible = "ti,omap4-aes";
104 + ti,hwmods = "aes";
105 + reg = <0x53500000 0xa0>;
106 + interrupts = <102>;
107 + dmas = <&edma 6>,
108 + <&edma 5>;
109 + dma-names = "tx", "rx";
110 + };
111 };
112 };