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

Convert WM8974 audio CODEC bindings from text to dtschema.

Signed-off-by: Kartik Agarwala <agarwala.kartik@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://msgid.link/r/20240325181943.116733-1-agarwala.kartik@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Kartik Agarwala and committed by
Mark Brown
b340f56a 885dd75f

+41 -15
-15
Documentation/devicetree/bindings/sound/wlf,wm8974.txt
··· 1 - WM8974 audio CODEC 2 - 3 - This device supports both I2C and SPI (configured with pin strapping 4 - on the board). 5 - 6 - Required properties: 7 - - compatible: "wlf,wm8974" 8 - - reg: the I2C address or SPI chip select number of the device 9 - 10 - Examples: 11 - 12 - codec: wm8974@1a { 13 - compatible = "wlf,wm8974"; 14 - reg = <0x1a>; 15 - };
+41
Documentation/devicetree/bindings/sound/wlf,wm8974.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,wm8974.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: WM8974 audio CODEC 8 + 9 + maintainers: 10 + - patches@opensource.cirrus.com 11 + 12 + allOf: 13 + - $ref: dai-common.yaml# 14 + 15 + properties: 16 + compatible: 17 + const: wlf,wm8974 18 + 19 + reg: 20 + maxItems: 1 21 + 22 + "#sound-dai-cells": 23 + const: 0 24 + 25 + required: 26 + - compatible 27 + - reg 28 + 29 + unevaluatedProperties: false 30 + 31 + examples: 32 + - | 33 + i2c { 34 + #address-cells = <1>; 35 + #size-cells = <0>; 36 + 37 + codec@1a { 38 + compatible = "wlf,wm8974"; 39 + reg = <0x1a>; 40 + }; 41 + };