[omap]: add 3.13 support
[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 --- /dev/null
21 +++ b/Documentation/devicetree/bindings/crypto/omap-aes.txt
22 @@ -0,0 +1,31 @@
23 +OMAP SoC AES crypto Module
24 +
25 +Required properties:
26 +
27 +- compatible : Should contain entries for this and backward compatible
28 +  AES versions:
29 +  - "ti,omap2-aes" for OMAP2.
30 +  - "ti,omap3-aes" for OMAP3.
31 +  - "ti,omap4-aes" for OMAP4 and AM33XX.
32 +  Note that the OMAP2 and 3 versions are compatible (OMAP3 supports
33 +  more algorithms) but they are incompatible with OMAP4.
34 +- ti,hwmods: Name of the hwmod associated with the AES module
35 +- reg : Offset and length of the register set for the module
36 +- interrupts : the interrupt-specifier for the AES module.
37 +
38 +Optional properties:
39 +- dmas: DMA specifiers for tx and rx dma. See the DMA client binding,
40 +       Documentation/devicetree/bindings/dma/dma.txt
41 +- dma-names: DMA request names should include "tx" and "rx" if present.
42 +
43 +Example:
44 +       /* AM335x */
45 +       aes: aes@53500000 {
46 +               compatible = "ti,omap4-aes";
47 +               ti,hwmods = "aes";
48 +               reg = <0x53500000 0xa0>;
49 +               interrupts = <102>;
50 +               dmas = <&edma 6>,
51 +                      <&edma 5>;
52 +               dma-names = "tx", "rx";
53 +       };
54 --- a/arch/arm/boot/dts/am335x-bone.dts
55 +++ b/arch/arm/boot/dts/am335x-bone.dts
56 @@ -24,3 +24,7 @@
57  &sham {
58         status = "okay";
59  };
60 +
61 +&aes {
62 +       status = "okay";
63 +};
64 --- a/arch/arm/boot/dts/am335x-evm.dts
65 +++ b/arch/arm/boot/dts/am335x-evm.dts
66 @@ -528,3 +528,7 @@
67  &sham {
68         status = "okay";
69  };
70 +
71 +&aes {
72 +       status = "okay";
73 +};
74 --- a/arch/arm/boot/dts/am335x-evmsk.dts
75 +++ b/arch/arm/boot/dts/am335x-evmsk.dts
76 @@ -434,3 +434,7 @@
77  &sham {
78         status = "okay";
79  };
80 +
81 +&aes {
82 +       status = "okay";
83 +};
84 --- a/arch/arm/boot/dts/am33xx.dtsi
85 +++ b/arch/arm/boot/dts/am33xx.dtsi
86 @@ -716,5 +716,15 @@
87                         dmas = <&edma 36>;
88                         dma-names = "rx";
89                 };
90 +
91 +               aes: aes@53500000 {
92 +                       compatible = "ti,omap4-aes";
93 +                       ti,hwmods = "aes";
94 +                       reg = <0x53500000 0xa0>;
95 +                       interrupts = <102>;
96 +                       dmas = <&edma 6>,
97 +                              <&edma 5>;
98 +                       dma-names = "tx", "rx";
99 +               };
100         };
101  };