Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: add device tree binding for Arm CryptoCell trng engine

The Arm CryptoCell is a hardware security engine. This patch adds DT
bindings for its TRNG (True Random Number Generator) engine.

Signed-off-by: Hadar Gat <hadar.gat@arm.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Hadar Gat and committed by
Herbert Xu
ffb57daa 55b3209a

+54
+54
Documentation/devicetree/bindings/rng/arm-cctrng.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/rng/arm-cctrng.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Arm TrustZone CryptoCell TRNG engine 8 + 9 + maintainers: 10 + - Hadar Gat <hadar.gat@arm.com> 11 + 12 + description: |+ 13 + Arm TrustZone CryptoCell TRNG (True Random Number Generator) engine. 14 + 15 + properties: 16 + compatible: 17 + enum: 18 + - arm,cryptocell-713-trng 19 + - arm,cryptocell-703-trng 20 + 21 + interrupts: 22 + maxItems: 1 23 + 24 + reg: 25 + maxItems: 1 26 + 27 + arm,rosc-ratio: 28 + description: 29 + Arm TrustZone CryptoCell TRNG engine has 4 ring oscillators. 30 + Sampling ratio values for these 4 ring oscillators. (from calibration) 31 + allOf: 32 + - $ref: /schemas/types.yaml#/definitions/uint32-array 33 + - items: 34 + maxItems: 4 35 + 36 + clocks: 37 + maxItems: 1 38 + 39 + required: 40 + - compatible 41 + - interrupts 42 + - reg 43 + - arm,rosc-ratio 44 + 45 + additionalProperties: false 46 + 47 + examples: 48 + - | 49 + arm_cctrng: rng@60000000 { 50 + compatible = "arm,cryptocell-713-trng"; 51 + interrupts = <0 29 4>; 52 + reg = <0x60000000 0x10000>; 53 + arm,rosc-ratio = <5000 1000 500 0>; 54 + };