xref: /linux/Documentation/devicetree/bindings/sound/maxim,max98090.yaml (revision 9a87ffc99ec8eb8d35eed7c4f816d75f5cc9662e)
1*0551ff7cSKrzysztof Kozlowski# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2*0551ff7cSKrzysztof Kozlowski%YAML 1.2
3*0551ff7cSKrzysztof Kozlowski---
4*0551ff7cSKrzysztof Kozlowski$id: http://devicetree.org/schemas/sound/maxim,max98090.yaml#
5*0551ff7cSKrzysztof Kozlowski$schema: http://devicetree.org/meta-schemas/core.yaml#
6*0551ff7cSKrzysztof Kozlowski
7*0551ff7cSKrzysztof Kozlowskititle: Maxim Integrated MAX98090/MAX98091 audio codecs
8*0551ff7cSKrzysztof Kozlowski
9*0551ff7cSKrzysztof Kozlowskimaintainers:
10*0551ff7cSKrzysztof Kozlowski  - Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
11*0551ff7cSKrzysztof Kozlowski
12*0551ff7cSKrzysztof Kozlowskidescription: |
13*0551ff7cSKrzysztof Kozlowski  Pins on the device (for linking into audio routes):
14*0551ff7cSKrzysztof Kozlowski  MIC1, MIC2, DMICL, DMICR, IN1, IN2, IN3, IN4, IN5, IN6, IN12, IN34, IN56,
15*0551ff7cSKrzysztof Kozlowski  HPL, HPR, SPKL, SPKR, RCVL, RCVR, MICBIAS
16*0551ff7cSKrzysztof Kozlowski
17*0551ff7cSKrzysztof KozlowskiallOf:
18*0551ff7cSKrzysztof Kozlowski  - $ref: dai-common.yaml#
19*0551ff7cSKrzysztof Kozlowski
20*0551ff7cSKrzysztof Kozlowskiproperties:
21*0551ff7cSKrzysztof Kozlowski  compatible:
22*0551ff7cSKrzysztof Kozlowski    enum:
23*0551ff7cSKrzysztof Kozlowski      - maxim,max98090
24*0551ff7cSKrzysztof Kozlowski      - maxim,max98091
25*0551ff7cSKrzysztof Kozlowski
26*0551ff7cSKrzysztof Kozlowski  reg:
27*0551ff7cSKrzysztof Kozlowski    maxItems: 1
28*0551ff7cSKrzysztof Kozlowski
29*0551ff7cSKrzysztof Kozlowski  clocks:
30*0551ff7cSKrzysztof Kozlowski    items:
31*0551ff7cSKrzysztof Kozlowski      - description: master clock
32*0551ff7cSKrzysztof Kozlowski
33*0551ff7cSKrzysztof Kozlowski  clock-names:
34*0551ff7cSKrzysztof Kozlowski    items:
35*0551ff7cSKrzysztof Kozlowski      - const: mclk
36*0551ff7cSKrzysztof Kozlowski
37*0551ff7cSKrzysztof Kozlowski  interrupts:
38*0551ff7cSKrzysztof Kozlowski    maxItems: 1
39*0551ff7cSKrzysztof Kozlowski
40*0551ff7cSKrzysztof Kozlowski  maxim,dmic-freq:
41*0551ff7cSKrzysztof Kozlowski    $ref: /schemas/types.yaml#/definitions/uint32
42*0551ff7cSKrzysztof Kozlowski    default: 2500000
43*0551ff7cSKrzysztof Kozlowski    description:
44*0551ff7cSKrzysztof Kozlowski      DMIC clock frequency
45*0551ff7cSKrzysztof Kozlowski
46*0551ff7cSKrzysztof Kozlowski  maxim,micbias:
47*0551ff7cSKrzysztof Kozlowski    $ref: /schemas/types.yaml#/definitions/uint32
48*0551ff7cSKrzysztof Kozlowski    enum: [ 0, 1, 2, 3 ]
49*0551ff7cSKrzysztof Kozlowski    default: 3
50*0551ff7cSKrzysztof Kozlowski    description: |
51*0551ff7cSKrzysztof Kozlowski      Micbias voltage applied to the analog mic, valid voltages value are:
52*0551ff7cSKrzysztof Kozlowski        0 - 2.2v
53*0551ff7cSKrzysztof Kozlowski        1 - 2.55v
54*0551ff7cSKrzysztof Kozlowski        2 - 2.4v
55*0551ff7cSKrzysztof Kozlowski        3 - 2.8v
56*0551ff7cSKrzysztof Kozlowski
57*0551ff7cSKrzysztof Kozlowski  '#sound-dai-cells':
58*0551ff7cSKrzysztof Kozlowski    const: 0
59*0551ff7cSKrzysztof Kozlowski
60*0551ff7cSKrzysztof Kozlowskirequired:
61*0551ff7cSKrzysztof Kozlowski  - compatible
62*0551ff7cSKrzysztof Kozlowski  - reg
63*0551ff7cSKrzysztof Kozlowski  - interrupts
64*0551ff7cSKrzysztof Kozlowski
65*0551ff7cSKrzysztof KozlowskiunevaluatedProperties: false
66*0551ff7cSKrzysztof Kozlowski
67*0551ff7cSKrzysztof Kozlowskiexamples:
68*0551ff7cSKrzysztof Kozlowski  - |
69*0551ff7cSKrzysztof Kozlowski    #include <dt-bindings/interrupt-controller/irq.h>
70*0551ff7cSKrzysztof Kozlowski
71*0551ff7cSKrzysztof Kozlowski    i2c {
72*0551ff7cSKrzysztof Kozlowski        #address-cells = <1>;
73*0551ff7cSKrzysztof Kozlowski        #size-cells = <0>;
74*0551ff7cSKrzysztof Kozlowski
75*0551ff7cSKrzysztof Kozlowski        audio-codec@10 {
76*0551ff7cSKrzysztof Kozlowski            compatible = "maxim,max98090";
77*0551ff7cSKrzysztof Kozlowski            reg = <0x10>;
78*0551ff7cSKrzysztof Kozlowski            interrupt-parent = <&gpx3>;
79*0551ff7cSKrzysztof Kozlowski            interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
80*0551ff7cSKrzysztof Kozlowski            clocks = <&i2s0 0>;
81*0551ff7cSKrzysztof Kozlowski            clock-names = "mclk";
82*0551ff7cSKrzysztof Kozlowski            #sound-dai-cells = <0>;
83*0551ff7cSKrzysztof Kozlowski        };
84*0551ff7cSKrzysztof Kozlowski    };
85