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

ASoC: dt-bindings: wlf,wm8804: Convert to dtschema

Convert the WM8804 audio codec bindings to DT schema.

Signed-off-by: Animesh Agarwal <animeshagarwal28@gmail.com>
Cc: Daniel Baluta <daniel.baluta@nxp.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20240611122258.47406-1-animeshagarwal28@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Animesh Agarwal and committed by
Mark Brown
e8ffc083 01e29260

+58 -25
+58
Documentation/devicetree/bindings/sound/wlf,wm8804.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,wm8804.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: WM8804 audio codec 8 + 9 + description: | 10 + This device supports both I2C and SPI (configured with pin strapping on the 11 + board). 12 + 13 + maintainers: 14 + - patches@opensource.cirrus.com 15 + 16 + properties: 17 + compatible: 18 + const: wlf,wm8804 19 + 20 + reg: 21 + description: 22 + The I2C address of the device for I2C, the chip select number for SPI. 23 + maxItems: 1 24 + 25 + "#sound-dai-cells": 26 + const: 0 27 + 28 + PVDD-supply: 29 + description: PLL core supply 30 + 31 + DVDD-supply: 32 + description: Digital core supply 33 + 34 + wlf,reset-gpio: 35 + description: A GPIO specifier for the GPIO controlling the reset pin. 36 + maxItems: 1 37 + 38 + required: 39 + - reg 40 + - compatible 41 + - PVDD-supply 42 + - DVDD-supply 43 + 44 + additionalProperties: false 45 + 46 + examples: 47 + - | 48 + i2c { 49 + #address-cells = <1>; 50 + #size-cells = <0>; 51 + 52 + codec@1a { 53 + compatible = "wlf,wm8804"; 54 + reg = <0x1a>; 55 + PVDD-supply = <&pvdd_reg>; 56 + DVDD-supply = <&dvdd_reg>; 57 + }; 58 + };
-25
Documentation/devicetree/bindings/sound/wm8804.txt
··· 1 - WM8804 audio CODEC 2 - 3 - This device supports both I2C and SPI (configured with pin strapping 4 - on the board). 5 - 6 - Required properties: 7 - 8 - - compatible : "wlf,wm8804" 9 - 10 - - reg : the I2C address of the device for I2C, the chip select 11 - number for SPI. 12 - 13 - - PVDD-supply, DVDD-supply : Power supplies for the device, as covered 14 - in Documentation/devicetree/bindings/regulator/regulator.txt 15 - 16 - Optional properties: 17 - 18 - - wlf,reset-gpio: A GPIO specifier for the GPIO controlling the reset pin 19 - 20 - Example: 21 - 22 - wm8804: codec@1a { 23 - compatible = "wlf,wm8804"; 24 - reg = <0x1a>; 25 - };