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 RK3576/RK3588 TRNG 8 9description: True Random Number Generator on Rockchip RK3576/RK3588 SoCs 10 11maintainers: 12 - Nicolas Frattaroli <nicolas.frattaroli@collabora.com> 13 14properties: 15 compatible: 16 enum: 17 - rockchip,rk3576-rng 18 - rockchip,rk3588-rng 19 20 reg: 21 maxItems: 1 22 23 clocks: 24 items: 25 - description: TRNG AHB clock 26 27 interrupts: 28 maxItems: 1 29 30 resets: 31 maxItems: 1 32 33required: 34 - compatible 35 - reg 36 - clocks 37 - interrupts 38 39additionalProperties: false 40 41examples: 42 - | 43 #include <dt-bindings/clock/rockchip,rk3588-cru.h> 44 #include <dt-bindings/interrupt-controller/arm-gic.h> 45 #include <dt-bindings/interrupt-controller/irq.h> 46 #include <dt-bindings/reset/rockchip,rk3588-cru.h> 47 bus { 48 #address-cells = <2>; 49 #size-cells = <2>; 50 51 rng@fe378000 { 52 compatible = "rockchip,rk3588-rng"; 53 reg = <0x0 0xfe378000 0x0 0x200>; 54 interrupts = <GIC_SPI 400 IRQ_TYPE_LEVEL_HIGH 0>; 55 clocks = <&scmi_clk SCMI_HCLK_SECURE_NS>; 56 resets = <&scmi_reset SCMI_SRST_H_TRNG_NS>; 57 }; 58 }; 59 60... 61