ARM: dts: AM33XX: Add SHAM data and documentation
authorMark A. Greer <mgreer@animalcreek.com>
Fri, 23 Aug 2013 21:12:35 +0000 (14:12 -0700)
committerBenoit Cousson <bcousson@baylibre.com>
Fri, 11 Oct 2013 19:06:40 +0000 (21:06 +0200)
Add the generic AM33XX SHAM module's device tree data and
enable it for the am335x-evm, am335x-evmsk, and am335x-bone
platforms.  Also add Documentation file describing the data
for the SHAM module.

Cc: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Mark A. Greer <mgreer@animalcreek.com>
Signed-off-by: Joel Fernandes <joelf@ti.com>
[joelf@ti.com: Dropped interrupt-parent property, documentation fixups]
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Benoit Cousson <bcousson@baylibre.com>
Documentation/devicetree/bindings/crypto/omap-sham.txt [new file with mode: 0644]
arch/arm/boot/dts/am335x-bone.dts
arch/arm/boot/dts/am335x-evm.dts
arch/arm/boot/dts/am335x-evmsk.dts
arch/arm/boot/dts/am33xx.dtsi

diff --git a/Documentation/devicetree/bindings/crypto/omap-sham.txt b/Documentation/devicetree/bindings/crypto/omap-sham.txt
new file mode 100644 (file)
index 0000000..f839acd
--- /dev/null
@@ -0,0 +1,28 @@
+OMAP SoC SHA crypto Module
+
+Required properties:
+
+- compatible : Should contain entries for this and backward compatible
+  SHAM versions:
+  - "ti,omap2-sham" for OMAP2 & OMAP3.
+  - "ti,omap4-sham" for OMAP4 and AM33XX.
+  Note that these two versions are incompatible.
+- ti,hwmods: Name of the hwmod associated with the SHAM module
+- reg : Offset and length of the register set for the module
+- interrupts : the interrupt-specifier for the SHAM module.
+
+Optional properties:
+- dmas: DMA specifiers for the rx dma. See the DMA client binding,
+       Documentation/devicetree/bindings/dma/dma.txt
+- dma-names: DMA request name. Should be "rx" if a dma is present.
+
+Example:
+       /* AM335x */
+       sham: sham@53100000 {
+               compatible = "ti,omap4-sham";
+               ti,hwmods = "sham";
+               reg = <0x53100000 0x200>;
+               interrupts = <109>;
+               dmas = <&edma 36>;
+               dma-names = "rx";
+       };
index 0d6334875df8073b36d504e08670ffe8a6244d3b..8a9802ee6380ce2ebc4869fb11b676343d5867cc 100644 (file)
@@ -19,3 +19,7 @@
 &mmc1 {
        vmmc-supply = <&ldo3_reg>;
 };
+
+&sham {
+       status = "okay";
+};
index 028ca096d18db047dcf54a6e03268c21bf905751..09786efc25c1f81dd821e30a6fa1744cafc707d1 100644 (file)
        vmmc-supply = <&vmmc_reg>;
        bus-width = <4>;
 };
+
+&sham {
+       status = "okay";
+};
index 563a2b136e0eb494d3195a9e40cfe82b4891f29f..08d5cd9e6457d1d45a0f478ee3674324b3a2a0c8 100644 (file)
        vmmc-supply = <&vmmc_reg>;
        bus-width = <4>;
 };
+
+&sham {
+       status = "okay";
+};
index 8aabaa0eb264aca466a925c5aae8274d086538c2..5f114a7f9484ee2f6c55869d4df5389571733da2 100644 (file)
                        #size-cells = <1>;
                        status = "disabled";
                };
+
+               sham: sham@53100000 {
+                       compatible = "ti,omap4-sham";
+                       ti,hwmods = "sham";
+                       reg = <0x53100000 0x200>;
+                       interrupts = <109>;
+                       dmas = <&edma 36>;
+                       dma-names = "rx";
+               };
        };
 };