Skip to content

Commit 166c83f

Browse files
kael-kherbertx
authored andcommitted
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: Kael D'Alcamo <dev@kael-k.io> Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent 298ced6 commit 166c83f

2 files changed

Lines changed: 32 additions & 12 deletions

File tree

Documentation/devicetree/bindings/rng/hisi-rng.txt

Lines changed: 0 additions & 12 deletions
This file was deleted.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/rng/hisi-rng.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Hisilicon Random Number Generator
8+
9+
maintainers:
10+
- Kefeng Wang <wangkefeng.wang@huawei>
11+
12+
properties:
13+
compatible:
14+
enum:
15+
- hisilicon,hip04-rng
16+
- hisilicon,hip05-rng
17+
18+
reg:
19+
maxItems: 1
20+
21+
required:
22+
- compatible
23+
- reg
24+
25+
additionalProperties: false
26+
27+
examples:
28+
- |
29+
rng@d1010000 {
30+
compatible = "hisilicon,hip05-rng";
31+
reg = <0xd1010000 0x100>;
32+
};

0 commit comments

Comments
 (0)