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 Device Tree Bindings
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      - items:
27        - const: allwinner,sun8i-a33-crypto
28
29  reg:
30    maxItems: 1
31
32  interrupts:
33    maxItems: 1
34
35  clocks:
36    items:
37      - description: Bus Clock
38      - description: Module Clock
39
40  clock-names:
41    items:
42      - const: ahb
43      - const: mod
44
45  resets:
46    maxItems: 1
47
48  reset-names:
49    const: ahb
50
51required:
52  - compatible
53  - reg
54  - interrupts
55  - clocks
56  - clock-names
57
58if:
59  properties:
60    compatible:
61      contains:
62        const: allwinner,sun6i-a31-crypto
63
64then:
65  required:
66    - resets
67    - reset-names
68
69additionalProperties: false
70
71examples:
72  - |
73    crypto: crypto-engine@1c15000 {
74      compatible = "allwinner,sun4i-a10-crypto";
75      reg = <0x01c15000 0x1000>;
76      interrupts = <86>;
77      clocks = <&ahb_gates 5>, <&ss_clk>;
78      clock-names = "ahb", "mod";
79    };
80
81...
82