Debian Codegraph @

Documentation/devicetree/bindings/crypto/atmel,at91sam9g46-tdes.yaml

raw
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 # Copyright (C) 2022 Microchip Technology, Inc. and its subsidiaries
3 %YAML 1.2
4 ---
5 $id: http://devicetree.org/schemas/crypto/atmel,at91sam9g46-tdes.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
7
8 title: Atmel Triple Data Encryption Standard (TDES) HW cryptographic accelerator
9
10 maintainers:
11 - Tudor Ambarus <[email protected]>
12
13 properties:
14 compatible:
15 oneOf:
16 - const: atmel,at91sam9g46-tdes
17 - items:
18 - enum:
19 - microchip,sam9x7-tdes
20 - microchip,sama7d65-tdes
21 - const: atmel,at91sam9g46-tdes
22
23 reg:
24 maxItems: 1
25
26 interrupts:
27 maxItems: 1
28
29 clocks:
30 maxItems: 1
31
32 clock-names:
33 const: tdes_clk
34
35 dmas:
36 items:
37 - description: TX DMA Channel
38 - description: RX DMA Channel
39
40 dma-names:
41 items:
42 - const: tx
43 - const: rx
44
45 required:
46 - compatible
47 - reg
48 - interrupts
49 - clocks
50 - clock-names
51
52 additionalProperties: false
53
54 examples:
55 - |
56 #include <dt-bindings/interrupt-controller/irq.h>
57 #include <dt-bindings/interrupt-controller/arm-gic.h>
58 #include <dt-bindings/clock/at91.h>
59 #include <dt-bindings/dma/at91.h>
60
61 tdes: crypto@e2014000 {
62 compatible = "atmel,at91sam9g46-tdes";
63 reg = <0xe2014000 0x100>;
64 interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
65 clocks = <&pmc PMC_TYPE_PERIPHERAL 96>;
66 clock-names = "tdes_clk";
67 dmas = <&dma0 AT91_XDMAC_DT_PERID(54)>,
68 <&dma0 AT91_XDMAC_DT_PERID(53)>;
69 dma-names = "tx", "rx";
70 };