Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Shengjiu Wang and committed by
Mark Brown
62bef5df 1d165c5a

+66 -36
+66
Documentation/devicetree/bindings/sound/fsl,imx-audio-spdif.yaml
··· 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 + };
-36
Documentation/devicetree/bindings/sound/imx-audio-spdif.txt
··· 1 - Freescale i.MX audio complex with S/PDIF transceiver 2 - 3 - Required properties: 4 - 5 - - compatible : "fsl,imx-audio-spdif" 6 - 7 - - model : The user-visible name of this sound complex 8 - 9 - - spdif-controller : The phandle of the i.MX S/PDIF controller 10 - 11 - 12 - Optional properties: 13 - 14 - - spdif-out : This is a boolean property. If present, the 15 - transmitting function of S/PDIF will be enabled, 16 - indicating there's a physical S/PDIF out connector 17 - or jack on the board or it's connecting to some 18 - other IP block, such as an HDMI encoder or 19 - display-controller. 20 - 21 - - spdif-in : This is a boolean property. If present, the receiving 22 - function of S/PDIF will be enabled, indicating there 23 - is a physical S/PDIF in connector/jack on the board. 24 - 25 - * Note: At least one of these two properties should be set in the DT binding. 26 - 27 - 28 - Example: 29 - 30 - sound-spdif { 31 - compatible = "fsl,imx-audio-spdif"; 32 - model = "imx-spdif"; 33 - spdif-controller = <&spdif>; 34 - spdif-out; 35 - spdif-in; 36 - };