1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/crypto/st,stm32-hash.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: STMicroelectronics STM32 HASH bindings
8
9maintainers:
10  - Lionel Debieve <lionel.debieve@st.com>
11
12properties:
13  compatible:
14    enum:
15      - st,stm32f456-hash
16      - st,stm32f756-hash
17
18  reg:
19    maxItems: 1
20
21  clocks:
22    maxItems: 1
23
24  interrupts:
25    maxItems: 1
26
27  resets:
28    maxItems: 1
29
30  dmas:
31    maxItems: 1
32
33  dma-names:
34    items:
35      - const: in
36
37  dma-maxburst:
38    description: Set number of maximum dma burst supported
39    allOf:
40      - $ref: /schemas/types.yaml#/definitions/uint32
41      - minimum: 0
42      - maximum: 2
43      - default: 0
44
45required:
46  - compatible
47  - reg
48  - clocks
49  - interrupts
50
51additionalProperties: false
52
53examples:
54  - |
55    #include <dt-bindings/interrupt-controller/arm-gic.h>
56    #include <dt-bindings/clock/stm32mp1-clks.h>
57    #include <dt-bindings/reset/stm32mp1-resets.h>
58    hash@54002000 {
59      compatible = "st,stm32f756-hash";
60      reg = <0x54002000 0x400>;
61      interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
62      clocks = <&rcc HASH1>;
63      resets = <&rcc HASH1_R>;
64      dmas = <&mdma1 31 0x10 0x1000A02 0x0 0x0>;
65      dma-names = "in";
66      dma-maxburst = <2>;
67    };
68
69...
70