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

ASoC: dt-bindings: wlf,wm8524: Convert to json-schema

Convert the Wolfson WM8524 24-bit 192KHz Stereo DAC device tree
binding documentation to json-schema.

Signed-off-by: Chancel Liu <chancel.liu@nxp.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230227091938.1671416-1-chancel.liu@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Chancel Liu and committed by
Mark Brown
5ddcf976 af5932fc

+40 -16
+40
Documentation/devicetree/bindings/sound/wlf,wm8524.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/wlf,wm8524.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Wolfson WM8524 24-bit 192KHz Stereo DAC 8 + 9 + maintainers: 10 + - patches@opensource.cirrus.com 11 + 12 + allOf: 13 + - $ref: dai-common.yaml# 14 + 15 + properties: 16 + compatible: 17 + const: wlf,wm8524 18 + 19 + "#sound-dai-cells": 20 + const: 0 21 + 22 + wlf,mute-gpios: 23 + maxItems: 1 24 + description: 25 + a GPIO spec for the MUTE pin. 26 + 27 + required: 28 + - compatible 29 + - wlf,mute-gpios 30 + 31 + unevaluatedProperties: false 32 + 33 + examples: 34 + - | 35 + #include <dt-bindings/gpio/gpio.h> 36 + 37 + wm8524: codec { 38 + compatible = "wlf,wm8524"; 39 + wlf,mute-gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; 40 + };
-16
Documentation/devicetree/bindings/sound/wm8524.txt
··· 1 - WM8524 audio CODEC 2 - 3 - This device does not use I2C or SPI but a simple Hardware Control Interface. 4 - 5 - Required properties: 6 - 7 - - compatible : "wlf,wm8524" 8 - 9 - - wlf,mute-gpios: a GPIO spec for the MUTE pin. 10 - 11 - Example: 12 - 13 - wm8524: codec { 14 - compatible = "wlf,wm8524"; 15 - wlf,mute-gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; 16 - };