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