Wolfson WM8960 audio codec
Schema identifier ($id): "http://devicetree.org/schemas/sound/wlf,wm8960.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "patches@opensource.cirrus.com"
Wolfson WM8960 audio codec
Pins on the device (for linking into audio routes):
Outputs:
* HP_L : Left Headphone/Line Output
* HP_R : Right Headphone/Line Output
* SPK_LP : Left Speaker Output (Positive)
* SPK_LN : Left Speaker Output (Negative)
* SPK_RP : Right Speaker Output (Positive)
* SPK_RN : Right Speaker Output (Negative)
* OUT3 : Mono, Left, Right or buffered midrail output for capless mode
Inputs:
* LINPUT1 : Left single-ended or negative differential microphone input
* RINPUT1 : Right single-ended or negative differential microphone input
* LINPUT2 : Left line input or positive differential microphone input
* RINPUT2 : Right line input or positive differential microphone input
* LINPUT3 : Left line input, positive differential microphone, or Jack Detect 2
* RINPUT3 : Right line input, positive differential microphone, or Jack Detect 3
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "wlf,wm8960"
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 #
Array item rules (items) #
Item 1
Exact value (
const):"mclk"
#sound-dai-cells — not listed as required here #
Exact value (const): 0
AVDD-supply — not listed as required here #
Analogue supply.
DBVDD-supply — not listed as required here #
Digital Buffer Supply.
DCVDD-supply — not listed as required here #
Digital Core Supply.
SPKVDD1-supply — not listed as required here #
Supply for speaker drivers 1.
SPKVDD2-supply — not listed as required here #
Supply for speaker drivers 2.
wlf,capless — not listed as required here #
Value type (type): "boolean"
If present, OUT3 pin will be enabled and disabled together with HP_L and HP_R pins in response to jack detect events.
wlf,gpio-cfg — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Maximum number of items (maxItems): 2
A list of GPIO configuration register values. - gpio-cfg[0]: ALRCGPIO of R9 (Audio interface) - gpio-cfg[1]: {GPIOPOL:GPIOSEL[2:0]} of R48 (Additional Control 4).
wlf,hp-cfg — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Maximum number of items (maxItems): 3
A list of headphone jack detect configuration register values: - hp-cfg[0]: HPSEL[1:0] of R48 (Additional Control 4). - hp-cfg[1]: {HPSWEN:HPSWPOL} of R24 (Additional Control 2). - hp-cfg[2]: {TOCLKSEL:TOEN} of R23 (Additional Control 1).
wlf,shared-lrclk — not listed as required here #
Value type (type): "boolean"
If present, the LRCM bit of R24 (Additional control 2) gets set, indicating that ADCLRC and DACLRC pins will be disabled only when ADC (Left and Right) and DAC (Left and Right) are disabled. When WM8960 works on synchronize mode and DACLRC pin is used to supply frame clock, it will no frame clock for captrue unless enable DAC to enable DACLRC pin. If shared-lrclk is present, no need to enable DAC for captrue.
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"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dai-common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
audio-codec@1a {
compatible = "wlf,wm8960";
reg = <0x1a>;
clocks = <&clks 0>;
clock-names = "mclk";
#sound-dai-cells = <0>;
wlf,hp-cfg = <3 2 3>;
wlf,gpio-cfg = <1 3>;
wlf,shared-lrclk;
DCVDD-supply = <®_audio>;
DBVDD-supply = <®_audio>;
AVDD-supply = <®_audio>;
SPKVDD1-supply = <®_audio>;
SPKVDD2-supply = <®_audio>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause