xref: /openbmc/linux/Documentation/devicetree/bindings/sound/wlf,wm8904.yaml (revision c900529f3d9161bfde5cca0754f83b4d3c3e0220)
1*83759352SFrancesco Dolcini# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2*83759352SFrancesco Dolcini%YAML 1.2
3*83759352SFrancesco Dolcini---
4*83759352SFrancesco Dolcini$id: http://devicetree.org/schemas/sound/wlf,wm8904.yaml#
5*83759352SFrancesco Dolcini$schema: http://devicetree.org/meta-schemas/core.yaml#
6*83759352SFrancesco Dolcini
7*83759352SFrancesco Dolcinititle: Wolfson WM8904/WM8912 audio codecs
8*83759352SFrancesco Dolcini
9*83759352SFrancesco Dolcinimaintainers:
10*83759352SFrancesco Dolcini  - patches@opensource.cirrus.com
11*83759352SFrancesco Dolcini
12*83759352SFrancesco Dolcinidescription: |
13*83759352SFrancesco Dolcini  Pins on the device (for linking into audio routes):
14*83759352SFrancesco Dolcini  IN1L, IN1R, IN2L, IN2R, IN3L, IN3R, HPOUTL, HPOUTR, LINEOUTL, LINEOUTR,
15*83759352SFrancesco Dolcini  MICBIAS
16*83759352SFrancesco Dolcini
17*83759352SFrancesco Dolciniproperties:
18*83759352SFrancesco Dolcini  compatible:
19*83759352SFrancesco Dolcini    enum:
20*83759352SFrancesco Dolcini      - wlf,wm8904
21*83759352SFrancesco Dolcini      - wlf,wm8912
22*83759352SFrancesco Dolcini
23*83759352SFrancesco Dolcini  reg:
24*83759352SFrancesco Dolcini    maxItems: 1
25*83759352SFrancesco Dolcini
26*83759352SFrancesco Dolcini  "#sound-dai-cells":
27*83759352SFrancesco Dolcini    const: 0
28*83759352SFrancesco Dolcini
29*83759352SFrancesco Dolcini  clocks:
30*83759352SFrancesco Dolcini    maxItems: 1
31*83759352SFrancesco Dolcini
32*83759352SFrancesco Dolcini  clock-names:
33*83759352SFrancesco Dolcini    const: mclk
34*83759352SFrancesco Dolcini
35*83759352SFrancesco Dolcini  AVDD-supply: true
36*83759352SFrancesco Dolcini  CPVDD-supply: true
37*83759352SFrancesco Dolcini  DBVDD-supply: true
38*83759352SFrancesco Dolcini  DCVDD-supply: true
39*83759352SFrancesco Dolcini  MICVDD-supply: true
40*83759352SFrancesco Dolcini
41*83759352SFrancesco Dolcinirequired:
42*83759352SFrancesco Dolcini  - compatible
43*83759352SFrancesco Dolcini  - reg
44*83759352SFrancesco Dolcini  - clocks
45*83759352SFrancesco Dolcini  - clock-names
46*83759352SFrancesco Dolcini  - AVDD-supply
47*83759352SFrancesco Dolcini  - CPVDD-supply
48*83759352SFrancesco Dolcini  - DBVDD-supply
49*83759352SFrancesco Dolcini  - DCVDD-supply
50*83759352SFrancesco Dolcini  - MICVDD-supply
51*83759352SFrancesco Dolcini
52*83759352SFrancesco DolciniallOf:
53*83759352SFrancesco Dolcini  - $ref: dai-common.yaml#
54*83759352SFrancesco Dolcini
55*83759352SFrancesco DolciniunevaluatedProperties: false
56*83759352SFrancesco Dolcini
57*83759352SFrancesco Dolciniexamples:
58*83759352SFrancesco Dolcini  - |
59*83759352SFrancesco Dolcini    i2c {
60*83759352SFrancesco Dolcini        #address-cells = <1>;
61*83759352SFrancesco Dolcini        #size-cells = <0>;
62*83759352SFrancesco Dolcini
63*83759352SFrancesco Dolcini        codec@1a {
64*83759352SFrancesco Dolcini            compatible = "wlf,wm8904";
65*83759352SFrancesco Dolcini            reg = <0x1a>;
66*83759352SFrancesco Dolcini            clocks = <&pck0>;
67*83759352SFrancesco Dolcini            clock-names = "mclk";
68*83759352SFrancesco Dolcini            AVDD-supply = <&reg_1p8v>;
69*83759352SFrancesco Dolcini            CPVDD-supply = <&reg_1p8v>;
70*83759352SFrancesco Dolcini            DBVDD-supply = <&reg_1p8v>;
71*83759352SFrancesco Dolcini            DCVDD-supply = <&reg_1p8v>;
72*83759352SFrancesco Dolcini            MICVDD-supply = <&reg_1p8v>;
73*83759352SFrancesco Dolcini        };
74*83759352SFrancesco Dolcini    };
75