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