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