xref: /linux/Documentation/devicetree/bindings/crypto/qcom,prng.yaml (revision 6f7e6393d1ce636bb7ec77a7fe7b77458fddf701)
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,ipq5332-trng
21              - qcom,ipq5424-trng
22              - qcom,ipq9574-trng
23              - qcom,kaanapali-trng
24              - qcom,qcs615-trng
25              - qcom,qcs8300-trng
26              - qcom,sa8255p-trng
27              - qcom,sa8775p-trng
28              - qcom,sc7280-trng
29              - qcom,sm8450-trng
30              - qcom,sm8550-trng
31              - qcom,sm8650-trng
32              - qcom,sm8750-trng
33              - qcom,x1e80100-trng
34          - const: qcom,trng
35
36  reg:
37    maxItems: 1
38
39  clocks:
40    maxItems: 1
41
42  clock-names:
43    items:
44      - const: core
45
46required:
47  - compatible
48  - reg
49
50allOf:
51  - if:
52      not:
53        properties:
54          compatible:
55            contains:
56              const: qcom,trng
57    then:
58      required:
59        - clocks
60        - clock-names
61
62additionalProperties: false
63
64examples:
65  - |
66    rng@f9bff000 {
67        compatible = "qcom,prng";
68        reg = <0xf9bff000 0x200>;
69        clocks = <&clk 125>;
70        clock-names = "core";
71    };
72