Analog Devices MAX98396 Speaker Amplifier

Schema identifier ($id): "http://devicetree.org/schemas/sound/adi,max98396.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Ryan Lee <ryans.lee@analog.com>"

The MAX98396 is a mono Class-DG speaker amplifier with I/V sense. The device provides a PCM interface for audio data and a standard I2C interface for control data communication. The MAX98397 is a variant of MAX98396 with wide input supply range.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "adi,max98396", "adi,max98397"

reg — required here #

Maximum number of items (maxItems): 1

I2C address of the device.

avdd-supply — not listed as required here #

A 1.8V supply that powers up the AVDD pin.

dvdd-supply — not listed as required here #

A 1.2V supply that powers up the DVDD pin.

dvddio-supply — not listed as required here #

A 1.2V or 1.8V supply that powers up the VDDIO pin.

pvdd-supply — not listed as required here #

A 3.0V to 20V supply that powers up the PVDD pin.

vbat-supply — not listed as required here #

A 3.3V to 5.5V supply that powers up the VBAT pin.

adi,vmon-slot-no — not listed as required here #

slot number of the voltage sense 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 sense monitor

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 0

Maximum value (maximum): 15

Default value (default): 1

adi,spkfb-slot-no — not listed as required here #

slot number of speaker DSP monitor

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 0

Maximum value (maximum): 15

Default value (default): 2

adi,bypass-slot-no — not listed as required here #

Selects the PCM data input channel that is routed to the speaker audio processing bypass path.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 0

Maximum value (maximum): 15

Default value (default): 0

adi,interleave-mode — not listed as required here #

For cases where a single combined channel for the I/V sense 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"

adi,dmon-stuck-enable — not listed as required here #

Enables the "data monitor stuck" feature. Once the data monitor is enabled, it actively monitors the selected input data (from DIN) to the speaker amplifier. Once a data error is detected, the data monitor automatically places the device into software shutdown.

Value type (type): "boolean"

adi,dmon-stuck-threshold-bits — not listed as required here #

Sets the threshold for the "data monitor stuck" feature, in bits.

Allowed values (enum): 9, 11, 13, 15

Default value (default): 15

adi,dmon-magnitude-enable — not listed as required here #

Enables the "data monitor magnitude" feature. Once the data monitor is enabled, it actively monitors the selected input data (from DIN) to the speaker amplifier. Once a data error is detected, the data monitor automatically places the device into software shutdown.

Value type (type): "boolean"

adi,dmon-magnitude-threshold-bits — not listed as required here #

Sets the threshold for the "data monitor magnitude" feature, in bits.

Allowed values (enum): 2, 3, 4, 5

Default value (default): 5

adi,dmon-duration-ms — not listed as required here #

Sets the duration for the "data monitor" feature, in milliseconds.

Allowed values (enum): 64, 256, 1024, 4096

Default value (default): 64

reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
i2c {
    #address-cells = <1>;
    #size-cells = <0>;
    max98396: amplifier@39 {
        compatible = "adi,max98396";
        reg = <0x39>;
        dvdd-supply = <&regulator_1v2>;
        dvddio-supply = <&regulator_1v8>;
        avdd-supply = <&regulator_1v8>;
        pvdd-supply = <&regulator_pvdd>;
        adi,vmon-slot-no = <0>;
        adi,imon-slot-no = <1>;
        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)

Edit this page