Dialog Semiconductor DA7212/DA7213 Audio Codec
Schema identifier ($id): "http://devicetree.org/schemas/sound/dlg,da7213.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Support Opensource <support.opensource@diasemi.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 #
Allowed values (enum): "dlg,da7212", "dlg,da7213"
reg — required here #
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Maximum number of items (maxItems): 1
clock-names — not listed as required here #
Exact value (const): "mclk"
#sound-dai-cells — not listed as required here #
Exact value (const): 0
dlg,micbias1-lvl — not listed as required here #
Voltage (mV) for Mic Bias 1
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 1600, 2200, 2500, 3000
dlg,micbias2-lvl — not listed as required here #
Voltage (mV) for Mic Bias 2
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 1600, 2200, 2500, 3000
dlg,dmic-data-sel — not listed as required here #
DMIC channel select based on clock edge
Allowed values (enum): "lrise_rfall", "lfall_rrise"
dlg,dmic-samplephase — not listed as required here #
When to sample audio from DMIC
Allowed values (enum): "on_clkedge", "between_clkedge"
dlg,dmic-clkrate — not listed as required here #
DMIC clock frequency (Hz)
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 1500000, 3000000
VDDA-supply — not listed as required here #
Analogue power supply
VDDIO-supply — not listed as required here #
I/O power supply
VDDMIC-supply — not listed as required here #
Mic Bias
VDDSP-supply — not listed as required here #
Speaker supply
ports — not listed as required here #
Shared schema rule ($ref): audio-graph-port.yaml#/definitions/ports
port — not listed as required here #
Shared schema rule ($ref): audio-graph-port.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
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@1a {
compatible = "dlg,da7213";
reg = <0x1a>;
clocks = <&clks 201>;
clock-names = "mclk";
#sound-dai-cells = <0>;
dlg,micbias1-lvl = <2500>;
dlg,micbias2-lvl = <2500>;
dlg,dmic-data-sel = "lrise_rfall";
dlg,dmic-samplephase = "between_clkedge";
dlg,dmic-clkrate = <3000000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)