Skip to content

Commit

Permalink
dt-bindings: rng: timeriomem_rng: convert TimerIO RNG to dtschema
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Krzysztof Kozlowski authored and Rob Herring committed Jan 5, 2022
1 parent fb13b5b commit 8ba694e
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 25 deletions.
25 changes: 0 additions & 25 deletions Documentation/devicetree/bindings/rng/timeriomem_rng.txt

This file was deleted.

48 changes: 48 additions & 0 deletions Documentation/devicetree/bindings/rng/timeriomem_rng.yaml
Original file line number Diff line number Diff line change
@@ -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>;
};

0 comments on commit 8ba694e

Please sign in to comment.