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