xref: /freebsd/sys/contrib/device-tree/Bindings/crypto/ti,sa2ul.yaml (revision 5def4c47d4bd90b209b9b4a4ba9faec15846d8fd)
1# SPDX-License-Identifier: (GPL-2.0-only or BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/crypto/ti,sa2ul.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: K3 SoC SA2UL crypto module
8
9maintainers:
10  - Tero Kristo <t-kristo@ti.com>
11
12properties:
13  compatible:
14    enum:
15      - ti,j721e-sa2ul
16      - ti,am654-sa2ul
17
18  reg:
19    maxItems: 1
20
21  power-domains:
22    maxItems: 1
23
24  dmas:
25    items:
26      - description: TX DMA Channel
27      - description: RX DMA Channel #1
28      - description: RX DMA Channel #2
29
30  dma-names:
31    items:
32      - const: tx
33      - const: rx1
34      - const: rx2
35
36  dma-coherent: true
37
38  "#address-cells":
39    const: 2
40
41  "#size-cells":
42    const: 2
43
44  ranges:
45    description:
46      Address translation for the possible RNG child node for SA2UL
47
48patternProperties:
49  "^rng@[a-f0-9]+$":
50    type: object
51    description:
52      Child RNG node for SA2UL
53
54required:
55  - compatible
56  - reg
57  - power-domains
58  - dmas
59  - dma-names
60  - dma-coherent
61
62additionalProperties: false
63
64examples:
65  - |
66    #include <dt-bindings/soc/ti,sci_pm_domain.h>
67
68    main_crypto: crypto@4e00000 {
69        compatible = "ti,j721e-sa2ul";
70        reg = <0x4e00000 0x1200>;
71        power-domains = <&k3_pds 264 TI_SCI_PD_EXCLUSIVE>;
72        dmas = <&main_udmap 0xc000>, <&main_udmap 0x4000>,
73               <&main_udmap 0x4001>;
74        dma-names = "tx", "rx1", "rx2";
75        dma-coherent;
76    };
77