xref: /linux/Documentation/devicetree/bindings/crypto/qcom,prng.yaml (revision 4dc44aec28c8ecc6744d02c8d7d68bf0a8d59891)
1# SPDX-License-Identifier: GPL-2.0-only
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/crypto/qcom,prng.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Qualcomm Pseudo Random Number Generator
8
9maintainers:
10  - Vinod Koul <vkoul@kernel.org>
11
12properties:
13  compatible:
14    oneOf:
15      - enum:
16          - qcom,prng  # 8916 etc.
17          - qcom,prng-ee  # 8996 and later using EE
18      - items:
19          - enum:
20              - qcom,sm8450-trng
21              - qcom,sm8550-trng
22          - const: qcom,trng
23
24  reg:
25    maxItems: 1
26
27  clocks:
28    maxItems: 1
29
30  clock-names:
31    items:
32      - const: core
33
34required:
35  - compatible
36  - reg
37
38allOf:
39  - if:
40      not:
41        properties:
42          compatible:
43            contains:
44              const: qcom,trng
45    then:
46      required:
47        - clocks
48        - clock-names
49
50additionalProperties: false
51
52examples:
53  - |
54    rng@f9bff000 {
55        compatible = "qcom,prng";
56        reg = <0xf9bff000 0x200>;
57        clocks = <&clk 125>;
58        clock-names = "core";
59    };
60