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