Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/rng/omap_rng.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: OMAP SoC and Inside-Secure HWRNG Module
0008 
0009 maintainers:
0010   - Jayesh Choudhary <j-choudhary@ti.com>
0011 
0012 properties:
0013   compatible:
0014     enum:
0015       - ti,omap2-rng
0016       - ti,omap4-rng
0017       - inside-secure,safexcel-eip76
0018 
0019   ti,hwmods:
0020     const: rng
0021     deprecated: true
0022     description: Name of the hwmod associated with the RNG module
0023 
0024   reg:
0025     maxItems: 1
0026 
0027   interrupts:
0028     maxItems: 1
0029 
0030   clocks:
0031     minItems: 1
0032     items:
0033       - description: EIP150 gatable clock
0034       - description: Main gatable clock
0035 
0036   clock-names:
0037     minItems: 1
0038     items:
0039       - const: core
0040       - const: reg
0041 
0042 
0043 allOf:
0044   - if:
0045       properties:
0046         compatible:
0047           contains:
0048             enum:
0049               - ti,omap4-rng
0050               - inside-secure,safexcel-eip76
0051 
0052     then:
0053       required:
0054         - interrupts
0055 
0056   - if:
0057       properties:
0058         compatible:
0059           contains:
0060             enum:
0061               - inside-secure,safexcel-eip76
0062 
0063     then:
0064       required:
0065         - clocks
0066 
0067 
0068 required:
0069   - compatible
0070   - reg
0071 
0072 additionalProperties: false
0073 
0074 examples:
0075   - |
0076     /* AM335x */
0077     rng: rng@48310000 {
0078             compatible = "ti,omap4-rng";
0079             ti,hwmods = "rng";
0080             reg = <0x48310000 0x2000>;
0081             interrupts = <111>;
0082     };
0083   - |
0084     /* SafeXcel IP-76 */
0085     trng: rng@f2760000 {
0086             compatible = "inside-secure,safexcel-eip76";
0087             reg = <0xf2760000 0x7d>;
0088             interrupts = <0 59 4>;
0089             clocks = <&cpm_syscon0 1 25>;
0090     };
0091 
0092 ...