Maxim Integrated MAX98925/MAX98926/MAX98927 speaker amplifier
Schema identifier ($id): "http://devicetree.org/schemas/sound/maxim,max98925.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Ryan Lee <ryans.lee@maximintegrated.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "maxim,max98925", "maxim,max98926", "maxim,max98927"
reg — required here #
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
#sound-dai-cells — not listed as required here #
Exact value (const): 0
vmon-slot-no — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 30
Default value (default): 0
Slot number used to send voltage information or in inteleave mode this will be used as interleave slot.
imon-slot-no — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 30
Default value (default): 0
Slot number used to send current information.
maxim,interleave-mode — not listed as required here #
Value type (type): "boolean"
When using two MAX9892X in a system it is possible to create ADC data that will overflow the frame size. When enabled, the Digital Audio Interleave mode provides a means to output VMON and IMON data from two devices on a single DOUT line when running smaller frames sizes such as 32 BCLKS per LRCLK or 48 BCLKS per LRCLK.
Required in this object (required): "compatible", "reg"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dai-common.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
vmon-slot-no— not listed as required hereMinimum value (
minimum):0Maximum value (
maximum):15
imon-slot-no— not listed as required hereMinimum value (
minimum):0Maximum value (
maximum):15
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>;
audio-codec@3a {
compatible = "maxim,max98927";
reg = <0x3a>;
#sound-dai-cells = <0>;
pinctrl-0 = <&speaker_default>;
pinctrl-names = "default";
reset-gpios = <&tlmm 69 GPIO_ACTIVE_LOW>;
vmon-slot-no = <1>;
imon-slot-no = <0>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause