Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 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 | $ref: /schemas/types.yaml#/definitions/uint32-array |
| 32 | maxItems: 4 |
| 33 | |
| 34 | clocks: |
| 35 | maxItems: 1 |
| 36 | |
| 37 | required: |
| 38 | - compatible |
| 39 | - interrupts |
| 40 | - reg |
| 41 | - arm,rosc-ratio |
| 42 | |
| 43 | additionalProperties: false |
| 44 | |
| 45 | examples: |
| 46 | - | |
| 47 | arm_cctrng: rng@60000000 { |
| 48 | compatible = "arm,cryptocell-713-trng"; |
| 49 | interrupts = <0 29 4>; |
| 50 | reg = <0x60000000 0x10000>; |
| 51 | arm,rosc-ratio = <5000 1000 500 0>; |
| 52 | }; |