blob: 2f43c684ab88d9deb8010ef323d47d9f74909adf [file] [log] [blame]
Tom Rini53633a82024-02-29 12:33:36 -05001# 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
16properties:
17 "#sound-dai-cells":
18 const: 0
19
20 compatible:
21 const: microchip,sama7g5-spdifrx
22
23 reg:
24 maxItems: 1
25
26 interrupts:
27 maxItems: 1
28
29 clocks:
30 items:
31 - description: Peripheral Bus Clock
32 - description: Generic Clock
33
34 clock-names:
35 items:
36 - const: pclk
37 - const: gclk
38
39 dmas:
40 description: RX DMA Channel
41 maxItems: 1
42
43 dma-names:
44 const: rx
45
46required:
47 - "#sound-dai-cells"
48 - compatible
49 - reg
50 - interrupts
51 - clocks
52 - clock-names
53 - dmas
54 - dma-names
55
56additionalProperties: false
57
58examples:
59 - |
60 #include <dt-bindings/clock/at91.h>
61 #include <dt-bindings/dma/at91.h>
62 #include <dt-bindings/interrupt-controller/arm-gic.h>
63
64 spdifrx: spdifrx@e1614000 {
65 #sound-dai-cells = <0>;
66 compatible = "microchip,sama7g5-spdifrx";
67 reg = <0xe1614000 0x4000>;
68 interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
69 dmas = <&dma0 AT91_XDMAC_DT_PERID(49)>;
70 dma-names = "rx";
71 clocks = <&pmc PMC_TYPE_PERIPHERAL 84>, <&pmc PMC_TYPE_GCK 84>;
72 clock-names = "pclk", "gclk";
73 };