xref: /freebsd/sys/contrib/device-tree/Bindings/sound/mchp,spdiftx.yaml (revision 8bab661a3316d8bd9b9fbd11a3b4371b91507bd2)
16be33864SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
26be33864SEmmanuel Vadot%YAML 1.2
36be33864SEmmanuel Vadot---
46be33864SEmmanuel Vadot$id: http://devicetree.org/schemas/sound/mchp,spdiftx.yaml#
56be33864SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
66be33864SEmmanuel Vadot
77ef62cebSEmmanuel Vadottitle: Microchip S/PDIF Tx Controller
86be33864SEmmanuel Vadot
96be33864SEmmanuel Vadotmaintainers:
106be33864SEmmanuel Vadot  - Codrin Ciubotariu <codrin.ciubotariu@microchip.com>
116be33864SEmmanuel Vadot
126be33864SEmmanuel Vadotdescription:
136be33864SEmmanuel Vadot  The Microchip Sony/Philips Digital Interface Transmitter is a serial port
146be33864SEmmanuel Vadot  compliant with the IEC-60958 standard.
156be33864SEmmanuel Vadot
16*8bab661aSEmmanuel VadotallOf:
17*8bab661aSEmmanuel Vadot  - $ref: dai-common.yaml#
18*8bab661aSEmmanuel Vadot
196be33864SEmmanuel Vadotproperties:
206be33864SEmmanuel Vadot  "#sound-dai-cells":
216be33864SEmmanuel Vadot    const: 0
226be33864SEmmanuel Vadot
236be33864SEmmanuel Vadot  compatible:
246be33864SEmmanuel Vadot    const: microchip,sama7g5-spdiftx
256be33864SEmmanuel Vadot
266be33864SEmmanuel Vadot  reg:
276be33864SEmmanuel Vadot    maxItems: 1
286be33864SEmmanuel Vadot
296be33864SEmmanuel Vadot  interrupts:
306be33864SEmmanuel Vadot    maxItems: 1
316be33864SEmmanuel Vadot
326be33864SEmmanuel Vadot  clocks:
336be33864SEmmanuel Vadot    items:
346be33864SEmmanuel Vadot      - description: Peripheral Bus Clock
356be33864SEmmanuel Vadot      - description: Generic Clock
366be33864SEmmanuel Vadot
376be33864SEmmanuel Vadot  clock-names:
386be33864SEmmanuel Vadot    items:
396be33864SEmmanuel Vadot      - const: pclk
406be33864SEmmanuel Vadot      - const: gclk
416be33864SEmmanuel Vadot
426be33864SEmmanuel Vadot  dmas:
436be33864SEmmanuel Vadot    description: TX DMA Channel
446be33864SEmmanuel Vadot    maxItems: 1
456be33864SEmmanuel Vadot
466be33864SEmmanuel Vadot  dma-names:
476be33864SEmmanuel Vadot    const: tx
486be33864SEmmanuel Vadot
496be33864SEmmanuel Vadotrequired:
506be33864SEmmanuel Vadot  - "#sound-dai-cells"
516be33864SEmmanuel Vadot  - compatible
526be33864SEmmanuel Vadot  - reg
536be33864SEmmanuel Vadot  - interrupts
546be33864SEmmanuel Vadot  - clocks
556be33864SEmmanuel Vadot  - clock-names
566be33864SEmmanuel Vadot  - dmas
576be33864SEmmanuel Vadot  - dma-names
586be33864SEmmanuel Vadot
59*8bab661aSEmmanuel VadotunevaluatedProperties: false
606be33864SEmmanuel Vadot
616be33864SEmmanuel Vadotexamples:
626be33864SEmmanuel Vadot  - |
636be33864SEmmanuel Vadot    #include <dt-bindings/clock/at91.h>
646be33864SEmmanuel Vadot    #include <dt-bindings/dma/at91.h>
656be33864SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
666be33864SEmmanuel Vadot
676be33864SEmmanuel Vadot    spdiftx@e1618000 {
686be33864SEmmanuel Vadot        #sound-dai-cells = <0>;
696be33864SEmmanuel Vadot        compatible = "microchip,sama7g5-spdiftx";
706be33864SEmmanuel Vadot        reg = <0xe1618000 0x4000>;
716be33864SEmmanuel Vadot        interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
726be33864SEmmanuel Vadot        dmas = <&dma0 AT91_XDMAC_DT_PERID(50)>;
736be33864SEmmanuel Vadot        dma-names = "tx";
746be33864SEmmanuel Vadot        clocks = <&pmc PMC_TYPE_PERIPHERAL 85>, <&pmc PMC_TYPE_GCK 85>;
756be33864SEmmanuel Vadot        clock-names = "pclk", "gclk";
766be33864SEmmanuel Vadot        pinctrl-names = "default";
776be33864SEmmanuel Vadot        pinctrl-0 = <&pinctrl_spdiftx_default>;
786be33864SEmmanuel Vadot    };
79