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