Files
android_kernel_samsung_sm87…/bindings/crypto/qcom,prng.yaml
Nageswara reddy Karnati c5abe41755 dt-bindings: Add dt binding for qrng
Addition of dt binding compatible string for qring node.

Change-Id: I875d10955ed7563b07ecc9b9d1980f8bbf0fe3c8
Signed-off-by: Nageswara reddy Karnati <quic_nkarnati@quicinc.com>
2024-06-07 03:31:18 -07:00

60 lines
1.0 KiB
YAML

# SPDX-License-Identifier: GPL-2.0-only
%YAML 1.2
---
$id: http://devicetree.org/schemas/crypto/qcom,prng.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Qualcomm Pseudo Random Number Generator
maintainers:
- Vinod Koul <vkoul@kernel.org>
properties:
compatible:
oneOf:
- enum:
- qcom,prng # 8916 etc.
- qcom,prng-ee # 8996 and later using EE
- qcom,msm-rng # parrot
- items:
- enum:
- qcom,sm8450-trng
- const: qcom,trng
reg:
maxItems: 1
clocks:
maxItems: 1
clock-names:
items:
- const: core
required:
- compatible
- reg
allOf:
- if:
not:
properties:
compatible:
contains:
const: qcom,trng
then:
required:
- clocks
- clock-names
additionalProperties: false
examples:
- |
rng@f9bff000 {
compatible = "qcom,prng";
reg = <0xf9bff000 0x200>;
clocks = <&clk 125>;
clock-names = "core";
};