NAU8325 audio Amplifier
Schema identifier ($id): "http://devicetree.org/schemas/sound/nuvoton,nau8325.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Seven Lee <WTLI@nuvoton.com>"
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): "nuvoton,nau8325"
reg — required here #
Maximum number of items (maxItems): 1
nuvoton,vref-impedance-ohms — not listed as required here #
The vref impedance to be used in ohms. Middle of voltage enables Tie-Off selection options. Due to the high impedance of the VREF pin, it is important to use a low-leakage capacitor.
Allowed values (enum): 0, 25000, 125000, 2500
nuvoton,dac-vref-microvolt — not listed as required here #
The DAC vref to be used in voltage. DAC reference voltage setting. Can be used for minor tuning of the output level. Since the VDDA is range between 1.62 to 1.98 voltage, the typical value for design is 1.8V. After the minor tuning, the final microvolt are as the below.
Allowed values (enum): 1800000, 2700000, 2880000, 3060000
nuvoton,alc-enable — not listed as required here #
Enable digital automatic level control (ALC) function.
Value type (type): "boolean"
nuvoton,clock-detection-disable — not listed as required here #
When clock detection is enabled, it will detect whether MCLK and FS are within the range. MCLK range is from 2.048MHz to 24.576MHz. FS range is from 8kHz to 96kHz. And also needs to detect the ratio MCLK_SRC/LRCK of 256, 400 or 500, and needs to detect the BCLK to make sure data is present. There needs to be at least 8 BCLK cycles per Frame Sync.
Value type (type): "boolean"
nuvoton,clock-det-data — not listed as required here #
Request clock detection to require 2048 non-zero samples before enabling the audio paths. If set then non-zero samples is required, otherwise it doesn't matter.
Value type (type): "boolean"
Required in this object (required): "compatible", "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
codec@21 {
compatible = "nuvoton,nau8325";
reg = <0x21>;
nuvoton,vref-impedance-ohms = <125000>;
nuvoton,dac-vref-microvolt = <2880000>;
nuvoton,alc-enable;
nuvoton,clock-det-data;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)