xref: /freebsd/sys/contrib/device-tree/Bindings/rng/rockchip,rk3568-rng.yaml (revision b2d2a78ad80ec68d4a17f5aef97d21686cb1e29b)
1*b2d2a78aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*b2d2a78aSEmmanuel Vadot%YAML 1.2
3*b2d2a78aSEmmanuel Vadot---
4*b2d2a78aSEmmanuel Vadot$id: http://devicetree.org/schemas/rng/rockchip,rk3568-rng.yaml#
5*b2d2a78aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*b2d2a78aSEmmanuel Vadot
7*b2d2a78aSEmmanuel Vadottitle: Rockchip RK3568 TRNG
8*b2d2a78aSEmmanuel Vadot
9*b2d2a78aSEmmanuel Vadotdescription: True Random Number Generator on Rockchip RK3568 SoC
10*b2d2a78aSEmmanuel Vadot
11*b2d2a78aSEmmanuel Vadotmaintainers:
12*b2d2a78aSEmmanuel Vadot  - Aurelien Jarno <aurelien@aurel32.net>
13*b2d2a78aSEmmanuel Vadot  - Daniel Golle <daniel@makrotopia.org>
14*b2d2a78aSEmmanuel Vadot
15*b2d2a78aSEmmanuel Vadotproperties:
16*b2d2a78aSEmmanuel Vadot  compatible:
17*b2d2a78aSEmmanuel Vadot    enum:
18*b2d2a78aSEmmanuel Vadot      - rockchip,rk3568-rng
19*b2d2a78aSEmmanuel Vadot
20*b2d2a78aSEmmanuel Vadot  reg:
21*b2d2a78aSEmmanuel Vadot    maxItems: 1
22*b2d2a78aSEmmanuel Vadot
23*b2d2a78aSEmmanuel Vadot  clocks:
24*b2d2a78aSEmmanuel Vadot    items:
25*b2d2a78aSEmmanuel Vadot      - description: TRNG clock
26*b2d2a78aSEmmanuel Vadot      - description: TRNG AHB clock
27*b2d2a78aSEmmanuel Vadot
28*b2d2a78aSEmmanuel Vadot  clock-names:
29*b2d2a78aSEmmanuel Vadot    items:
30*b2d2a78aSEmmanuel Vadot      - const: core
31*b2d2a78aSEmmanuel Vadot      - const: ahb
32*b2d2a78aSEmmanuel Vadot
33*b2d2a78aSEmmanuel Vadot  resets:
34*b2d2a78aSEmmanuel Vadot    maxItems: 1
35*b2d2a78aSEmmanuel Vadot
36*b2d2a78aSEmmanuel Vadotrequired:
37*b2d2a78aSEmmanuel Vadot  - compatible
38*b2d2a78aSEmmanuel Vadot  - reg
39*b2d2a78aSEmmanuel Vadot  - clocks
40*b2d2a78aSEmmanuel Vadot  - clock-names
41*b2d2a78aSEmmanuel Vadot  - resets
42*b2d2a78aSEmmanuel Vadot
43*b2d2a78aSEmmanuel VadotadditionalProperties: false
44*b2d2a78aSEmmanuel Vadot
45*b2d2a78aSEmmanuel Vadotexamples:
46*b2d2a78aSEmmanuel Vadot  - |
47*b2d2a78aSEmmanuel Vadot    #include <dt-bindings/clock/rk3568-cru.h>
48*b2d2a78aSEmmanuel Vadot    bus {
49*b2d2a78aSEmmanuel Vadot      #address-cells = <2>;
50*b2d2a78aSEmmanuel Vadot      #size-cells = <2>;
51*b2d2a78aSEmmanuel Vadot
52*b2d2a78aSEmmanuel Vadot      rng@fe388000 {
53*b2d2a78aSEmmanuel Vadot        compatible = "rockchip,rk3568-rng";
54*b2d2a78aSEmmanuel Vadot        reg = <0x0 0xfe388000 0x0 0x4000>;
55*b2d2a78aSEmmanuel Vadot        clocks = <&cru CLK_TRNG_NS>, <&cru HCLK_TRNG_NS>;
56*b2d2a78aSEmmanuel Vadot        clock-names = "core", "ahb";
57*b2d2a78aSEmmanuel Vadot        resets = <&cru SRST_TRNG_NS>;
58*b2d2a78aSEmmanuel Vadot      };
59*b2d2a78aSEmmanuel Vadot    };
60*b2d2a78aSEmmanuel Vadot
61*b2d2a78aSEmmanuel Vadot...
62