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: atmel,sam9x5-wm8731: Convert to json-schema

Convert atmel sam9x5-wm8731-audio devicetree binding to json-schema.

Signed-off-by: Dharma Balasubiramani <dharma.b@microchip.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240206064418.237377-1-dharma.b@microchip.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Dharma Balasubiramani and committed by
Mark Brown
a15f859c 8f501d29

+76 -35
+76
Documentation/devicetree/bindings/sound/atmel,sam9x5-wm8731-audio.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/sound/atmel,sam9x5-wm8731-audio.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Atmel at91sam9x5ek wm8731 audio complex 8 + 9 + maintainers: 10 + - Dharma Balasubiramani <dharma.b@microchip.com> 11 + 12 + description: 13 + The audio complex configuration for Atmel at91sam9x5ek with WM8731 audio codec. 14 + 15 + properties: 16 + compatible: 17 + const: atmel,sam9x5-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,ssc-controller: 24 + $ref: /schemas/types.yaml#/definitions/phandle 25 + description: The phandle of the SSC controller. 26 + 27 + atmel,audio-codec: 28 + $ref: /schemas/types.yaml#/definitions/phandle 29 + description: The phandle of the WM8731 audio codec. 30 + 31 + atmel,audio-routing: 32 + description: 33 + A list of the connections between audio components. Each entry is a pair 34 + of strings, the first being the connection's sink, the second being the 35 + connection's source. 36 + $ref: /schemas/types.yaml#/definitions/non-unique-string-array 37 + items: 38 + enum: 39 + # Board Connectors 40 + - Headphone Jack 41 + - Line In Jack 42 + 43 + # CODEC Pins 44 + - LOUT 45 + - ROUT 46 + - LHPOUT 47 + - RHPOUT 48 + - LLINEIN 49 + - RLINEIN 50 + - MICIN 51 + 52 + required: 53 + - compatible 54 + - atmel,model 55 + - atmel,ssc-controller 56 + - atmel,audio-codec 57 + - atmel,audio-routing 58 + 59 + additionalProperties: false 60 + 61 + examples: 62 + - | 63 + sound { 64 + compatible = "atmel,sam9x5-wm8731-audio"; 65 + 66 + atmel,model = "wm8731 @ AT91SAM9X5EK"; 67 + 68 + atmel,audio-routing = 69 + "Headphone Jack", "RHPOUT", 70 + "Headphone Jack", "LHPOUT", 71 + "LLINEIN", "Line In Jack", 72 + "RLINEIN", "Line In Jack"; 73 + 74 + atmel,ssc-controller = <&ssc0>; 75 + atmel,audio-codec = <&wm8731>; 76 + };
-35
Documentation/devicetree/bindings/sound/atmel-sam9x5-wm8731-audio.txt
··· 1 - * Atmel at91sam9x5ek wm8731 audio complex 2 - 3 - Required properties: 4 - - compatible: "atmel,sam9x5-wm8731-audio" 5 - - atmel,model: The user-visible name of this sound complex. 6 - - atmel,ssc-controller: The phandle of the SSC controller 7 - - atmel,audio-codec: The phandle of the WM8731 audio codec 8 - - atmel,audio-routing: A list of the connections between audio components. 9 - Each entry is a pair of strings, the first being the connection's sink, 10 - the second being the connection's source. 11 - 12 - Available audio endpoints for the audio-routing table: 13 - 14 - Board connectors: 15 - * Headphone Jack 16 - * Line In Jack 17 - 18 - wm8731 pins: 19 - cf Documentation/devicetree/bindings/sound/wlf,wm8731.yaml 20 - 21 - Example: 22 - sound { 23 - compatible = "atmel,sam9x5-wm8731-audio"; 24 - 25 - atmel,model = "wm8731 @ AT91SAM9X5EK"; 26 - 27 - atmel,audio-routing = 28 - "Headphone Jack", "RHPOUT", 29 - "Headphone Jack", "LHPOUT", 30 - "LLINEIN", "Line In Jack", 31 - "RLINEIN", "Line In Jack"; 32 - 33 - atmel,ssc-controller = <&ssc0>; 34 - atmel,audio-codec = <&wm8731>; 35 - };