dt-bindings: Document the STM32 HW RNG bindings
authorDaniel Thompson <daniel.thompson@linaro.org>
Mon, 12 Oct 2015 08:21:28 +0000 (09:21 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 14 Oct 2015 14:23:26 +0000 (22:23 +0800)
This adds documentation of device tree bindings for the STM32 hardware
random number generator.

Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
Acked-by: Maxime Coquelin <mcoquelin.stm32@gmail.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Documentation/devicetree/bindings/rng/st,stm32-rng.txt [new file with mode: 0644]

diff --git a/Documentation/devicetree/bindings/rng/st,stm32-rng.txt b/Documentation/devicetree/bindings/rng/st,stm32-rng.txt
new file mode 100644 (file)
index 0000000..47f0417
--- /dev/null
@@ -0,0 +1,21 @@
+STMicroelectronics STM32 HW RNG
+===============================
+
+The STM32 hardware random number generator is a simple fixed purpose IP and
+is fully separated from other crypto functions.
+
+Required properties:
+
+- compatible : Should be "st,stm32-rng"
+- reg : Should be register base and length as documented in the datasheet
+- interrupts : The designated IRQ line for the RNG
+- clocks : The clock needed to enable the RNG
+
+Example:
+
+       rng: rng@50060800 {
+               compatible = "st,stm32-rng";
+               reg = <0x50060800 0x400>;
+               interrupts = <80>;
+               clocks = <&rcc 0 38>;
+       };