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: alc5632: Convert to dtschema

Convert the ALC5632 audio codec bindings to DT schema.

Signed-off-by: Saalim Quadri <danascape@gmail.com>
Link: https://lore.kernel.org/r/20230327211629.28643-1-danascape@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Saalim Quadri and committed by
Mark Brown
0b57a2d8 8a8f944f

+63 -43
-43
Documentation/devicetree/bindings/sound/alc5632.txt
··· 1 - ALC5632 audio CODEC 2 - 3 - This device supports I2C only. 4 - 5 - Required properties: 6 - 7 - - compatible : "realtek,alc5632" 8 - 9 - - reg : the I2C address of the device. 10 - 11 - - gpio-controller : Indicates this device is a GPIO controller. 12 - 13 - - #gpio-cells : Should be two. The first cell is the pin number and the 14 - second cell is used to specify optional parameters (currently unused). 15 - 16 - Pins on the device (for linking into audio routes): 17 - 18 - * SPK_OUTP 19 - * SPK_OUTN 20 - * HP_OUT_L 21 - * HP_OUT_R 22 - * AUX_OUT_P 23 - * AUX_OUT_N 24 - * LINE_IN_L 25 - * LINE_IN_R 26 - * PHONE_P 27 - * PHONE_N 28 - * MIC1_P 29 - * MIC1_N 30 - * MIC2_P 31 - * MIC2_N 32 - * MICBIAS1 33 - * DMICDAT 34 - 35 - Example: 36 - 37 - alc5632: alc5632@1e { 38 - compatible = "realtek,alc5632"; 39 - reg = <0x1a>; 40 - 41 - gpio-controller; 42 - #gpio-cells = <2>; 43 - };
+63
Documentation/devicetree/bindings/sound/realtek,alc5632.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,alc5632.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: ALC5632 audio CODEC 8 + 9 + description: | 10 + Pins on the device (for linking into audio routes): 11 + * SPK_OUTP 12 + * SPK_OUTN 13 + * HP_OUT_L 14 + * HP_OUT_R 15 + * AUX_OUT_P 16 + * AUX_OUT_N 17 + * LINE_IN_L 18 + * LINE_IN_R 19 + * PHONE_P 20 + * PHONE_N 21 + * MIC1_P 22 + * MIC1_N 23 + * MIC2_P 24 + * MIC2_N 25 + * MICBIAS1 26 + * DMICDAT 27 + 28 + maintainers: 29 + - Leon Romanovsky <leon@leon.nu> 30 + 31 + properties: 32 + compatible: 33 + const: realtek,alc5632 34 + 35 + reg: 36 + maxItems: 1 37 + 38 + '#gpio-cells': 39 + const: 2 40 + 41 + gpio-controller: true 42 + 43 + required: 44 + - compatible 45 + - reg 46 + - '#gpio-cells' 47 + - gpio-controller 48 + 49 + additionalProperties: false 50 + 51 + examples: 52 + - | 53 + #include <dt-bindings/gpio/gpio.h> 54 + i2c { 55 + #address-cells = <1>; 56 + #size-cells = <0>; 57 + codec@1a { 58 + compatible = "realtek,alc5632"; 59 + reg = <0x1a>; 60 + gpio-controller; 61 + #gpio-cells = <2>; 62 + }; 63 + };