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