Skip to content

Commit 62bef5d

Browse files
TE-N-ShengjiuWangbroonie
authored andcommitted
ASoC: dt-bindings: imx-audio-spdif: convert to YAML
Convert the imx-audio-spdif binding to YAML. When testing dtbs_check, found below compatible strings are not listed in document: fsl,imx-sabreauto-spdif fsl,imx6sx-sdb-spdif So add them in yaml file to pass the test. Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://msgid.link/r/1712830305-31350-2-git-send-email-shengjiu.wang@nxp.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 1d165c5 commit 62bef5d

2 files changed

Lines changed: 66 additions & 36 deletions

File tree

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
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+
7+
title: Freescale i.MX audio complex with S/PDIF transceiver
8+
9+
maintainers:
10+
- Shengjiu Wang <shengjiu.wang@nxp.com>
11+
12+
properties:
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+
45+
required:
46+
- compatible
47+
- model
48+
- spdif-controller
49+
50+
anyOf:
51+
- required:
52+
- spdif-in
53+
- required:
54+
- spdif-out
55+
56+
additionalProperties: false
57+
58+
examples:
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+
};

Documentation/devicetree/bindings/sound/imx-audio-spdif.txt

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)