xref: /linux/Documentation/devicetree/bindings/rng/rockchip,rk3588-rng.yaml (revision 6315d93541f8a5f77c5ef5c4f25233e66d189603)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/rng/rockchip,rk3588-rng.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Rockchip RK3588 TRNG
8
9description: True Random Number Generator on Rockchip RK3588 SoC
10
11maintainers:
12  - Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
13
14properties:
15  compatible:
16    enum:
17      - rockchip,rk3588-rng
18
19  reg:
20    maxItems: 1
21
22  clocks:
23    items:
24      - description: TRNG AHB clock
25
26  interrupts:
27    maxItems: 1
28
29  resets:
30    maxItems: 1
31
32required:
33  - compatible
34  - reg
35  - clocks
36  - interrupts
37
38additionalProperties: false
39
40examples:
41  - |
42    #include <dt-bindings/clock/rockchip,rk3588-cru.h>
43    #include <dt-bindings/interrupt-controller/arm-gic.h>
44    #include <dt-bindings/interrupt-controller/irq.h>
45    #include <dt-bindings/reset/rockchip,rk3588-cru.h>
46    bus {
47      #address-cells = <2>;
48      #size-cells = <2>;
49
50      rng@fe378000 {
51        compatible = "rockchip,rk3588-rng";
52        reg = <0x0 0xfe378000 0x0 0x200>;
53        interrupts = <GIC_SPI 400 IRQ_TYPE_LEVEL_HIGH 0>;
54        clocks = <&scmi_clk SCMI_HCLK_SECURE_NS>;
55        resets = <&scmi_reset SCMI_SRST_H_TRNG_NS>;
56      };
57    };
58
59...
60