Linux 6.7-rc7
[linux-modified.git] / Documentation / devicetree / bindings / crypto / fsl-imx-sahara.yaml
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/crypto/fsl-imx-sahara.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Freescale SAHARA Cryptographic Accelerator
8
9 maintainers:
10   - Steffen Trumtrar <s.trumtrar@pengutronix.de>
11
12 properties:
13   compatible:
14     enum:
15       - fsl,imx27-sahara
16       - fsl,imx53-sahara
17
18   reg:
19     maxItems: 1
20
21   interrupts:
22     items:
23       - description: SAHARA Interrupt for Host 0
24       - description: SAHARA Interrupt for Host 1
25     minItems: 1
26
27   clocks:
28     items:
29       - description: Sahara IPG clock
30       - description: Sahara AHB clock
31
32   clock-names:
33     items:
34       - const: ipg
35       - const: ahb
36
37 required:
38   - compatible
39   - reg
40   - interrupts
41   - clocks
42   - clock-names
43
44 allOf:
45   - if:
46       properties:
47         compatible:
48           contains:
49             enum:
50               - fsl,imx53-sahara
51     then:
52       properties:
53         interrupts:
54           minItems: 2
55           maxItems: 2
56     else:
57       properties:
58         interrupts:
59           maxItems: 1
60
61 additionalProperties: false
62
63 examples:
64   - |
65     #include <dt-bindings/clock/imx27-clock.h>
66
67     crypto@10025000 {
68         compatible = "fsl,imx27-sahara";
69         reg = <0x10025000 0x800>;
70         interrupts = <75>;
71         clocks = <&clks IMX27_CLK_SAHARA_IPG_GATE>,
72                  <&clks IMX27_CLK_SAHARA_AHB_GATE>;
73         clock-names = "ipg", "ahb";
74     };