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-spdiftx.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Microchip S/PDIF Tx Controller
8
9maintainers:
10  - Codrin Ciubotariu <codrin.ciubotariu@microchip.com>
11
12description:
13  The Microchip Sony/Philips Digital Interface Transmitter 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-spdiftx
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: TX DMA Channel
44    maxItems: 1
45
46  dma-names:
47    const: tx
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    spdiftx@e1618000 {
68        #sound-dai-cells = <0>;
69        compatible = "microchip,sama7g5-spdiftx";
70        reg = <0xe1618000 0x4000>;
71        interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
72        dmas = <&dma0 AT91_XDMAC_DT_PERID(50)>;
73        dma-names = "tx";
74        clocks = <&pmc PMC_TYPE_PERIPHERAL 85>, <&pmc PMC_TYPE_GCK 85>;
75        clock-names = "pclk", "gclk";
76        pinctrl-names = "default";
77        pinctrl-0 = <&pinctrl_spdiftx_default>;
78    };
79