xref: /linux/Documentation/devicetree/bindings/sound/microchip,sama7g5-spdifrx.yaml (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/sound/microchip,sama7g5-spdifrx.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Microchip S/PDIF Rx Controller
8
9maintainers:
10  - Codrin Ciubotariu <codrin.ciubotariu@microchip.com>
11
12description:
13  The Microchip Sony/Philips Digital Interface Receiver is a serial port
14  compliant with the IEC-60958 standard.
15
16allOf:
17  - $ref: dai-common.yaml#
18
19properties:
20  "#sound-dai-cells":
21    const: 0
22
23  compatible:
24    const: microchip,sama7g5-spdifrx
25
26  reg:
27    maxItems: 1
28
29  interrupts:
30    maxItems: 1
31
32  clocks:
33    items:
34      - description: Peripheral Bus Clock
35      - description: Generic Clock
36
37  clock-names:
38    items:
39      - const: pclk
40      - const: gclk
41
42  dmas:
43    description: RX DMA Channel
44    maxItems: 1
45
46  dma-names:
47    const: rx
48
49required:
50  - "#sound-dai-cells"
51  - compatible
52  - reg
53  - interrupts
54  - clocks
55  - clock-names
56  - dmas
57  - dma-names
58
59unevaluatedProperties: false
60
61examples:
62  - |
63    #include <dt-bindings/clock/at91.h>
64    #include <dt-bindings/dma/at91.h>
65    #include <dt-bindings/interrupt-controller/arm-gic.h>
66
67    spdifrx: spdifrx@e1614000 {
68        #sound-dai-cells = <0>;
69        compatible = "microchip,sama7g5-spdifrx";
70        reg = <0xe1614000 0x4000>;
71        interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
72        dmas = <&dma0 AT91_XDMAC_DT_PERID(49)>;
73        dma-names = "rx";
74        clocks = <&pmc PMC_TYPE_PERIPHERAL 84>, <&pmc PMC_TYPE_GCK 84>;
75        clock-names = "pclk", "gclk";
76    };
77