xref: /linux/Documentation/devicetree/bindings/crypto/fsl-imx-sahara.yaml (revision c5dbf04160005e07e8ca7232a7faa77ab1547ae0)
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
7title: Freescale SAHARA Cryptographic Accelerator
8
9maintainers:
10  - Steffen Trumtrar <s.trumtrar@pengutronix.de>
11
12properties:
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
37required:
38  - compatible
39  - reg
40  - interrupts
41  - clocks
42  - clock-names
43
44allOf:
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
61additionalProperties: false
62
63examples:
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    };
75