1*7136368aSKrzysztof Kozlowski# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2*7136368aSKrzysztof Kozlowski%YAML 1.2 3*7136368aSKrzysztof Kozlowski--- 4*7136368aSKrzysztof Kozlowski$id: http://devicetree.org/schemas/sound/maxim,max98925.yaml# 5*7136368aSKrzysztof Kozlowski$schema: http://devicetree.org/meta-schemas/core.yaml# 6*7136368aSKrzysztof Kozlowski 7*7136368aSKrzysztof Kozlowskititle: Maxim Integrated MAX98925/MAX98926/MAX98927 speaker amplifier 8*7136368aSKrzysztof Kozlowski 9*7136368aSKrzysztof Kozlowskimaintainers: 10*7136368aSKrzysztof Kozlowski - Ryan Lee <ryans.lee@maximintegrated.com> 11*7136368aSKrzysztof Kozlowski 12*7136368aSKrzysztof Kozlowskiproperties: 13*7136368aSKrzysztof Kozlowski compatible: 14*7136368aSKrzysztof Kozlowski enum: 15*7136368aSKrzysztof Kozlowski - maxim,max98925 16*7136368aSKrzysztof Kozlowski - maxim,max98926 17*7136368aSKrzysztof Kozlowski - maxim,max98927 18*7136368aSKrzysztof Kozlowski 19*7136368aSKrzysztof Kozlowski reg: 20*7136368aSKrzysztof Kozlowski maxItems: 1 21*7136368aSKrzysztof Kozlowski 22*7136368aSKrzysztof Kozlowski reset-gpios: 23*7136368aSKrzysztof Kozlowski maxItems: 1 24*7136368aSKrzysztof Kozlowski 25*7136368aSKrzysztof Kozlowski '#sound-dai-cells': 26*7136368aSKrzysztof Kozlowski const: 0 27*7136368aSKrzysztof Kozlowski 28*7136368aSKrzysztof Kozlowski vmon-slot-no: 29*7136368aSKrzysztof Kozlowski $ref: /schemas/types.yaml#/definitions/uint32 30*7136368aSKrzysztof Kozlowski minimum: 0 31*7136368aSKrzysztof Kozlowski maximum: 30 32*7136368aSKrzysztof Kozlowski default: 0 33*7136368aSKrzysztof Kozlowski description: 34*7136368aSKrzysztof Kozlowski Slot number used to send voltage information or in inteleave mode this 35*7136368aSKrzysztof Kozlowski will be used as interleave slot. 36*7136368aSKrzysztof Kozlowski 37*7136368aSKrzysztof Kozlowski imon-slot-no: 38*7136368aSKrzysztof Kozlowski $ref: /schemas/types.yaml#/definitions/uint32 39*7136368aSKrzysztof Kozlowski minimum: 0 40*7136368aSKrzysztof Kozlowski maximum: 30 41*7136368aSKrzysztof Kozlowski default: 0 42*7136368aSKrzysztof Kozlowski description: 43*7136368aSKrzysztof Kozlowski Slot number used to send current information. 44*7136368aSKrzysztof Kozlowski 45*7136368aSKrzysztof Kozlowski maxim,interleave-mode: 46*7136368aSKrzysztof Kozlowski type: boolean 47*7136368aSKrzysztof Kozlowski description: 48*7136368aSKrzysztof Kozlowski When using two MAX9892X in a system it is possible to create ADC data 49*7136368aSKrzysztof Kozlowski that will overflow the frame size. When enabled, the Digital Audio 50*7136368aSKrzysztof Kozlowski Interleave mode provides a means to output VMON and IMON data from two 51*7136368aSKrzysztof Kozlowski devices on a single DOUT line when running smaller frames sizes such as 52*7136368aSKrzysztof Kozlowski 32 BCLKS per LRCLK or 48 BCLKS per LRCLK. 53*7136368aSKrzysztof Kozlowski 54*7136368aSKrzysztof Kozlowskirequired: 55*7136368aSKrzysztof Kozlowski - compatible 56*7136368aSKrzysztof Kozlowski - reg 57*7136368aSKrzysztof Kozlowski 58*7136368aSKrzysztof KozlowskiallOf: 59*7136368aSKrzysztof Kozlowski - $ref: dai-common.yaml# 60*7136368aSKrzysztof Kozlowski - if: 61*7136368aSKrzysztof Kozlowski properties: 62*7136368aSKrzysztof Kozlowski compatible: 63*7136368aSKrzysztof Kozlowski contains: 64*7136368aSKrzysztof Kozlowski enum: 65*7136368aSKrzysztof Kozlowski - maxim,max98927 66*7136368aSKrzysztof Kozlowski then: 67*7136368aSKrzysztof Kozlowski properties: 68*7136368aSKrzysztof Kozlowski vmon-slot-no: 69*7136368aSKrzysztof Kozlowski minimum: 0 70*7136368aSKrzysztof Kozlowski maximum: 15 71*7136368aSKrzysztof Kozlowski 72*7136368aSKrzysztof Kozlowski imon-slot-no: 73*7136368aSKrzysztof Kozlowski minimum: 0 74*7136368aSKrzysztof Kozlowski maximum: 15 75*7136368aSKrzysztof Kozlowski 76*7136368aSKrzysztof KozlowskiadditionalProperties: false 77*7136368aSKrzysztof Kozlowski 78*7136368aSKrzysztof Kozlowskiexamples: 79*7136368aSKrzysztof Kozlowski - | 80*7136368aSKrzysztof Kozlowski i2c { 81*7136368aSKrzysztof Kozlowski #address-cells = <1>; 82*7136368aSKrzysztof Kozlowski #size-cells = <0>; 83*7136368aSKrzysztof Kozlowski 84*7136368aSKrzysztof Kozlowski #include <dt-bindings/gpio/gpio.h> 85*7136368aSKrzysztof Kozlowski audio-codec@3a { 86*7136368aSKrzysztof Kozlowski compatible = "maxim,max98927"; 87*7136368aSKrzysztof Kozlowski reg = <0x3a>; 88*7136368aSKrzysztof Kozlowski #sound-dai-cells = <0>; 89*7136368aSKrzysztof Kozlowski 90*7136368aSKrzysztof Kozlowski pinctrl-0 = <&speaker_default>; 91*7136368aSKrzysztof Kozlowski pinctrl-names = "default"; 92*7136368aSKrzysztof Kozlowski 93*7136368aSKrzysztof Kozlowski reset-gpios = <&tlmm 69 GPIO_ACTIVE_LOW>; 94*7136368aSKrzysztof Kozlowski 95*7136368aSKrzysztof Kozlowski vmon-slot-no = <1>; 96*7136368aSKrzysztof Kozlowski imon-slot-no = <0>; 97*7136368aSKrzysztof Kozlowski }; 98*7136368aSKrzysztof Kozlowski }; 99