1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/rng/st,stm32-rng.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: STMicroelectronics STM32 RNG
8
9description: |
10  The STM32 hardware random number generator is a simple fixed purpose
11  IP and is fully separated from other crypto functions.
12
13maintainers:
14  - Lionel Debieve <lionel.debieve@foss.st.com>
15
16properties:
17  compatible:
18    const: st,stm32-rng
19
20  reg:
21    maxItems: 1
22
23  clocks:
24    maxItems: 1
25
26  resets:
27    maxItems: 1
28
29  clock-error-detect:
30    type: boolean
31    description: If set enable the clock detection management
32
33required:
34  - compatible
35  - reg
36  - clocks
37
38additionalProperties: false
39
40examples:
41  - |
42    #include <dt-bindings/clock/stm32mp1-clks.h>
43    rng@54003000 {
44      compatible = "st,stm32-rng";
45      reg = <0x54003000 0x400>;
46      clocks = <&rcc RNG1_K>;
47    };
48
49...
50