| 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 |
|
| 7 |
title: Qualcomm Pseudo Random Number Generator |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Vinod Koul <[email protected]> |
| 11 |
|
| 12 |
properties: |
| 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,milos-trng |
| 25 |
- qcom,qcs615-trng |
| 26 |
- qcom,qcs8300-trng |
| 27 |
- qcom,sa8255p-trng |
| 28 |
- qcom,sa8775p-trng |
| 29 |
- qcom,sc7280-trng |
| 30 |
- qcom,sm8450-trng |
| 31 |
- qcom,sm8550-trng |
| 32 |
- qcom,sm8650-trng |
| 33 |
- qcom,sm8750-trng |
| 34 |
- qcom,x1e80100-trng |
| 35 |
- const: qcom,trng |
| 36 |
|
| 37 |
reg: |
| 38 |
maxItems: 1 |
| 39 |
|
| 40 |
clocks: |
| 41 |
maxItems: 1 |
| 42 |
|
| 43 |
clock-names: |
| 44 |
items: |
| 45 |
- const: core |
| 46 |
|
| 47 |
required: |
| 48 |
- compatible |
| 49 |
- reg |
| 50 |
|
| 51 |
allOf: |
| 52 |
- if: |
| 53 |
not: |
| 54 |
properties: |
| 55 |
compatible: |
| 56 |
contains: |
| 57 |
const: qcom,trng |
| 58 |
then: |
| 59 |
required: |
| 60 |
- clocks |
| 61 |
- clock-names |
| 62 |
|
| 63 |
additionalProperties: false |
| 64 |
|
| 65 |
examples: |
| 66 |
- | |
| 67 |
rng@f9bff000 { |
| 68 |
compatible = "qcom,prng"; |
| 69 |
reg = <0xf9bff000 0x200>; |
| 70 |
clocks = <&clk 125>; |
| 71 |
clock-names = "core"; |
| 72 |
}; |