Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/rng/brcm,bcm2835.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: BCM2835/6368 Random number generator
0008 
0009 maintainers:
0010   - Stefan Wahren <stefan.wahren@i2se.com>
0011   - Florian Fainelli <f.fainelli@gmail.com>
0012   - Herbert Xu <herbert@gondor.apana.org.au>
0013 
0014 properties:
0015   compatible:
0016     enum:
0017       - brcm,bcm2835-rng
0018       - brcm,bcm-nsp-rng
0019       - brcm,bcm5301x-rng
0020       - brcm,bcm6368-rng
0021 
0022   reg:
0023     maxItems: 1
0024 
0025   clocks:
0026     maxItems: 1
0027 
0028   clock-names:
0029     const: ipsec
0030 
0031   resets:
0032     maxItems: 1
0033 
0034   reset-names:
0035     const: ipsec
0036 
0037   interrupts:
0038     maxItems: 1
0039 
0040 required:
0041   - compatible
0042   - reg
0043 
0044 if:
0045   properties:
0046     compatible:
0047       enum:
0048         - brcm,bcm6368-rng
0049 then:
0050   required:
0051     - clocks
0052     - clock-names
0053     - resets
0054     - reset-names
0055 
0056 additionalProperties: false
0057 
0058 examples:
0059   - |
0060     rng@7e104000 {
0061         compatible = "brcm,bcm2835-rng";
0062         reg = <0x7e104000 0x10>;
0063         interrupts = <2 29>;
0064     };
0065 
0066   - |
0067     rng@18033000 {
0068         compatible = "brcm,bcm-nsp-rng";
0069         reg = <0x18033000 0x14>;
0070     };
0071 
0072   - |
0073     rng@10004180 {
0074         compatible = "brcm,bcm6368-rng";
0075         reg = <0x10004180 0x14>;
0076 
0077         clocks = <&periph_clk 18>;
0078         clock-names = "ipsec";
0079 
0080         resets = <&periph_rst 4>;
0081         reset-names = "ipsec";
0082     };