diff options
author | Emmanuel Vadot <manu@FreeBSD.org> | 2022-08-10 12:25:35 +0000 |
---|---|---|
committer | Emmanuel Vadot <manu@FreeBSD.org> | 2022-08-10 12:25:35 +0000 |
commit | dec44e532c3bba72c68af7337d74712dd9540aee (patch) | |
tree | e6765e5fa7dba1526e5cc5fd089d6a3233e713a4 /Bindings/rng/omap_rng.yaml | |
parent | 1769b8f3a9ff2d1e1505e0a66027a5493fe30c52 (diff) | |
download | src-dec44e532c3bba72c68af7337d74712dd9540aee.tar.gz src-dec44e532c3bba72c68af7337d74712dd9540aee.zip |
Diffstat (limited to 'Bindings/rng/omap_rng.yaml')
-rw-r--r-- | Bindings/rng/omap_rng.yaml | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/Bindings/rng/omap_rng.yaml b/Bindings/rng/omap_rng.yaml new file mode 100644 index 000000000000..010188cdbec8 --- /dev/null +++ b/Bindings/rng/omap_rng.yaml @@ -0,0 +1,92 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rng/omap_rng.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: OMAP SoC and Inside-Secure HWRNG Module + +maintainers: + - Jayesh Choudhary <j-choudhary@ti.com> + +properties: + compatible: + enum: + - ti,omap2-rng + - ti,omap4-rng + - inside-secure,safexcel-eip76 + + ti,hwmods: + const: rng + deprecated: true + description: Name of the hwmod associated with the RNG module + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + minItems: 1 + items: + - description: EIP150 gatable clock + - description: Main gatable clock + + clock-names: + minItems: 1 + items: + - const: core + - const: reg + + +allOf: + - if: + properties: + compatible: + contains: + enum: + - ti,omap4-rng + - inside-secure,safexcel-eip76 + + then: + required: + - interrupts + + - if: + properties: + compatible: + contains: + enum: + - inside-secure,safexcel-eip76 + + then: + required: + - clocks + + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + /* AM335x */ + rng: rng@48310000 { + compatible = "ti,omap4-rng"; + ti,hwmods = "rng"; + reg = <0x48310000 0x2000>; + interrupts = <111>; + }; + - | + /* SafeXcel IP-76 */ + trng: rng@f2760000 { + compatible = "inside-secure,safexcel-eip76"; + reg = <0xf2760000 0x7d>; + interrupts = <0 59 4>; + clocks = <&cpm_syscon0 1 25>; + }; + +... |