Awinic AW8738 Audio Amplifier
Schema identifier ($id): "http://devicetree.org/schemas/sound/awinic,aw8738.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Stephan Gerhold <stephan@gerhold.net>"
The Awinic AW8738 is a simple audio amplifier with different operation modes (set using one-wire pulse control). The mode configures the speaker-guard function (primarily the power limit for the amplifier).
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dai-common.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "awinic,aw8738"
mode-gpios — required here #
GPIO used for one-wire pulse control. The pin is typically called SHDN (active-low), but this is misleading since it is actually more than just a simple shutdown/enable control.
Maximum number of items (maxItems): 1
awinic,mode — required here #
Operation mode (number of pulses for one-wire pulse control)
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 1
Maximum value (maximum): 7
sound-name-prefix — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "mode-gpios", "awinic,mode"
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>
audio-amplifier {
compatible = "awinic,aw8738";
mode-gpios = <&msmgpio 114 GPIO_ACTIVE_HIGH>;
awinic,mode = <5>;
sound-name-prefix = "Speaker Amp";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)