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