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