summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/crypto/inside-secure,safexcel.yaml
blob: ef07258d16c1dbce85c9b501969a5c0a934849ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/crypto/inside-secure,safexcel.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Inside Secure SafeXcel cryptographic engine

maintainers:
  - Antoine Tenart <atenart@kernel.org>

properties:
  compatible:
    oneOf:
      - const: inside-secure,safexcel-eip197b
      - const: inside-secure,safexcel-eip197d
      - const: inside-secure,safexcel-eip97ies
      - const: inside-secure,safexcel-eip197
        description: Equivalent of inside-secure,safexcel-eip197b
        deprecated: true
      - const: inside-secure,safexcel-eip97
        description: Equivalent of inside-secure,safexcel-eip97ies
        deprecated: true

  reg:
    maxItems: 1

  interrupts:
    maxItems: 6

  interrupt-names:
    items:
      - const: ring0
      - const: ring1
      - const: ring2
      - const: ring3
      - const: eip
      - const: mem

  clocks:
    minItems: 1
    maxItems: 2

  clock-names:
    minItems: 1
    items:
      - const: core
      - const: reg

required:
  - reg
  - interrupts
  - interrupt-names

allOf:
  - if:
      properties:
        clocks:
          minItems: 2
    then:
      properties:
        clock-names:
          minItems: 2
      required:
        - clock-names

additionalProperties: false

examples:
  - |
    #include <dt-bindings/interrupt-controller/arm-gic.h>
    #include <dt-bindings/interrupt-controller/irq.h>

    crypto@800000 {
        compatible = "inside-secure,safexcel-eip197b";
        reg = <0x800000 0x200000>;
        interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>,
                     <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>,
                     <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>,
                     <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>,
                     <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>,
                     <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
        interrupt-names = "ring0", "ring1", "ring2", "ring3", "eip", "mem";
        clocks = <&cpm_syscon0 1 26>;
        clock-names = "core";
    };