0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 # Copyright (C) 2022 Microchip Technology, Inc. and its subsidiaries
0003 %YAML 1.2
0004 ---
0005 $id: http://devicetree.org/schemas/crypto/atmel,at91sam9g46-tdes.yaml#
0006 $schema: http://devicetree.org/meta-schemas/core.yaml#
0007
0008 title: Atmel Triple Data Encryption Standard (TDES) HW cryptographic accelerator
0009
0010 maintainers:
0011 - Tudor Ambarus <tudor.ambarus@microchip.com>
0012
0013 properties:
0014 compatible:
0015 const: atmel,at91sam9g46-tdes
0016
0017 reg:
0018 maxItems: 1
0019
0020 interrupts:
0021 maxItems: 1
0022
0023 clocks:
0024 maxItems: 1
0025
0026 clock-names:
0027 const: tdes_clk
0028
0029 dmas:
0030 items:
0031 - description: TX DMA Channel
0032 - description: RX DMA Channel
0033
0034 dma-names:
0035 items:
0036 - const: tx
0037 - const: rx
0038
0039 required:
0040 - compatible
0041 - reg
0042 - interrupts
0043 - clocks
0044 - clock-names
0045
0046 additionalProperties: false
0047
0048 examples:
0049 - |
0050 #include <dt-bindings/interrupt-controller/irq.h>
0051 #include <dt-bindings/interrupt-controller/arm-gic.h>
0052 #include <dt-bindings/clock/at91.h>
0053 #include <dt-bindings/dma/at91.h>
0054
0055 tdes: crypto@e2014000 {
0056 compatible = "atmel,at91sam9g46-tdes";
0057 reg = <0xe2014000 0x100>;
0058 interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
0059 clocks = <&pmc PMC_TYPE_PERIPHERAL 96>;
0060 clock-names = "tdes_clk";
0061 dmas = <&dma0 AT91_XDMAC_DT_PERID(54)>,
0062 <&dma0 AT91_XDMAC_DT_PERID(53)>;
0063 dma-names = "tx", "rx";
0064 };