xref: /freebsd/sys/contrib/device-tree/Bindings/sound/maxim,max98504.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,max98504.yaml#
5*8bab661aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*8bab661aSEmmanuel Vadot
7*8bab661aSEmmanuel Vadottitle: Maxim Integrated MAX98504 class D mono speaker amplifier
8*8bab661aSEmmanuel Vadot
9*8bab661aSEmmanuel Vadotmaintainers:
10*8bab661aSEmmanuel Vadot  - Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
11*8bab661aSEmmanuel Vadot
12*8bab661aSEmmanuel Vadotdescription:
13*8bab661aSEmmanuel Vadot  Maxim Integrated MAX98504 speaker amplifier supports I2C control interface
14*8bab661aSEmmanuel Vadot  with an IRQ output signal, PCM and PDM digital audio interface (DAI) and a
15*8bab661aSEmmanuel Vadot  differential analog input.
16*8bab661aSEmmanuel Vadot
17*8bab661aSEmmanuel Vadotproperties:
18*8bab661aSEmmanuel Vadot  compatible:
19*8bab661aSEmmanuel Vadot    const: maxim,max98504
20*8bab661aSEmmanuel Vadot
21*8bab661aSEmmanuel Vadot  reg:
22*8bab661aSEmmanuel Vadot    maxItems: 1
23*8bab661aSEmmanuel Vadot
24*8bab661aSEmmanuel Vadot  interrupts:
25*8bab661aSEmmanuel Vadot    maxItems: 1
26*8bab661aSEmmanuel Vadot
27*8bab661aSEmmanuel Vadot  DIOVDD-supply: true
28*8bab661aSEmmanuel Vadot  DVDD-supply: true
29*8bab661aSEmmanuel Vadot  PVDD-supply: true
30*8bab661aSEmmanuel Vadot
31*8bab661aSEmmanuel Vadot  maxim,brownout-threshold:
32*8bab661aSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
33*8bab661aSEmmanuel Vadot    maximum: 21
34*8bab661aSEmmanuel Vadot    default: 0
35*8bab661aSEmmanuel Vadot    description:
36*8bab661aSEmmanuel Vadot      PVDD brownout threshold, where values correspond to 2.6V, 2.65V...3.65V
37*8bab661aSEmmanuel Vadot      voltage range.  Property also enables the PVDD brownout protection.
38*8bab661aSEmmanuel Vadot
39*8bab661aSEmmanuel Vadot  maxim,brownout-attenuation:
40*8bab661aSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
41*8bab661aSEmmanuel Vadot    maximum: 6
42*8bab661aSEmmanuel Vadot    default: 0
43*8bab661aSEmmanuel Vadot    description:
44*8bab661aSEmmanuel Vadot      Brownout attenuation to the speaker gain applied during the "attack hold"
45*8bab661aSEmmanuel Vadot      and "timed hold" phase, the value must be from 0...6 (dB) range.
46*8bab661aSEmmanuel Vadot
47*8bab661aSEmmanuel Vadot  maxim,brownout-attack-hold-ms:
48*8bab661aSEmmanuel Vadot    maximum: 255
49*8bab661aSEmmanuel Vadot    default: 0
50*8bab661aSEmmanuel Vadot    description:
51*8bab661aSEmmanuel Vadot      Brownout attack hold phase time in ms, VBATBROWN_ATTK_HOLD, register 0x0018.
52*8bab661aSEmmanuel Vadot
53*8bab661aSEmmanuel Vadot  maxim,brownout-timed-hold-ms:
54*8bab661aSEmmanuel Vadot    maximum: 255
55*8bab661aSEmmanuel Vadot    default: 0
56*8bab661aSEmmanuel Vadot    description:
57*8bab661aSEmmanuel Vadot      Brownout timed hold phase time in ms, VBATBROWN_TIME_HOLD, register 0x0019.
58*8bab661aSEmmanuel Vadot
59*8bab661aSEmmanuel Vadot  maxim,brownout-release-rate-ms:
60*8bab661aSEmmanuel Vadot    maximum: 255
61*8bab661aSEmmanuel Vadot    default: 0
62*8bab661aSEmmanuel Vadot    description:
63*8bab661aSEmmanuel Vadot      Brownout release phase step time in ms, VBATBROWN_RELEASE, register 0x001A.
64*8bab661aSEmmanuel Vadot
65*8bab661aSEmmanuel Vadotrequired:
66*8bab661aSEmmanuel Vadot  - compatible
67*8bab661aSEmmanuel Vadot  - reg
68*8bab661aSEmmanuel Vadot
69*8bab661aSEmmanuel VadotadditionalProperties: false
70*8bab661aSEmmanuel Vadot
71*8bab661aSEmmanuel Vadotexamples:
72*8bab661aSEmmanuel Vadot  - |
73*8bab661aSEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
74*8bab661aSEmmanuel Vadot
75*8bab661aSEmmanuel Vadot    i2c {
76*8bab661aSEmmanuel Vadot        #address-cells = <1>;
77*8bab661aSEmmanuel Vadot        #size-cells = <0>;
78*8bab661aSEmmanuel Vadot
79*8bab661aSEmmanuel Vadot        amplifier@31 {
80*8bab661aSEmmanuel Vadot            compatible = "maxim,max98504";
81*8bab661aSEmmanuel Vadot            reg = <0x31>;
82*8bab661aSEmmanuel Vadot
83*8bab661aSEmmanuel Vadot            DIOVDD-supply = <&ldo3_reg>;
84*8bab661aSEmmanuel Vadot            DVDD-supply = <&ldo3_reg>;
85*8bab661aSEmmanuel Vadot        };
86*8bab661aSEmmanuel Vadot    };
87