1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/sound/st,stm32-spdifrx.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: STMicroelectronics STM32 S/PDIF receiver (SPDIFRX)
8
9maintainers:
10  - Olivier Moysan <olivier.moysan@foss.st.com>
11
12description: |
13  The SPDIFRX peripheral, is designed to receive an S/PDIF flow compliant with
14  IEC-60958 and IEC-61937.
15
16properties:
17  compatible:
18    enum:
19      - st,stm32h7-spdifrx
20
21  "#sound-dai-cells":
22    const: 0
23
24  reg:
25    maxItems: 1
26
27  clocks:
28    maxItems: 1
29
30  clock-names:
31    items:
32      - const: kclk
33
34  interrupts:
35    maxItems: 1
36
37  dmas:
38    items:
39      - description: audio data capture DMA
40      - description: IEC status bits capture DMA
41
42  dma-names:
43    items:
44      - const: rx
45      - const: rx-ctrl
46
47  resets:
48    maxItems: 1
49
50required:
51  - compatible
52  - "#sound-dai-cells"
53  - reg
54  - clocks
55  - clock-names
56  - interrupts
57  - dmas
58  - dma-names
59
60additionalProperties: false
61
62examples:
63  - |
64    #include <dt-bindings/interrupt-controller/arm-gic.h>
65    #include <dt-bindings/clock/stm32mp1-clks.h>
66    spdifrx: spdifrx@40004000 {
67        compatible = "st,stm32h7-spdifrx";
68        #sound-dai-cells = <0>;
69        reg = <0x40004000 0x400>;
70        clocks = <&rcc SPDIF_K>;
71        clock-names = "kclk";
72        interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
73        dmas = <&dmamux1 2 93 0x400 0x0>,
74               <&dmamux1 3 94 0x400 0x0>;
75        dma-names = "rx", "rx-ctrl";
76        pinctrl-0 = <&spdifrx_pins>;
77        pinctrl-names = "default";
78    };
79
80...
81