diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> | 2021-12-27 19:32:51 +0100 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2022-01-05 07:31:41 -0600 |
commit | 8ba694e5b7fb5c9b516e59ef9cc6978a7de81b21 (patch) | |
tree | 3718d2e478912ed3a08f0db0da58c9484a2daafe /Documentation/devicetree/bindings/rng/timeriomem_rng.yaml | |
parent | fb13b5babb97f182b6d61bf4efc9ccf8ed4b1270 (diff) |
dt-bindings: rng: timeriomem_rng: convert TimerIO RNG to dtschema
Convert the TimerIO RNG bindings to DT schema.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20211227183251.132525-8-krzysztof.kozlowski@canonical.com
Diffstat (limited to 'Documentation/devicetree/bindings/rng/timeriomem_rng.yaml')
-rw-r--r-- | Documentation/devicetree/bindings/rng/timeriomem_rng.yaml | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/rng/timeriomem_rng.yaml b/Documentation/devicetree/bindings/rng/timeriomem_rng.yaml new file mode 100644 index 000000000000..84bf518a5549 --- /dev/null +++ b/Documentation/devicetree/bindings/rng/timeriomem_rng.yaml @@ -0,0 +1,48 @@ +# SPDX-License-Identifier: GPL-2.0-only +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rng/timeriomem_rng.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TimerIO Random Number Generator + +maintainers: + - Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> + +properties: + compatible: + const: timeriomem_rng + + period: + $ref: /schemas/types.yaml#/definitions/uint32 + description: wait time in microseconds to use between samples + + quality: + $ref: /schemas/types.yaml#/definitions/uint32 + default: 0 + description: + Estimated number of bits of true entropy per 1024 bits read from the rng. + Defaults to zero which causes the kernel's default quality to be used + instead. Note that the default quality is usually zero which disables + using this rng to automatically fill the kernel's entropy pool. + + reg: + maxItems: 1 + description: + Base address to sample from. Currently 'reg' must be at least four bytes + wide and 32-bit aligned. + +required: + - compatible + - period + - reg + +additionalProperties: false + +examples: + - | + rng@44 { + compatible = "timeriomem_rng"; + reg = <0x44 0x04>; + period = <1000000>; + }; |