xref: /linux/Documentation/devicetree/bindings/sound/maxim,max98357a.yaml (revision 8a5a05583a04fcfa094072147eb8f6c9bb2af852)
1*8a5a0558SKrzysztof Kozlowski# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2*8a5a0558SKrzysztof Kozlowski%YAML 1.2
3*8a5a0558SKrzysztof Kozlowski---
4*8a5a0558SKrzysztof Kozlowski$id: http://devicetree.org/schemas/sound/maxim,max98357a.yaml#
5*8a5a0558SKrzysztof Kozlowski$schema: http://devicetree.org/meta-schemas/core.yaml#
6*8a5a0558SKrzysztof Kozlowski
7*8a5a0558SKrzysztof Kozlowskititle: Maxim Integrated MAX98357A/MAX98360A amplifier
8*8a5a0558SKrzysztof Kozlowski
9*8a5a0558SKrzysztof Kozlowskimaintainers:
10*8a5a0558SKrzysztof Kozlowski  - Tzung-Bi Shih <tzungbi@kernel.org>
11*8a5a0558SKrzysztof Kozlowski
12*8a5a0558SKrzysztof Kozlowskidescription:
13*8a5a0558SKrzysztof Kozlowski  Maxim Integrated MAX98357A/MAX98360A is a digital pulse-code modulation (PCM)
14*8a5a0558SKrzysztof Kozlowski  input Class D amplifier.
15*8a5a0558SKrzysztof Kozlowski
16*8a5a0558SKrzysztof KozlowskiallOf:
17*8a5a0558SKrzysztof Kozlowski  - $ref: dai-common.yaml#
18*8a5a0558SKrzysztof Kozlowski
19*8a5a0558SKrzysztof Kozlowskiproperties:
20*8a5a0558SKrzysztof Kozlowski  compatible:
21*8a5a0558SKrzysztof Kozlowski    enum:
22*8a5a0558SKrzysztof Kozlowski      - maxim,max98357a
23*8a5a0558SKrzysztof Kozlowski      - maxim,max98360a
24*8a5a0558SKrzysztof Kozlowski
25*8a5a0558SKrzysztof Kozlowski  '#sound-dai-cells':
26*8a5a0558SKrzysztof Kozlowski    const: 0
27*8a5a0558SKrzysztof Kozlowski
28*8a5a0558SKrzysztof Kozlowski  sdmode-gpios:
29*8a5a0558SKrzysztof Kozlowski    maxItems: 1
30*8a5a0558SKrzysztof Kozlowski    description:
31*8a5a0558SKrzysztof Kozlowski      Chip's SD_MODE pin.  If missing the chip is always on.
32*8a5a0558SKrzysztof Kozlowski
33*8a5a0558SKrzysztof Kozlowski  sdmode-delay:
34*8a5a0558SKrzysztof Kozlowski    $ref: /schemas/types.yaml#/definitions/uint32
35*8a5a0558SKrzysztof Kozlowski    description:
36*8a5a0558SKrzysztof Kozlowski      Delay time for SD_MODE pin changes intended to make I2S clocks ready
37*8a5a0558SKrzysztof Kozlowski      before SD_MODE is unmuted in order to avoid the speaker pop noise.
38*8a5a0558SKrzysztof Kozlowski
39*8a5a0558SKrzysztof Kozlowskirequired:
40*8a5a0558SKrzysztof Kozlowski  - compatible
41*8a5a0558SKrzysztof Kozlowski
42*8a5a0558SKrzysztof KozlowskiunevaluatedProperties: false
43*8a5a0558SKrzysztof Kozlowski
44*8a5a0558SKrzysztof Kozlowskiexamples:
45*8a5a0558SKrzysztof Kozlowski  - |
46*8a5a0558SKrzysztof Kozlowski    #include <dt-bindings/gpio/gpio.h>
47*8a5a0558SKrzysztof Kozlowski
48*8a5a0558SKrzysztof Kozlowski    amplifier {
49*8a5a0558SKrzysztof Kozlowski        compatible = "maxim,max98360a";
50*8a5a0558SKrzysztof Kozlowski        #sound-dai-cells = <0>;
51*8a5a0558SKrzysztof Kozlowski        sdmode-gpios = <&qcom_pinmux 25 GPIO_ACTIVE_HIGH>;
52*8a5a0558SKrzysztof Kozlowski    };
53