Analog Devices MAX98388 Speaker Amplifier
Schema identifier ($id): "http://devicetree.org/schemas/sound/adi,max98388.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Ryan Lee <ryans.lee@analog.com>"
The MAX98388 is a mono Class-D speaker amplifier with I/V feedback. The device provides a PCM interface for audio data and a standard I2C interface for control data communication.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dai-common.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,max98388"
reg — required here #
Maximum number of items (maxItems): 1
#sound-dai-cells — required here #
Exact value (const): 0
adi,vmon-slot-no — not listed as required here #
slot number of the voltage feedback monitor
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 15
Default value (default): 0
adi,imon-slot-no — not listed as required here #
slot number of the current feedback monitor
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 15
Default value (default): 1
adi,interleave-mode — not listed as required here #
For cases where a single combined channel for the I/V feedback data is not sufficient, the device can also be configured to share a single data output channel on alternating frames. In this configuration, the current and voltage data will be frame interleaved on a single output channel.
Value type (type): "boolean"
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "#sound-dai-cells"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
max98388: amplifier@39 {
compatible = "adi,max98388";
reg = <0x39>;
#sound-dai-cells = <0>;
adi,vmon-slot-no = <0>;
adi,imon-slot-no = <1>;
adi,interleave-mode;
reset-gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)