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 - const: qcom,sm8450-prng-ee 20 - const: qcom,prng-ee 21 22 reg: 23 maxItems: 1 24 25 clocks: 26 maxItems: 1 27 28 clock-names: 29 items: 30 - const: core 31 32required: 33 - compatible 34 - reg 35 36allOf: 37 - if: 38 not: 39 properties: 40 compatible: 41 contains: 42 const: qcom,sm8450-prng-ee 43 then: 44 required: 45 - clocks 46 - clock-names 47 48additionalProperties: false 49 50examples: 51 - | 52 rng@f9bff000 { 53 compatible = "qcom,prng"; 54 reg = <0xf9bff000 0x200>; 55 clocks = <&clk 125>; 56 clock-names = "core"; 57 }; 58