Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
[sfrench/cifs-2.6.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 <maxime.ripard@bootlin.com>
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
27   reg:
28     maxItems: 1
29
30   interrupts:
31     maxItems: 1
32
33   clocks:
34     items:
35       - description: Bus Clock
36       - description: Module Clock
37
38   clock-names:
39     items:
40       - const: ahb
41       - const: mod
42
43   resets:
44     maxItems: 1
45
46   reset-names:
47     const: ahb
48
49 required:
50   - compatible
51   - reg
52   - interrupts
53   - clocks
54   - clock-names
55
56 if:
57   properties:
58     compatible:
59       contains:
60         const: allwinner,sun6i-a31-crypto
61
62 then:
63   required:
64     - resets
65     - reset-names
66
67 additionalProperties: false
68
69 examples:
70   - |
71     crypto: crypto-engine@1c15000 {
72       compatible = "allwinner,sun4i-a10-crypto";
73       reg = <0x01c15000 0x1000>;
74       interrupts = <86>;
75       clocks = <&ahb_gates 5>, <&ss_clk>;
76       clock-names = "ahb", "mod";
77     };
78
79 ...