1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/crypto/allwinner,sun4i-a10-crypto.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Allwinner A10 Security System
8
9maintainers:
10  - Chen-Yu Tsai <wens@csie.org>
11  - Maxime Ripard <mripard@kernel.org>
12
13properties:
14  compatible:
15    oneOf:
16      - const: allwinner,sun4i-a10-crypto
17      - items:
18          - const: allwinner,sun5i-a13-crypto
19          - const: allwinner,sun4i-a10-crypto
20      - items:
21          - const: allwinner,sun6i-a31-crypto
22          - const: allwinner,sun4i-a10-crypto
23      - items:
24          - const: allwinner,sun7i-a20-crypto
25          - const: allwinner,sun4i-a10-crypto
26      - const: allwinner,sun8i-a33-crypto
27      - items:
28          - const: allwinner,sun8i-v3s-crypto
29          - const: allwinner,sun8i-a33-crypto
30
31  reg:
32    maxItems: 1
33
34  interrupts:
35    maxItems: 1
36
37  clocks:
38    items:
39      - description: Bus Clock
40      - description: Module Clock
41
42  clock-names:
43    items:
44      - const: ahb
45      - const: mod
46
47  dmas:
48    items:
49      - description: RX DMA Channel
50      - description: TX DMA Channel
51
52  dma-names:
53    items:
54      - const: rx
55      - const: tx
56
57  resets:
58    maxItems: 1
59
60  reset-names:
61    const: ahb
62
63required:
64  - compatible
65  - reg
66  - interrupts
67  - clocks
68  - clock-names
69
70if:
71  properties:
72    compatible:
73      contains:
74        enum:
75          - allwinner,sun6i-a31-crypto
76          - allwinner,sun8i-a33-crypto
77
78then:
79  required:
80    - resets
81    - reset-names
82
83additionalProperties: false
84
85examples:
86  - |
87    crypto: crypto-engine@1c15000 {
88      compatible = "allwinner,sun4i-a10-crypto";
89      reg = <0x01c15000 0x1000>;
90      interrupts = <86>;
91      clocks = <&ahb_gates 5>, <&ss_clk>;
92      clock-names = "ahb", "mod";
93    };
94
95...
96