[omap]: replace the TI patch with a smaller patchset
[openwrt-github/.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 diff --git a/Documentation/devicetree/bindings/hwrng/omap_rng.txt b/Documentation/devicetree/bindings/hwrng/omap_rng.txt
14 new file mode 100644
15 index 0000000..6a62acd
16 --- /dev/null
17 +++ b/Documentation/devicetree/bindings/hwrng/omap_rng.txt
18 @@ -0,0 +1,22 @@
19 +OMAP SoC HWRNG Module
20 +
21 +Required properties:
22 +
23 +- compatible : Should contain entries for this and backward compatible
24 +  RNG versions:
25 +  - "ti,omap2-rng" for OMAP2.
26 +  - "ti,omap4-rng" for OMAP4, OMAP5 and AM33XX.
27 +  Note that these two versions are incompatible.
28 +- ti,hwmods: Name of the hwmod associated with the RNG module
29 +- reg : Offset and length of the register set for the module
30 +- interrupts : the interrupt number for the RNG module.
31 +               Only used for "ti,omap4-rng".
32 +
33 +Example:
34 +/* AM335x */
35 +rng: rng@48310000 {
36 +       compatible = "ti,omap4-rng";
37 +       ti,hwmods = "rng";
38 +       reg = <0x48310000 0x2000>;
39 +       interrupts = <111>;
40 +};
41 diff --git a/arch/arm/boot/dts/am33xx.dtsi b/arch/arm/boot/dts/am33xx.dtsi
42 index 9ae258e..fcb9c8e 100644
43 --- a/arch/arm/boot/dts/am33xx.dtsi
44 +++ b/arch/arm/boot/dts/am33xx.dtsi
45 @@ -750,5 +750,12 @@
46                                 <&edma 11>;
47                         dma-names = "tx", "rx";
48                 };
49 +
50 +               rng: rng@48310000 {
51 +                       compatible = "ti,omap4-rng";
52 +                       ti,hwmods = "rng";
53 +                       reg = <0x48310000 0x2000>;
54 +                       interrupts = <111>;
55 +               };
56  
57         };
58  };
59 --
60 cgit v0.9.2