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

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

Convert the WM8782 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/20240611124405.63427-1-animeshagarwal28@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Animesh Agarwal and committed by
Mark Brown
01e29260 a694956d

+47 -24
+47
Documentation/devicetree/bindings/sound/wlf,wm8782.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,wm8782.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Wolfson Microelectromics WM8782 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,wm8782 18 + 19 + Vdda-supply: 20 + description: Regulator for the analog power supply (2.7V - 5.5V) 21 + 22 + Vdd-supply: 23 + description: Regulator for the digital power supply (2.7V - 3.6V) 24 + 25 + wlf,fsampen: 26 + description: FSAMPEN pin value, 0 for low, 1 for high, 2 for disconnected. 27 + $ref: /schemas/types.yaml#/definitions/uint32 28 + enum: [0, 1, 2] 29 + 30 + "#sound-dai-cells": 31 + const: 0 32 + 33 + required: 34 + - compatible 35 + - Vdda-supply 36 + - Vdd-supply 37 + 38 + unevaluatedProperties: false 39 + 40 + examples: 41 + - | 42 + wm8782: codec { 43 + compatible = "wlf,wm8782"; 44 + Vdda-supply = <&vdda_supply>; 45 + Vdd-supply = <&vdd_supply>; 46 + wlf,fsampen = <2>; 47 + };
-24
Documentation/devicetree/bindings/sound/wm8782.txt
··· 1 - WM8782 stereo ADC 2 - 3 - This device does not have any control interface or reset pins. 4 - 5 - Required properties: 6 - 7 - - compatible : "wlf,wm8782" 8 - - Vdda-supply : phandle to a regulator for the analog power supply (2.7V - 5.5V) 9 - - Vdd-supply : phandle to a regulator for the digital power supply (2.7V - 3.6V) 10 - 11 - Optional properties: 12 - 13 - - wlf,fsampen: 14 - FSAMPEN pin value, 0 for low, 1 for high, 2 for disconnected. 15 - Defaults to 0 if left unspecified. 16 - 17 - Example: 18 - 19 - wm8782: stereo-adc { 20 - compatible = "wlf,wm8782"; 21 - Vdda-supply = <&vdda_supply>; 22 - Vdd-supply = <&vdd_supply>; 23 - wlf,fsampen = <2>; /* 192KHz */ 24 - };