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/crypto/ti,sa2ul.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: K3 SoC SA2UL crypto module
0008 
0009 maintainers:
0010   - Tero Kristo <t-kristo@ti.com>
0011 
0012 properties:
0013   compatible:
0014     enum:
0015       - ti,j721e-sa2ul
0016       - ti,am654-sa2ul
0017       - ti,am64-sa2ul
0018       - ti,am62-sa3ul
0019 
0020   reg:
0021     maxItems: 1
0022 
0023   power-domains:
0024     maxItems: 1
0025 
0026   dmas:
0027     items:
0028       - description: TX DMA Channel
0029       - description: RX DMA Channel #1
0030       - description: RX DMA Channel #2
0031 
0032   dma-names:
0033     items:
0034       - const: tx
0035       - const: rx1
0036       - const: rx2
0037 
0038   dma-coherent: true
0039 
0040   "#address-cells":
0041     const: 2
0042 
0043   "#size-cells":
0044     const: 2
0045 
0046   ranges:
0047     description:
0048       Address translation for the possible RNG child node for SA2UL
0049 
0050   clocks:
0051     items:
0052       - description: Clock used by PKA
0053       - description: Main Input Clock
0054       - description: Clock used by rng
0055 
0056   clock-names:
0057     items:
0058       - const: pka_in_clk
0059       - const: x1_clk
0060       - const: x2_clk
0061 
0062 patternProperties:
0063   "^rng@[a-f0-9]+$":
0064     type: object
0065     description:
0066       Child RNG node for SA2UL
0067 
0068 required:
0069   - compatible
0070   - reg
0071   - power-domains
0072   - dmas
0073   - dma-names
0074 
0075 if:
0076   properties:
0077     compatible:
0078       enum:
0079         - ti,j721e-sa2ul
0080         - ti,am654-sa2ul
0081 then:
0082   required:
0083     - dma-coherent
0084 
0085 additionalProperties: false
0086 
0087 examples:
0088   - |
0089     #include <dt-bindings/soc/ti,sci_pm_domain.h>
0090 
0091     main_crypto: crypto@4e00000 {
0092         compatible = "ti,j721e-sa2ul";
0093         reg = <0x4e00000 0x1200>;
0094         power-domains = <&k3_pds 264 TI_SCI_PD_EXCLUSIVE>;
0095         dmas = <&main_udmap 0xc000>, <&main_udmap 0x4000>,
0096                <&main_udmap 0x4001>;
0097         dma-names = "tx", "rx1", "rx2";
0098         dma-coherent;
0099     };