xref: /freebsd/sys/contrib/device-tree/Bindings/sound/fsl,imx-audio-spdif.yaml (revision 7d0873ebb83b19ba1e8a89e679470d885efe12e3)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/sound/fsl,imx-audio-spdif.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Freescale i.MX audio complex with S/PDIF transceiver
8
9maintainers:
10  - Shengjiu Wang <shengjiu.wang@nxp.com>
11
12properties:
13  compatible:
14    oneOf:
15      - items:
16          - enum:
17              - fsl,imx-sabreauto-spdif
18              - fsl,imx6sx-sdb-spdif
19          - const: fsl,imx-audio-spdif
20      - enum:
21          - fsl,imx-audio-spdif
22
23  model:
24    $ref: /schemas/types.yaml#/definitions/string
25    description: User specified audio sound card name
26
27  spdif-controller:
28    $ref: /schemas/types.yaml#/definitions/phandle
29    description: The phandle of the i.MX S/PDIF controller
30
31  spdif-out:
32    type: boolean
33    description:
34      If present, the transmitting function of S/PDIF will be enabled,
35      indicating there's a physical S/PDIF out connector or jack on the
36      board or it's connecting to some other IP block, such as an HDMI
37      encoder or display-controller.
38
39  spdif-in:
40    type: boolean
41    description:
42      If present, the receiving function of S/PDIF will be enabled,
43      indicating there is a physical S/PDIF in connector/jack on the board.
44
45required:
46  - compatible
47  - model
48  - spdif-controller
49
50anyOf:
51  - required:
52      - spdif-in
53  - required:
54      - spdif-out
55
56additionalProperties: false
57
58examples:
59  - |
60    sound-spdif {
61        compatible = "fsl,imx-audio-spdif";
62        model = "imx-spdif";
63        spdif-controller = <&spdif>;
64        spdif-out;
65        spdif-in;
66    };
67