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

ASoC: dt-bindings: atmel-at91sam9g20ek: convert to json-schema

Convert atmel-at91sam9g20ek-wm8731-audio DT binding to yaml
based json-schema.Change file name to match json-scheme naming.

Signed-off-by: Balakrishnan Sambath <balakrishnan.s@microchip.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/20250219-sound-atmel-at91sam9g20ek-v3-1-d7c082af4e14@microchip.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Balakrishnan Sambath and committed by
Mark Brown
c8d08464 67ebf712

+72 -26
+72
Documentation/devicetree/bindings/sound/atmel,at91sam9g20ek-wm8731.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/atmel,at91sam9g20ek-wm8731.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Atmel at91sam9g20ek wm8731 audio complex 8 + 9 + maintainers: 10 + - Balakrishnan Sambath <balakrishnan.s@microchip.com> 11 + 12 + description: 13 + The audio complex configuration for Atmel at91sam9g20ek with WM8731 audio codec. 14 + 15 + properties: 16 + compatible: 17 + const: atmel,at91sam9g20ek-wm8731-audio 18 + 19 + atmel,model: 20 + $ref: /schemas/types.yaml#/definitions/string 21 + description: The user-visible name of this sound complex. 22 + 23 + atmel,audio-routing: 24 + $ref: /schemas/types.yaml#/definitions/non-unique-string-array 25 + description: A list of the connections between audio components. 26 + minItems: 2 27 + maxItems: 4 28 + items: 29 + enum: 30 + # Board Connectors 31 + - Ext Spk 32 + - Int Mic 33 + 34 + # CODEC Pins 35 + - LOUT 36 + - ROUT 37 + - LHPOUT 38 + - RHPOUT 39 + - LLINEIN 40 + - RLINEIN 41 + - MICIN 42 + 43 + atmel,ssc-controller: 44 + $ref: /schemas/types.yaml#/definitions/phandle 45 + description: The phandle of the SSC controller. 46 + 47 + atmel,audio-codec: 48 + $ref: /schemas/types.yaml#/definitions/phandle 49 + description: The phandle of WM8731 audio codec. 50 + 51 + required: 52 + - compatible 53 + - atmel,model 54 + - atmel,audio-routing 55 + - atmel,ssc-controller 56 + - atmel,audio-codec 57 + 58 + additionalProperties: false 59 + 60 + examples: 61 + - | 62 + sound { 63 + compatible = "atmel,at91sam9g20ek-wm8731-audio"; 64 + pinctrl-names = "default"; 65 + pinctrl-0 = <&pinctrl_pck0_as_mck>; 66 + atmel,model = "wm8731 @ AT91SAMG20EK"; 67 + atmel,audio-routing = 68 + "Ext Spk", "LHPOUT", 69 + "Int Mic", "MICIN"; 70 + atmel,ssc-controller = <&ssc0>; 71 + atmel,audio-codec = <&wm8731>; 72 + };
-26
Documentation/devicetree/bindings/sound/atmel-at91sam9g20ek-wm8731-audio.txt
··· 1 - * Atmel at91sam9g20ek wm8731 audio complex 2 - 3 - Required properties: 4 - - compatible: "atmel,at91sam9g20ek-wm8731-audio" 5 - - atmel,model: The user-visible name of this sound complex. 6 - - atmel,audio-routing: A list of the connections between audio components. 7 - - atmel,ssc-controller: The phandle of the SSC controller 8 - - atmel,audio-codec: The phandle of the WM8731 audio codec 9 - Optional properties: 10 - - pinctrl-names, pinctrl-0: Please refer to pinctrl-bindings.txt 11 - 12 - Example: 13 - sound { 14 - compatible = "atmel,at91sam9g20ek-wm8731-audio"; 15 - pinctrl-names = "default"; 16 - pinctrl-0 = <&pinctrl_pck0_as_mck>; 17 - 18 - atmel,model = "wm8731 @ AT91SAMG20EK"; 19 - 20 - atmel,audio-routing = 21 - "Ext Spk", "LHPOUT", 22 - "Int MIC", "MICIN"; 23 - 24 - atmel,ssc-controller = <&ssc0>; 25 - atmel,audio-codec = <&wm8731>; 26 - };