xref: /freebsd-src/sys/contrib/device-tree/Bindings/rng/omap_rng.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotOMAP SoC and Inside-Secure HWRNG Module
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotRequired properties:
4*c66ec88fSEmmanuel Vadot
5*c66ec88fSEmmanuel Vadot- compatible : Should contain entries for this and backward compatible
6*c66ec88fSEmmanuel Vadot  RNG versions:
7*c66ec88fSEmmanuel Vadot  - "ti,omap2-rng" for OMAP2.
8*c66ec88fSEmmanuel Vadot  - "ti,omap4-rng" for OMAP4, OMAP5 and AM33XX.
9*c66ec88fSEmmanuel Vadot  - "inside-secure,safexcel-eip76" for SoCs with EIP76 IP block
10*c66ec88fSEmmanuel Vadot  Note that these two versions are incompatible.
11*c66ec88fSEmmanuel Vadot- ti,hwmods: Name of the hwmod associated with the RNG module
12*c66ec88fSEmmanuel Vadot- reg : Offset and length of the register set for the module
13*c66ec88fSEmmanuel Vadot- interrupts : the interrupt number for the RNG module.
14*c66ec88fSEmmanuel Vadot		Used for "ti,omap4-rng" and "inside-secure,safexcel-eip76"
15*c66ec88fSEmmanuel Vadot- clocks: the trng clock source. Only mandatory for the
16*c66ec88fSEmmanuel Vadot  "inside-secure,safexcel-eip76" compatible, the second clock is
17*c66ec88fSEmmanuel Vadot  needed for the Armada 7K/8K SoCs
18*c66ec88fSEmmanuel Vadot- clock-names: mandatory if there is a second clock, in this case the
19*c66ec88fSEmmanuel Vadot  name must be "core" for the first clock and "reg" for the second
20*c66ec88fSEmmanuel Vadot  one
21*c66ec88fSEmmanuel Vadot
22*c66ec88fSEmmanuel Vadot
23*c66ec88fSEmmanuel VadotExample:
24*c66ec88fSEmmanuel Vadot/* AM335x */
25*c66ec88fSEmmanuel Vadotrng: rng@48310000 {
26*c66ec88fSEmmanuel Vadot	compatible = "ti,omap4-rng";
27*c66ec88fSEmmanuel Vadot	ti,hwmods = "rng";
28*c66ec88fSEmmanuel Vadot	reg = <0x48310000 0x2000>;
29*c66ec88fSEmmanuel Vadot	interrupts = <111>;
30*c66ec88fSEmmanuel Vadot};
31*c66ec88fSEmmanuel Vadot
32*c66ec88fSEmmanuel Vadot/* SafeXcel IP-76 */
33*c66ec88fSEmmanuel Vadottrng: rng@f2760000 {
34*c66ec88fSEmmanuel Vadot	compatible = "inside-secure,safexcel-eip76";
35*c66ec88fSEmmanuel Vadot	reg = <0xf2760000 0x7d>;
36*c66ec88fSEmmanuel Vadot	interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>;
37*c66ec88fSEmmanuel Vadot	clocks = <&cpm_syscon0 1 25>;
38*c66ec88fSEmmanuel Vadot};
39