GNU Linux-libre 5.15.137-gnu
[releases.git] / Documentation / devicetree / bindings / crypto / allwinner,sun4i-a10-crypto.yaml
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
7 title: Allwinner A10 Security System Device Tree Bindings
8
9 maintainers:
10   - Chen-Yu Tsai <wens@csie.org>
11   - Maxime Ripard <mripard@kernel.org>
12
13 properties:
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   resets:
48     maxItems: 1
49
50   reset-names:
51     const: ahb
52
53 required:
54   - compatible
55   - reg
56   - interrupts
57   - clocks
58   - clock-names
59
60 if:
61   properties:
62     compatible:
63       contains:
64         enum:
65           - allwinner,sun6i-a31-crypto
66           - allwinner,sun8i-a33-crypto
67
68 then:
69   required:
70     - resets
71     - reset-names
72
73 additionalProperties: false
74
75 examples:
76   - |
77     crypto: crypto-engine@1c15000 {
78       compatible = "allwinner,sun4i-a10-crypto";
79       reg = <0x01c15000 0x1000>;
80       interrupts = <86>;
81       clocks = <&ahb_gates 5>, <&ss_clk>;
82       clock-names = "ahb", "mod";
83     };
84
85 ...