brintos

brintos / linux-shallow public Read only

0
0
Text · 1.9 KiB · 93ccd59 Raw
80 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/sound/adi,max98388.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Analog Devices MAX98388 Speaker Amplifier8 9maintainers:10  - Ryan Lee <ryans.lee@analog.com>11 12description:13  The MAX98388 is a mono Class-D speaker amplifier with I/V feedback.14  The device provides a PCM interface for audio data and a standard15  I2C interface for control data communication.16 17allOf:18  - $ref: dai-common.yaml#19 20properties:21  compatible:22    enum:23      - adi,max9838824 25  reg:26    maxItems: 127 28  '#sound-dai-cells':29    const: 030 31  adi,vmon-slot-no:32    description: slot number of the voltage feedback monitor33    $ref: /schemas/types.yaml#/definitions/uint3234    minimum: 035    maximum: 1536    default: 037 38  adi,imon-slot-no:39    description: slot number of the current feedback monitor40    $ref: /schemas/types.yaml#/definitions/uint3241    minimum: 042    maximum: 1543    default: 144 45  adi,interleave-mode:46    description:47      For cases where a single combined channel for the I/V feedback data48      is not sufficient, the device can also be configured to share49      a single data output channel on alternating frames.50      In this configuration, the current and voltage data will be frame51      interleaved on a single output channel.52    type: boolean53 54  reset-gpios:55    maxItems: 156 57required:58  - compatible59  - reg60  - '#sound-dai-cells'61 62unevaluatedProperties: false63 64examples:65  - |66    #include <dt-bindings/gpio/gpio.h>67    i2c {68        #address-cells = <1>;69        #size-cells = <0>;70        max98388: amplifier@39 {71            compatible = "adi,max98388";72            reg = <0x39>;73            #sound-dai-cells = <0>;74            adi,vmon-slot-no = <0>;75            adi,imon-slot-no = <1>;76            adi,interleave-mode;77            reset-gpios = <&gpio 4 GPIO_ACTIVE_LOW>;78        };79    };80