1*4cab2d5fSRyan Lee# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*4cab2d5fSRyan Lee%YAML 1.2 3*4cab2d5fSRyan Lee--- 4*4cab2d5fSRyan Lee$id: http://devicetree.org/schemas/sound/adi,max98388.yaml# 5*4cab2d5fSRyan Lee$schema: http://devicetree.org/meta-schemas/core.yaml# 6*4cab2d5fSRyan Lee 7*4cab2d5fSRyan Leetitle: Analog Devices MAX98388 Speaker Amplifier 8*4cab2d5fSRyan Lee 9*4cab2d5fSRyan Leemaintainers: 10*4cab2d5fSRyan Lee - Ryan Lee <ryans.lee@analog.com> 11*4cab2d5fSRyan Lee 12*4cab2d5fSRyan Leedescription: 13*4cab2d5fSRyan Lee The MAX98388 is a mono Class-D speaker amplifier with I/V feedback. 14*4cab2d5fSRyan Lee The device provides a PCM interface for audio data and a standard 15*4cab2d5fSRyan Lee I2C interface for control data communication. 16*4cab2d5fSRyan Lee 17*4cab2d5fSRyan LeeallOf: 18*4cab2d5fSRyan Lee - $ref: dai-common.yaml# 19*4cab2d5fSRyan Lee 20*4cab2d5fSRyan Leeproperties: 21*4cab2d5fSRyan Lee compatible: 22*4cab2d5fSRyan Lee enum: 23*4cab2d5fSRyan Lee - adi,max98388 24*4cab2d5fSRyan Lee 25*4cab2d5fSRyan Lee reg: 26*4cab2d5fSRyan Lee maxItems: 1 27*4cab2d5fSRyan Lee 28*4cab2d5fSRyan Lee '#sound-dai-cells': 29*4cab2d5fSRyan Lee const: 0 30*4cab2d5fSRyan Lee 31*4cab2d5fSRyan Lee adi,vmon-slot-no: 32*4cab2d5fSRyan Lee description: slot number of the voltage feedback monitor 33*4cab2d5fSRyan Lee $ref: /schemas/types.yaml#/definitions/uint32 34*4cab2d5fSRyan Lee minimum: 0 35*4cab2d5fSRyan Lee maximum: 15 36*4cab2d5fSRyan Lee default: 0 37*4cab2d5fSRyan Lee 38*4cab2d5fSRyan Lee adi,imon-slot-no: 39*4cab2d5fSRyan Lee description: slot number of the current feedback monitor 40*4cab2d5fSRyan Lee $ref: /schemas/types.yaml#/definitions/uint32 41*4cab2d5fSRyan Lee minimum: 0 42*4cab2d5fSRyan Lee maximum: 15 43*4cab2d5fSRyan Lee default: 1 44*4cab2d5fSRyan Lee 45*4cab2d5fSRyan Lee adi,interleave-mode: 46*4cab2d5fSRyan Lee description: 47*4cab2d5fSRyan Lee For cases where a single combined channel for the I/V feedback data 48*4cab2d5fSRyan Lee is not sufficient, the device can also be configured to share 49*4cab2d5fSRyan Lee a single data output channel on alternating frames. 50*4cab2d5fSRyan Lee In this configuration, the current and voltage data will be frame 51*4cab2d5fSRyan Lee interleaved on a single output channel. 52*4cab2d5fSRyan Lee type: boolean 53*4cab2d5fSRyan Lee 54*4cab2d5fSRyan Lee reset-gpios: 55*4cab2d5fSRyan Lee maxItems: 1 56*4cab2d5fSRyan Lee 57*4cab2d5fSRyan Leerequired: 58*4cab2d5fSRyan Lee - compatible 59*4cab2d5fSRyan Lee - reg 60*4cab2d5fSRyan Lee - '#sound-dai-cells' 61*4cab2d5fSRyan Lee 62*4cab2d5fSRyan LeeunevaluatedProperties: false 63*4cab2d5fSRyan Lee 64*4cab2d5fSRyan Leeexamples: 65*4cab2d5fSRyan Lee - | 66*4cab2d5fSRyan Lee #include <dt-bindings/gpio/gpio.h> 67*4cab2d5fSRyan Lee i2c { 68*4cab2d5fSRyan Lee #address-cells = <1>; 69*4cab2d5fSRyan Lee #size-cells = <0>; 70*4cab2d5fSRyan Lee max98388: amplifier@39 { 71*4cab2d5fSRyan Lee compatible = "adi,max98388"; 72*4cab2d5fSRyan Lee reg = <0x39>; 73*4cab2d5fSRyan Lee #sound-dai-cells = <0>; 74*4cab2d5fSRyan Lee adi,vmon-slot-no = <0>; 75*4cab2d5fSRyan Lee adi,imon-slot-no = <1>; 76*4cab2d5fSRyan Lee adi,interleave-mode; 77*4cab2d5fSRyan Lee reset-gpios = <&gpio 4 GPIO_ACTIVE_LOW>; 78*4cab2d5fSRyan Lee }; 79*4cab2d5fSRyan Lee }; 80