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: covert mxs-audio-sgtl5000.txt to yaml format

Convert mxs-audio-sgtl5000.txt to yaml format.

Additional changes:
- Add compatible string:
bluegiga,apx4devkit-sgtl5000
denx,m28evk-sgtl5000
fsl,imx28-mbmx28lc-sgtl500
- Remove audio-routing from required list.

Signed-off-by: Frank Li <Frank.Li@nxp.com>
Reviewed-by: "Rob Herring (Arm)" <robh@kernel.org>
Link: https://patch.msgid.link/20250528165755.692264-1-Frank.Li@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Frank Li and committed by
Mark Brown
db1a7a6f f4c77d5a

+81 -42
+81
Documentation/devicetree/bindings/sound/fsl,mxs-audio-sgtl5000.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,mxs-audio-sgtl5000.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Freescale MXS audio complex with SGTL5000 codec 8 + 9 + maintainers: 10 + - Frank Li <Frank.Li@nxp.com> 11 + 12 + properties: 13 + compatible: 14 + items: 15 + - enum: 16 + - bluegiga,apx4devkit-sgtl5000 17 + - denx,m28evk-sgtl5000 18 + - fsl,imx28-evk-sgtl5000 19 + - fsl,imx28-mbmx28lc-sgtl5000 20 + - fsl,imx28-tx28-sgtl5000 21 + - const: fsl,mxs-audio-sgtl5000 22 + 23 + model: 24 + $ref: /schemas/types.yaml#/definitions/string 25 + description: The user-visible name of this sound complex 26 + 27 + saif-controllers: 28 + $ref: /schemas/types.yaml#/definitions/phandle-array 29 + description: The phandle list of the MXS SAIF controller 30 + 31 + audio-codec: 32 + $ref: /schemas/types.yaml#/definitions/phandle 33 + description: The phandle of the SGTL5000 audio codec 34 + 35 + audio-routing: 36 + $ref: /schemas/types.yaml#/definitions/non-unique-string-array 37 + description: | 38 + A list of the connections between audio components. 39 + Each entry is a pair of strings, the first being the 40 + connection's sink, the second being the connection's 41 + source. Valid names could be power supplies, SGTL5000 42 + pins, and the jacks on the board: 43 + 44 + Power supplies: 45 + * Mic Bias 46 + 47 + SGTL5000 pins: 48 + * MIC_IN 49 + * LINE_IN 50 + * HP_OUT 51 + * LINE_OUT 52 + 53 + Board connectors: 54 + * Mic Jack 55 + * Line In Jack 56 + * Headphone Jack 57 + * Line Out Jack 58 + * Ext Spk 59 + 60 + required: 61 + - compatible 62 + - saif-controllers 63 + - audio-codec 64 + 65 + allOf: 66 + - $ref: dai-common.yaml# 67 + 68 + unevaluatedProperties: false 69 + 70 + examples: 71 + - | 72 + sound { 73 + compatible = "fsl,imx28-evk-sgtl5000", "fsl,mxs-audio-sgtl5000"; 74 + model = "imx28-evk-sgtl5000"; 75 + saif-controllers = <&saif0 &saif1>; 76 + audio-codec = <&sgtl5000>; 77 + audio-routing = 78 + "MIC_IN", "Mic Jack", 79 + "Mic Jack", "Mic Bias", 80 + "Headphone Jack", "HP_OUT"; 81 + };
-42
Documentation/devicetree/bindings/sound/mxs-audio-sgtl5000.txt
··· 1 - * Freescale MXS audio complex with SGTL5000 codec 2 - 3 - Required properties: 4 - - compatible : "fsl,mxs-audio-sgtl5000" 5 - - model : The user-visible name of this sound complex 6 - - saif-controllers : The phandle list of the MXS SAIF controller 7 - - audio-codec : The phandle of the SGTL5000 audio codec 8 - - audio-routing : A list of the connections between audio components. 9 - Each entry is a pair of strings, the first being the 10 - connection's sink, the second being the connection's 11 - source. Valid names could be power supplies, SGTL5000 12 - pins, and the jacks on the board: 13 - 14 - Power supplies: 15 - * Mic Bias 16 - 17 - SGTL5000 pins: 18 - * MIC_IN 19 - * LINE_IN 20 - * HP_OUT 21 - * LINE_OUT 22 - 23 - Board connectors: 24 - * Mic Jack 25 - * Line In Jack 26 - * Headphone Jack 27 - * Line Out Jack 28 - * Ext Spk 29 - 30 - Example: 31 - 32 - sound { 33 - compatible = "fsl,imx28-evk-sgtl5000", 34 - "fsl,mxs-audio-sgtl5000"; 35 - model = "imx28-evk-sgtl5000"; 36 - saif-controllers = <&saif0 &saif1>; 37 - audio-codec = <&sgtl5000>; 38 - audio-routing = 39 - "MIC_IN", "Mic Jack", 40 - "Mic Jack", "Mic Bias", 41 - "Headphone Jack", "HP_OUT"; 42 - };