[omap]: refresh/rename patches
[openwrt.git] / target / linux / omap / patches-3.12 / 300-ARM-dts-AM33XX-Add-SHAM-data-and-documentation.patch
1 Add the generic AM33XX SHAM 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 SHAM module.
5
6 [joelf@ti.com: Dropped interrupt-parrent property, documentation fixups]
7 CC: Paul Walmsley <paul@pwsan.com>
8 Signed-off-by: Mark A. Greer <mgreer@animalcreek.com>
9 Acked-by: Mark Rutland <mark.rutland@arm.com>
10
11 ---
12 .../devicetree/bindings/crypto/omap-sham.txt       | 28 ++++++++++++++++++++++
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                      |  9 +++++++
17  5 files changed, 49 insertions(+)
18  create mode 100644 Documentation/devicetree/bindings/crypto/omap-sham.txt
19
20 --- /dev/null
21 +++ b/Documentation/devicetree/bindings/crypto/omap-sham.txt
22 @@ -0,0 +1,28 @@
23 +OMAP SoC SHA crypto Module
24 +
25 +Required properties:
26 +
27 +- compatible : Should contain entries for this and backward compatible
28 +  SHAM versions:
29 +  - "ti,omap2-sham" for OMAP2 & OMAP3.
30 +  - "ti,omap4-sham" for OMAP4 and AM33XX.
31 +  Note that these two versions are incompatible.
32 +- ti,hwmods: Name of the hwmod associated with the SHAM module
33 +- reg : Offset and length of the register set for the module
34 +- interrupts : the interrupt-specifier for the SHAM module.
35 +
36 +Optional properties:
37 +- dmas: DMA specifiers for the rx dma. See the DMA client binding,
38 +       Documentation/devicetree/bindings/dma/dma.txt
39 +- dma-names: DMA request name. Should be "rx" if a dma is present.
40 +
41 +Example:
42 +       /* AM335x */
43 +       sham: sham@53100000 {
44 +               compatible = "ti,omap4-sham";
45 +               ti,hwmods = "sham";
46 +               reg = <0x53100000 0x200>;
47 +               interrupts = <109>;
48 +               dmas = <&edma 36>;
49 +               dma-names = "rx";
50 +       };
51 --- a/arch/arm/boot/dts/am335x-bone.dts
52 +++ b/arch/arm/boot/dts/am335x-bone.dts
53 @@ -20,3 +20,7 @@
54         status = "okay";
55         vmmc-supply = <&ldo3_reg>;
56  };
57 +
58 +&sham {
59 +       status = "okay";
60 +};
61 --- a/arch/arm/boot/dts/am335x-evm.dts
62 +++ b/arch/arm/boot/dts/am335x-evm.dts
63 @@ -524,3 +524,7 @@
64         status = "okay";
65         vmmc-supply = <&vmmc_reg>;
66  };
67 +
68 +&sham {
69 +       status = "okay";
70 +};
71 --- a/arch/arm/boot/dts/am335x-evmsk.dts
72 +++ b/arch/arm/boot/dts/am335x-evmsk.dts
73 @@ -430,3 +430,7 @@
74  &gpio0 {
75         ti,no-reset-on-init;
76  };
77 +
78 +&sham {
79 +       status = "okay";
80 +};
81 --- a/arch/arm/boot/dts/am33xx.dtsi
82 +++ b/arch/arm/boot/dts/am33xx.dtsi
83 @@ -707,5 +707,14 @@
84                         #size-cells = <1>;
85                         status = "disabled";
86                 };
87 +
88 +               sham: sham@53100000 {
89 +                       compatible = "ti,omap4-sham";
90 +                       ti,hwmods = "sham";
91 +                       reg = <0x53100000 0x200>;
92 +                       interrupts = <109>;
93 +                       dmas = <&edma 36>;
94 +                       dma-names = "rx";
95 +               };
96         };
97  };