xref: /freebsd/sys/contrib/device-tree/Bindings/sound/mchp,spdiftx.yaml (revision 7a8d62cd046942ab34fcf282ecbbb0747a08a4ee)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/sound/mchp,spdiftx.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Microchip S/PDIF Tx Controller Device Tree Bindings
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
16properties:
17  "#sound-dai-cells":
18    const: 0
19
20  compatible:
21    const: microchip,sama7g5-spdiftx
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: TX DMA Channel
41    maxItems: 1
42
43  dma-names:
44    const: tx
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    spdiftx@e1618000 {
65        #sound-dai-cells = <0>;
66        compatible = "microchip,sama7g5-spdiftx";
67        reg = <0xe1618000 0x4000>;
68        interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
69        dmas = <&dma0 AT91_XDMAC_DT_PERID(50)>;
70        dma-names = "tx";
71        clocks = <&pmc PMC_TYPE_PERIPHERAL 85>, <&pmc PMC_TYPE_GCK 85>;
72        clock-names = "pclk", "gclk";
73        pinctrl-names = "default";
74        pinctrl-0 = <&pinctrl_spdiftx_default>;
75    };
76