1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/sound/adi,max98396.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Analog Devices MAX98396 Speaker Amplifier
10 - Ryan Lee <ryans.lee@analog.com>
13 The MAX98396 is a mono Class-DG speaker amplifier with I/V sense.
14 The device provides a PCM interface for audio data and a standard
15 I2C interface for control data communication.
16 The MAX98397 is a variant of MAX98396 with wide input supply range.
25 description: I2C address of the device.
28 description: A 1.8V supply that powers up the AVDD pin.
31 description: A 1.2V supply that powers up the DVDD pin.
34 description: A 1.2V or 1.8V supply that powers up the VDDIO pin.
37 description: A 3.0V to 20V supply that powers up the PVDD pin.
40 description: A 3.3V to 5.5V supply that powers up the VBAT pin.
43 description: slot number of the voltage sense monitor
44 $ref: "/schemas/types.yaml#/definitions/uint32"
50 description: slot number of the current sense monitor
51 $ref: "/schemas/types.yaml#/definitions/uint32"
57 description: slot number of speaker DSP monitor
58 $ref: "/schemas/types.yaml#/definitions/uint32"
65 Selects the PCM data input channel that is routed to the speaker
66 audio processing bypass path.
67 $ref: "/schemas/types.yaml#/definitions/uint32"
74 For cases where a single combined channel for the I/V sense data
75 is not sufficient, the device can also be configured to share
76 a single data output channel on alternating frames.
77 In this configuration, the current and voltage data will be frame
78 interleaved on a single output channel.
81 adi,dmon-stuck-enable:
83 Enables the "data monitor stuck" feature. Once the data monitor is
84 enabled, it actively monitors the selected input data (from DIN) to the
85 speaker amplifier. Once a data error is detected, the data monitor
86 automatically places the device into software shutdown.
89 adi,dmon-stuck-threshold-bits:
91 Sets the threshold for the "data monitor stuck" feature, in bits.
95 adi,dmon-magnitude-enable:
97 Enables the "data monitor magnitude" feature. Once the data monitor is
98 enabled, it actively monitors the selected input data (from DIN) to the
99 speaker amplifier. Once a data error is detected, the data monitor
100 automatically places the device into software shutdown.
103 adi,dmon-magnitude-threshold-bits:
105 Sets the threshold for the "data monitor magnitude" feature, in bits.
109 adi,dmon-duration-ms:
111 Sets the duration for the "data monitor" feature, in milliseconds.
112 enum: [64, 256, 1024, 4096]
122 additionalProperties: false
126 #include <dt-bindings/gpio/gpio.h>
128 #address-cells = <1>;
130 max98396: amplifier@39 {
131 compatible = "adi,max98396";
133 dvdd-supply = <®ulator_1v2>;
134 dvddio-supply = <®ulator_1v8>;
135 avdd-supply = <®ulator_1v8>;
136 pvdd-supply = <®ulator_pvdd>;
137 adi,vmon-slot-no = <0>;
138 adi,imon-slot-no = <1>;
139 reset-gpios = <&gpio 4 GPIO_ACTIVE_LOW>;