xref: /freebsd/sys/contrib/device-tree/Bindings/rng/rockchip,rk3588-rng.yaml (revision ae5de77ed78ae54d86cead5604869212e8008e6b)
18ccc0d23SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
28ccc0d23SEmmanuel Vadot%YAML 1.2
38ccc0d23SEmmanuel Vadot---
48ccc0d23SEmmanuel Vadot$id: http://devicetree.org/schemas/rng/rockchip,rk3588-rng.yaml#
58ccc0d23SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
68ccc0d23SEmmanuel Vadot
7*ae5de77eSEmmanuel Vadottitle: Rockchip RK3576/RK3588 TRNG
88ccc0d23SEmmanuel Vadot
9*ae5de77eSEmmanuel Vadotdescription: True Random Number Generator on Rockchip RK3576/RK3588 SoCs
108ccc0d23SEmmanuel Vadot
118ccc0d23SEmmanuel Vadotmaintainers:
128ccc0d23SEmmanuel Vadot  - Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
138ccc0d23SEmmanuel Vadot
148ccc0d23SEmmanuel Vadotproperties:
158ccc0d23SEmmanuel Vadot  compatible:
168ccc0d23SEmmanuel Vadot    enum:
17*ae5de77eSEmmanuel Vadot      - rockchip,rk3576-rng
188ccc0d23SEmmanuel Vadot      - rockchip,rk3588-rng
198ccc0d23SEmmanuel Vadot
208ccc0d23SEmmanuel Vadot  reg:
218ccc0d23SEmmanuel Vadot    maxItems: 1
228ccc0d23SEmmanuel Vadot
238ccc0d23SEmmanuel Vadot  clocks:
248ccc0d23SEmmanuel Vadot    items:
258ccc0d23SEmmanuel Vadot      - description: TRNG AHB clock
268ccc0d23SEmmanuel Vadot
278ccc0d23SEmmanuel Vadot  interrupts:
288ccc0d23SEmmanuel Vadot    maxItems: 1
298ccc0d23SEmmanuel Vadot
308ccc0d23SEmmanuel Vadot  resets:
318ccc0d23SEmmanuel Vadot    maxItems: 1
328ccc0d23SEmmanuel Vadot
338ccc0d23SEmmanuel Vadotrequired:
348ccc0d23SEmmanuel Vadot  - compatible
358ccc0d23SEmmanuel Vadot  - reg
368ccc0d23SEmmanuel Vadot  - clocks
378ccc0d23SEmmanuel Vadot  - interrupts
388ccc0d23SEmmanuel Vadot
398ccc0d23SEmmanuel VadotadditionalProperties: false
408ccc0d23SEmmanuel Vadot
418ccc0d23SEmmanuel Vadotexamples:
428ccc0d23SEmmanuel Vadot  - |
438ccc0d23SEmmanuel Vadot    #include <dt-bindings/clock/rockchip,rk3588-cru.h>
448ccc0d23SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
458ccc0d23SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
468ccc0d23SEmmanuel Vadot    #include <dt-bindings/reset/rockchip,rk3588-cru.h>
478ccc0d23SEmmanuel Vadot    bus {
488ccc0d23SEmmanuel Vadot      #address-cells = <2>;
498ccc0d23SEmmanuel Vadot      #size-cells = <2>;
508ccc0d23SEmmanuel Vadot
518ccc0d23SEmmanuel Vadot      rng@fe378000 {
528ccc0d23SEmmanuel Vadot        compatible = "rockchip,rk3588-rng";
538ccc0d23SEmmanuel Vadot        reg = <0x0 0xfe378000 0x0 0x200>;
548ccc0d23SEmmanuel Vadot        interrupts = <GIC_SPI 400 IRQ_TYPE_LEVEL_HIGH 0>;
558ccc0d23SEmmanuel Vadot        clocks = <&scmi_clk SCMI_HCLK_SECURE_NS>;
568ccc0d23SEmmanuel Vadot        resets = <&scmi_reset SCMI_SRST_H_TRNG_NS>;
578ccc0d23SEmmanuel Vadot      };
588ccc0d23SEmmanuel Vadot    };
598ccc0d23SEmmanuel Vadot
608ccc0d23SEmmanuel Vadot...
61