| 1 |
|
| 2 |
%YAML 1.2 |
| 3 |
--- |
| 4 |
$id: http://devicetree.org/schemas/rng/samsung,exynos5250-trng.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: Samsung Exynos SoC True Random Number Generator |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Krzysztof Kozlowski <[email protected]> |
| 11 |
- Ćukasz Stelmach <[email protected]> |
| 12 |
|
| 13 |
properties: |
| 14 |
compatible: |
| 15 |
oneOf: |
| 16 |
- enum: |
| 17 |
- samsung,exynos5250-trng |
| 18 |
- samsung,exynos850-trng |
| 19 |
- items: |
| 20 |
- const: google,gs101-trng |
| 21 |
- const: samsung,exynos850-trng |
| 22 |
|
| 23 |
clocks: |
| 24 |
minItems: 1 |
| 25 |
maxItems: 2 |
| 26 |
|
| 27 |
clock-names: |
| 28 |
minItems: 1 |
| 29 |
maxItems: 2 |
| 30 |
|
| 31 |
power-domains: |
| 32 |
maxItems: 1 |
| 33 |
|
| 34 |
reg: |
| 35 |
maxItems: 1 |
| 36 |
|
| 37 |
required: |
| 38 |
- compatible |
| 39 |
- clocks |
| 40 |
- clock-names |
| 41 |
- reg |
| 42 |
|
| 43 |
allOf: |
| 44 |
- if: |
| 45 |
properties: |
| 46 |
compatible: |
| 47 |
contains: |
| 48 |
const: samsung,exynos850-trng |
| 49 |
|
| 50 |
then: |
| 51 |
properties: |
| 52 |
clocks: |
| 53 |
items: |
| 54 |
- description: SSS (Security Sub System) operating clock |
| 55 |
- description: SSS (Security Sub System) bus clock |
| 56 |
|
| 57 |
clock-names: |
| 58 |
items: |
| 59 |
- const: secss |
| 60 |
- const: pclk |
| 61 |
|
| 62 |
else: |
| 63 |
properties: |
| 64 |
clocks: |
| 65 |
items: |
| 66 |
- description: SSS (Security Sub System) operating clock |
| 67 |
|
| 68 |
clock-names: |
| 69 |
items: |
| 70 |
- const: secss |
| 71 |
|
| 72 |
additionalProperties: false |
| 73 |
|
| 74 |
examples: |
| 75 |
- | |
| 76 |
#include <dt-bindings/clock/exynos5250.h> |
| 77 |
|
| 78 |
rng@10830600 { |
| 79 |
compatible = "samsung,exynos5250-trng"; |
| 80 |
reg = <0x10830600 0x100>; |
| 81 |
clocks = <&clock CLK_SSS>; |
| 82 |
clock-names = "secss"; |
| 83 |
}; |