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