Commit 166c83f7 authored by Kael D'Alcamo's avatar Kael D'Alcamo Committed by Herbert Xu
Browse files

dt-bindings: rng: hisi-rng: convert to DT schema



Convert the Devicetree binding documentation for hisilicon,hip04-rng
and hisilicon,hip05-rng from plain text to YAML.

Signed-off-by: default avatarKael D'Alcamo <dev@kael-k.io>
Reviewed-by: default avatarRob Herring (Arm) <robh@kernel.org>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 298ced6c
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
Hisilicon Random Number Generator

Required properties:
- compatible : Should be "hisilicon,hip04-rng" or "hisilicon,hip05-rng"
- reg : Offset and length of the register set of this block

Example:

rng@d1010000 {
	compatible = "hisilicon,hip05-rng";
	reg = <0xd1010000 0x100>;
};
+32 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/rng/hisi-rng.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Hisilicon Random Number Generator

maintainers:
  - Kefeng Wang <wangkefeng.wang@huawei>

properties:
  compatible:
    enum:
      - hisilicon,hip04-rng
      - hisilicon,hip05-rng

  reg:
    maxItems: 1

required:
  - compatible
  - reg

additionalProperties: false

examples:
  - |
    rng@d1010000 {
      compatible = "hisilicon,hip05-rng";
      reg = <0xd1010000 0x100>;
    };