xref: /freebsd/sys/contrib/device-tree/Bindings/sound/microchip,sama7g5-spdiftx.yaml (revision cb7aa33ac6cd46a5434798e50363136e64f3ae98)
1*cb7aa33aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2*cb7aa33aSEmmanuel Vadot%YAML 1.2
3*cb7aa33aSEmmanuel Vadot---
4*cb7aa33aSEmmanuel Vadot$id: http://devicetree.org/schemas/sound/microchip,sama7g5-spdiftx.yaml#
5*cb7aa33aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*cb7aa33aSEmmanuel Vadot
7*cb7aa33aSEmmanuel Vadottitle: Microchip S/PDIF Tx Controller
8*cb7aa33aSEmmanuel Vadot
9*cb7aa33aSEmmanuel Vadotmaintainers:
10*cb7aa33aSEmmanuel Vadot  - Codrin Ciubotariu <codrin.ciubotariu@microchip.com>
11*cb7aa33aSEmmanuel Vadot
12*cb7aa33aSEmmanuel Vadotdescription:
13*cb7aa33aSEmmanuel Vadot  The Microchip Sony/Philips Digital Interface Transmitter is a serial port
14*cb7aa33aSEmmanuel Vadot  compliant with the IEC-60958 standard.
15*cb7aa33aSEmmanuel Vadot
16*cb7aa33aSEmmanuel VadotallOf:
17*cb7aa33aSEmmanuel Vadot  - $ref: dai-common.yaml#
18*cb7aa33aSEmmanuel Vadot
19*cb7aa33aSEmmanuel Vadotproperties:
20*cb7aa33aSEmmanuel Vadot  "#sound-dai-cells":
21*cb7aa33aSEmmanuel Vadot    const: 0
22*cb7aa33aSEmmanuel Vadot
23*cb7aa33aSEmmanuel Vadot  compatible:
24*cb7aa33aSEmmanuel Vadot    const: microchip,sama7g5-spdiftx
25*cb7aa33aSEmmanuel Vadot
26*cb7aa33aSEmmanuel Vadot  reg:
27*cb7aa33aSEmmanuel Vadot    maxItems: 1
28*cb7aa33aSEmmanuel Vadot
29*cb7aa33aSEmmanuel Vadot  interrupts:
30*cb7aa33aSEmmanuel Vadot    maxItems: 1
31*cb7aa33aSEmmanuel Vadot
32*cb7aa33aSEmmanuel Vadot  clocks:
33*cb7aa33aSEmmanuel Vadot    items:
34*cb7aa33aSEmmanuel Vadot      - description: Peripheral Bus Clock
35*cb7aa33aSEmmanuel Vadot      - description: Generic Clock
36*cb7aa33aSEmmanuel Vadot
37*cb7aa33aSEmmanuel Vadot  clock-names:
38*cb7aa33aSEmmanuel Vadot    items:
39*cb7aa33aSEmmanuel Vadot      - const: pclk
40*cb7aa33aSEmmanuel Vadot      - const: gclk
41*cb7aa33aSEmmanuel Vadot
42*cb7aa33aSEmmanuel Vadot  dmas:
43*cb7aa33aSEmmanuel Vadot    description: TX DMA Channel
44*cb7aa33aSEmmanuel Vadot    maxItems: 1
45*cb7aa33aSEmmanuel Vadot
46*cb7aa33aSEmmanuel Vadot  dma-names:
47*cb7aa33aSEmmanuel Vadot    const: tx
48*cb7aa33aSEmmanuel Vadot
49*cb7aa33aSEmmanuel Vadotrequired:
50*cb7aa33aSEmmanuel Vadot  - "#sound-dai-cells"
51*cb7aa33aSEmmanuel Vadot  - compatible
52*cb7aa33aSEmmanuel Vadot  - reg
53*cb7aa33aSEmmanuel Vadot  - interrupts
54*cb7aa33aSEmmanuel Vadot  - clocks
55*cb7aa33aSEmmanuel Vadot  - clock-names
56*cb7aa33aSEmmanuel Vadot  - dmas
57*cb7aa33aSEmmanuel Vadot  - dma-names
58*cb7aa33aSEmmanuel Vadot
59*cb7aa33aSEmmanuel VadotunevaluatedProperties: false
60*cb7aa33aSEmmanuel Vadot
61*cb7aa33aSEmmanuel Vadotexamples:
62*cb7aa33aSEmmanuel Vadot  - |
63*cb7aa33aSEmmanuel Vadot    #include <dt-bindings/clock/at91.h>
64*cb7aa33aSEmmanuel Vadot    #include <dt-bindings/dma/at91.h>
65*cb7aa33aSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
66*cb7aa33aSEmmanuel Vadot
67*cb7aa33aSEmmanuel Vadot    spdiftx@e1618000 {
68*cb7aa33aSEmmanuel Vadot        #sound-dai-cells = <0>;
69*cb7aa33aSEmmanuel Vadot        compatible = "microchip,sama7g5-spdiftx";
70*cb7aa33aSEmmanuel Vadot        reg = <0xe1618000 0x4000>;
71*cb7aa33aSEmmanuel Vadot        interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
72*cb7aa33aSEmmanuel Vadot        dmas = <&dma0 AT91_XDMAC_DT_PERID(50)>;
73*cb7aa33aSEmmanuel Vadot        dma-names = "tx";
74*cb7aa33aSEmmanuel Vadot        clocks = <&pmc PMC_TYPE_PERIPHERAL 85>, <&pmc PMC_TYPE_GCK 85>;
75*cb7aa33aSEmmanuel Vadot        clock-names = "pclk", "gclk";
76*cb7aa33aSEmmanuel Vadot        pinctrl-names = "default";
77*cb7aa33aSEmmanuel Vadot        pinctrl-0 = <&pinctrl_spdiftx_default>;
78*cb7aa33aSEmmanuel Vadot    };
79