Debian Codegraph @

Documentation/devicetree/bindings/crypto/atmel,at91sam9g46-sha.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-sha.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
7
8 title: Atmel Secure Hash Algorithm (SHA) HW cryptographic accelerator
9
10 maintainers:
11 - Tudor Ambarus <[email protected]>
12
13 properties:
14 compatible:
15 oneOf:
16 - const: atmel,at91sam9g46-sha
17 - items:
18 - enum:
19 - microchip,lan9691-sha
20 - microchip,sam9x7-sha
21 - microchip,sama7d65-sha
22 - const: atmel,at91sam9g46-sha
23
24 reg:
25 maxItems: 1
26
27 interrupts:
28 maxItems: 1
29
30 clocks:
31 maxItems: 1
32
33 clock-names:
34 const: sha_clk
35
36 dmas:
37 maxItems: 1
38 description: TX DMA Channel
39
40 dma-names:
41 const: tx
42
43 required:
44 - compatible
45 - reg
46 - interrupts
47 - clocks
48 - clock-names
49
50 additionalProperties: false
51
52 examples:
53 - |
54 #include <dt-bindings/interrupt-controller/irq.h>
55 #include <dt-bindings/interrupt-controller/arm-gic.h>
56 #include <dt-bindings/clock/at91.h>
57 #include <dt-bindings/dma/at91.h>
58
59 sha: crypto@e1814000 {
60 compatible = "atmel,at91sam9g46-sha";
61 reg = <0xe1814000 0x100>;
62 interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
63 clocks = <&pmc PMC_TYPE_PERIPHERAL 83>;
64 clock-names = "sha_clk";
65 dmas = <&dma0 AT91_XDMAC_DT_PERID(48)>;
66 dma-names = "tx";
67 };