[omap]: refresh/rename patches
[openwrt.git] / target / linux / omap / patches-3.12 / 808-ARM_dts_AM33xx_Add_RNG_node.patch
1 From ed845d6b78bf32b396f7f1278eed0b87446934b1 Mon Sep 17 00:00:00 2001
2 From: Lokesh Vutla <lokeshvutla@ti.com>
3 Date: Thu, 29 Aug 2013 12:52:09 +0000
4 Subject: ARM: dts: AM33xx: Add RNG node
5
6 Add the AM33xx RNG module's device tree data.
7 Also add Documentation file describing the data
8 for the RNG module.
9
10 Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
11 Signed-off-by: Tony Lindgren <tony@atomide.com>
12 ---
13 --- /dev/null
14 +++ b/Documentation/devicetree/bindings/hwrng/omap_rng.txt
15 @@ -0,0 +1,22 @@
16 +OMAP SoC HWRNG Module
17 +
18 +Required properties:
19 +
20 +- compatible : Should contain entries for this and backward compatible
21 +  RNG versions:
22 +  - "ti,omap2-rng" for OMAP2.
23 +  - "ti,omap4-rng" for OMAP4, OMAP5 and AM33XX.
24 +  Note that these two versions are incompatible.
25 +- ti,hwmods: Name of the hwmod associated with the RNG module
26 +- reg : Offset and length of the register set for the module
27 +- interrupts : the interrupt number for the RNG module.
28 +               Only used for "ti,omap4-rng".
29 +
30 +Example:
31 +/* AM335x */
32 +rng: rng@48310000 {
33 +       compatible = "ti,omap4-rng";
34 +       ti,hwmods = "rng";
35 +       reg = <0x48310000 0x2000>;
36 +       interrupts = <111>;
37 +};
38 --- a/arch/arm/boot/dts/am33xx.dtsi
39 +++ b/arch/arm/boot/dts/am33xx.dtsi
40 @@ -770,5 +770,12 @@
41                         dma-names = "tx", "rx";
42                 };
43  
44 +               rng: rng@48310000 {
45 +                       compatible = "ti,omap4-rng";
46 +                       ti,hwmods = "rng";
47 +                       reg = <0x48310000 0x2000>;
48 +                       interrupts = <111>;
49 +               };
50 +
51         };
52  };