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

Convert the WM8904 audio CODEC bindings to DT schema.

Compared to the original binding #sound-dai-cells and the missing power
supplies are added. The latter are all required as described in the
datasheet.

Datasheet: https://statics.cirrus.com/pubs/proDatasheet/WM8904_Rev4.1.pdf
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20230719121918.247397-1-francesco@dolcini.it
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Francesco Dolcini and committed by
Mark Brown
83759352 65bc25b8

+74 -33
+74
Documentation/devicetree/bindings/sound/wlf,wm8904.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,wm8904.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Wolfson WM8904/WM8912 audio codecs 8 + 9 + maintainers: 10 + - patches@opensource.cirrus.com 11 + 12 + description: | 13 + Pins on the device (for linking into audio routes): 14 + IN1L, IN1R, IN2L, IN2R, IN3L, IN3R, HPOUTL, HPOUTR, LINEOUTL, LINEOUTR, 15 + MICBIAS 16 + 17 + properties: 18 + compatible: 19 + enum: 20 + - wlf,wm8904 21 + - wlf,wm8912 22 + 23 + reg: 24 + maxItems: 1 25 + 26 + "#sound-dai-cells": 27 + const: 0 28 + 29 + clocks: 30 + maxItems: 1 31 + 32 + clock-names: 33 + const: mclk 34 + 35 + AVDD-supply: true 36 + CPVDD-supply: true 37 + DBVDD-supply: true 38 + DCVDD-supply: true 39 + MICVDD-supply: true 40 + 41 + required: 42 + - compatible 43 + - reg 44 + - clocks 45 + - clock-names 46 + - AVDD-supply 47 + - CPVDD-supply 48 + - DBVDD-supply 49 + - DCVDD-supply 50 + - MICVDD-supply 51 + 52 + allOf: 53 + - $ref: dai-common.yaml# 54 + 55 + unevaluatedProperties: false 56 + 57 + examples: 58 + - | 59 + i2c { 60 + #address-cells = <1>; 61 + #size-cells = <0>; 62 + 63 + codec@1a { 64 + compatible = "wlf,wm8904"; 65 + reg = <0x1a>; 66 + clocks = <&pck0>; 67 + clock-names = "mclk"; 68 + AVDD-supply = <&reg_1p8v>; 69 + CPVDD-supply = <&reg_1p8v>; 70 + DBVDD-supply = <&reg_1p8v>; 71 + DCVDD-supply = <&reg_1p8v>; 72 + MICVDD-supply = <&reg_1p8v>; 73 + }; 74 + };
-33
Documentation/devicetree/bindings/sound/wm8904.txt
··· 1 - WM8904 audio CODEC 2 - 3 - This device supports I2C only. 4 - 5 - Required properties: 6 - - compatible: "wlf,wm8904" or "wlf,wm8912" 7 - - reg: the I2C address of the device. 8 - - clock-names: "mclk" 9 - - clocks: reference to 10 - <Documentation/devicetree/bindings/clock/clock-bindings.txt> 11 - 12 - Pins on the device (for linking into audio routes): 13 - 14 - * IN1L 15 - * IN1R 16 - * IN2L 17 - * IN2R 18 - * IN3L 19 - * IN3R 20 - * HPOUTL 21 - * HPOUTR 22 - * LINEOUTL 23 - * LINEOUTR 24 - * MICBIAS 25 - 26 - Examples: 27 - 28 - codec: wm8904@1a { 29 - compatible = "wlf,wm8904"; 30 - reg = <0x1a>; 31 - clocks = <&pck0>; 32 - clock-names = "mclk"; 33 - };