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