summaryrefslogtreecommitdiffstats
path: root/kernel/Documentation/devicetree/bindings/hwrng
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/Documentation/devicetree/bindings/hwrng')
-rw-r--r--kernel/Documentation/devicetree/bindings/hwrng/atmel-trng.txt16
-rw-r--r--kernel/Documentation/devicetree/bindings/hwrng/brcm,iproc-rng200.txt12
-rw-r--r--kernel/Documentation/devicetree/bindings/hwrng/omap_rng.txt22
-rw-r--r--kernel/Documentation/devicetree/bindings/hwrng/timeriomem_rng.txt18
4 files changed, 68 insertions, 0 deletions
diff --git a/kernel/Documentation/devicetree/bindings/hwrng/atmel-trng.txt b/kernel/Documentation/devicetree/bindings/hwrng/atmel-trng.txt
new file mode 100644
index 000000000..4ac5aaa2d
--- /dev/null
+++ b/kernel/Documentation/devicetree/bindings/hwrng/atmel-trng.txt
@@ -0,0 +1,16 @@
+Atmel TRNG (True Random Number Generator) block
+
+Required properties:
+- compatible : Should be "atmel,at91sam9g45-trng"
+- reg : Offset and length of the register set of this block
+- interrupts : the interrupt number for the TRNG block
+- clocks: should contain the TRNG clk source
+
+Example:
+
+trng@fffcc000 {
+ compatible = "atmel,at91sam9g45-trng";
+ reg = <0xfffcc000 0x4000>;
+ interrupts = <6 IRQ_TYPE_LEVEL_HIGH 0>;
+ clocks = <&trng_clk>;
+};
diff --git a/kernel/Documentation/devicetree/bindings/hwrng/brcm,iproc-rng200.txt b/kernel/Documentation/devicetree/bindings/hwrng/brcm,iproc-rng200.txt
new file mode 100644
index 000000000..e25a45666
--- /dev/null
+++ b/kernel/Documentation/devicetree/bindings/hwrng/brcm,iproc-rng200.txt
@@ -0,0 +1,12 @@
+HWRNG support for the iproc-rng200 driver
+
+Required properties:
+- compatible : "brcm,iproc-rng200"
+- reg : base address and size of control register block
+
+Example:
+
+rng {
+ compatible = "brcm,iproc-rng200";
+ reg = <0x18032000 0x28>;
+};
diff --git a/kernel/Documentation/devicetree/bindings/hwrng/omap_rng.txt b/kernel/Documentation/devicetree/bindings/hwrng/omap_rng.txt
new file mode 100644
index 000000000..6a62acd86
--- /dev/null
+++ b/kernel/Documentation/devicetree/bindings/hwrng/omap_rng.txt
@@ -0,0 +1,22 @@
+OMAP SoC HWRNG Module
+
+Required properties:
+
+- compatible : Should contain entries for this and backward compatible
+ RNG versions:
+ - "ti,omap2-rng" for OMAP2.
+ - "ti,omap4-rng" for OMAP4, OMAP5 and AM33XX.
+ Note that these two versions are incompatible.
+- ti,hwmods: Name of the hwmod associated with the RNG module
+- reg : Offset and length of the register set for the module
+- interrupts : the interrupt number for the RNG module.
+ Only used for "ti,omap4-rng".
+
+Example:
+/* AM335x */
+rng: rng@48310000 {
+ compatible = "ti,omap4-rng";
+ ti,hwmods = "rng";
+ reg = <0x48310000 0x2000>;
+ interrupts = <111>;
+};
diff --git a/kernel/Documentation/devicetree/bindings/hwrng/timeriomem_rng.txt b/kernel/Documentation/devicetree/bindings/hwrng/timeriomem_rng.txt
new file mode 100644
index 000000000..6616d1586
--- /dev/null
+++ b/kernel/Documentation/devicetree/bindings/hwrng/timeriomem_rng.txt
@@ -0,0 +1,18 @@
+HWRNG support for the timeriomem_rng driver
+
+Required properties:
+- compatible : "timeriomem_rng"
+- reg : base address to sample from
+- period : wait time in microseconds to use between samples
+
+N.B. currently 'reg' must be four bytes wide and aligned
+
+Example:
+
+hwrng@44 {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ compatible = "timeriomem_rng";
+ reg = <0x44 0x04>;
+ period = <1000000>;
+};