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

ASoC: dt-bindings: realtek,rt5631: Convert to dtschema

Convert the ALC5631/RT5631 audio CODEC bindings to DT Schema.

Signed-off-by: Animesh Agarwal <animeshagarwal28@gmail.com>
Cc: Daniel Baluta <daniel.baluta@nxp.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Link: https://msgid.link/r/20240616074936.151267-1-animeshagarwal28@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Animesh Agarwal and committed by
Mark Brown
20346f5c 39eab014

+67 -48
+67
Documentation/devicetree/bindings/sound/realtek,rt5631.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/realtek,rt5631.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: ALC5631/RT5631 audio CODEC 8 + 9 + maintainers: 10 + - Animesh Agarwal <animeshagarwal28@gmail.com> 11 + 12 + description: | 13 + This device supports I2C only. 14 + 15 + Pins on the device (for linking into audio routes): 16 + * SPK_OUT_R_P 17 + * SPK_OUT_R_N 18 + * SPK_OUT_L_P 19 + * SPK_OUT_L_N 20 + * HP_OUT_L 21 + * HP_OUT_R 22 + * AUX_OUT2_LP 23 + * AUX_OUT2_RN 24 + * AUX_OUT1_LP 25 + * AUX_OUT1_RN 26 + * AUX_IN_L_JD 27 + * AUX_IN_R_JD 28 + * MONO_IN_P 29 + * MONO_IN_N 30 + * MIC1_P 31 + * MIC1_N 32 + * MIC2_P 33 + * MIC2_N 34 + * MONO_OUT_P 35 + * MONO_OUT_N 36 + * MICBIAS1 37 + * MICBIAS2 38 + 39 + properties: 40 + compatible: 41 + enum: 42 + - realtek,alc5631 43 + - realtek,rt5631 44 + 45 + reg: 46 + maxItems: 1 47 + 48 + port: 49 + $ref: audio-graph-port.yaml# 50 + unevaluatedProperties: false 51 + 52 + required: 53 + - compatible 54 + - reg 55 + 56 + additionalProperties: false 57 + 58 + examples: 59 + - | 60 + i2c { 61 + #address-cells = <1>; 62 + #size-cells = <0>; 63 + codec@1a { 64 + compatible = "realtek,alc5631"; 65 + reg = <0x1a>; 66 + }; 67 + };
-48
Documentation/devicetree/bindings/sound/rt5631.txt
··· 1 - ALC5631/RT5631 audio CODEC 2 - 3 - This device supports I2C only. 4 - 5 - Required properties: 6 - 7 - - compatible : "realtek,alc5631" or "realtek,rt5631" 8 - 9 - - reg : the I2C address of the device. 10 - 11 - Pins on the device (for linking into audio routes): 12 - 13 - * SPK_OUT_R_P 14 - * SPK_OUT_R_N 15 - * SPK_OUT_L_P 16 - * SPK_OUT_L_N 17 - * HP_OUT_L 18 - * HP_OUT_R 19 - * AUX_OUT2_LP 20 - * AUX_OUT2_RN 21 - * AUX_OUT1_LP 22 - * AUX_OUT1_RN 23 - * AUX_IN_L_JD 24 - * AUX_IN_R_JD 25 - * MONO_IN_P 26 - * MONO_IN_N 27 - * MIC1_P 28 - * MIC1_N 29 - * MIC2_P 30 - * MIC2_N 31 - * MONO_OUT_P 32 - * MONO_OUT_N 33 - * MICBIAS1 34 - * MICBIAS2 35 - 36 - Example: 37 - 38 - alc5631: audio-codec@1a { 39 - compatible = "realtek,alc5631"; 40 - reg = <0x1a>; 41 - }; 42 - 43 - or 44 - 45 - rt5631: audio-codec@1a { 46 - compatible = "realtek,rt5631"; 47 - reg = <0x1a>; 48 - };