xref: /freebsd/sys/contrib/device-tree/Bindings/rng/timeriomem_rng.yaml (revision c9ccf3a32da427475985b85d7df023ccfb138c27)
1e67e8565SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only
2e67e8565SEmmanuel Vadot%YAML 1.2
3e67e8565SEmmanuel Vadot---
4e67e8565SEmmanuel Vadot$id: http://devicetree.org/schemas/rng/timeriomem_rng.yaml#
5e67e8565SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6e67e8565SEmmanuel Vadot
7e67e8565SEmmanuel Vadottitle: TimerIO Random Number Generator
8e67e8565SEmmanuel Vadot
9e67e8565SEmmanuel Vadotmaintainers:
10*c9ccf3a3SEmmanuel Vadot  - Krzysztof Kozlowski <krzk@kernel.org>
11e67e8565SEmmanuel Vadot
12e67e8565SEmmanuel Vadotproperties:
13e67e8565SEmmanuel Vadot  compatible:
14e67e8565SEmmanuel Vadot    const: timeriomem_rng
15e67e8565SEmmanuel Vadot
16e67e8565SEmmanuel Vadot  period:
17e67e8565SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
18e67e8565SEmmanuel Vadot    description: wait time in microseconds to use between samples
19e67e8565SEmmanuel Vadot
20e67e8565SEmmanuel Vadot  quality:
21e67e8565SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
22e67e8565SEmmanuel Vadot    default: 0
23e67e8565SEmmanuel Vadot    description:
24e67e8565SEmmanuel Vadot      Estimated number of bits of true entropy per 1024 bits read from the rng.
25e67e8565SEmmanuel Vadot      Defaults to zero which causes the kernel's default quality to be used
26e67e8565SEmmanuel Vadot      instead.  Note that the default quality is usually zero which disables
27e67e8565SEmmanuel Vadot      using this rng to automatically fill the kernel's entropy pool.
28e67e8565SEmmanuel Vadot
29e67e8565SEmmanuel Vadot  reg:
30e67e8565SEmmanuel Vadot    maxItems: 1
31e67e8565SEmmanuel Vadot    description:
32e67e8565SEmmanuel Vadot      Base address to sample from. Currently 'reg' must be at least four bytes
33e67e8565SEmmanuel Vadot      wide and 32-bit aligned.
34e67e8565SEmmanuel Vadot
35e67e8565SEmmanuel Vadotrequired:
36e67e8565SEmmanuel Vadot  - compatible
37e67e8565SEmmanuel Vadot  - period
38e67e8565SEmmanuel Vadot  - reg
39e67e8565SEmmanuel Vadot
40e67e8565SEmmanuel VadotadditionalProperties: false
41e67e8565SEmmanuel Vadot
42e67e8565SEmmanuel Vadotexamples:
43e67e8565SEmmanuel Vadot  - |
44e67e8565SEmmanuel Vadot    rng@44 {
45e67e8565SEmmanuel Vadot        compatible = "timeriomem_rng";
46e67e8565SEmmanuel Vadot        reg = <0x44 0x04>;
47e67e8565SEmmanuel Vadot        period = <1000000>;
48e67e8565SEmmanuel Vadot    };
49