Wolfson WM8962 Ultra-Low Power Stereo CODEC
Schema identifier ($id): "http://devicetree.org/schemas/sound/wlf,wm8962.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "patches@opensource.cirrus.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): "wlf,wm8962"
reg — required here #
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
#sound-dai-cells — not listed as required here #
Exact value (const): 0
AVDD-supply — required here #
Analogue supply.
CPVDD-supply — required here #
Charge pump power supply.
DBVDD-supply — required here #
Digital Buffer Supply.
DCVDD-supply — required here #
Digital Core Supply.
MICVDD-supply — required here #
Microphone bias amp supply.
PLLVDD-supply — required here #
PLL Supply
SPKVDD1-supply — required here #
Supply for left speaker drivers.
SPKVDD2-supply — required here #
Supply for right speaker drivers.
spk-mono — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
If present, the SPK_MONO bit of R51 (Class D Control 2) gets set, indicating that the speaker is in mono mode.
mic-cfg — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default register value for R48 (Additional Control 4). If absent, the default should be the register default.
gpio-cfg — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 6
Maximum number of items (maxItems): 6
A list of GPIO configuration register values. If absent, no configuration of these registers is performed. Note that only values within [0x0, 0xffff] are valid. Any other value is regarded as setting the GPIO register to its reset value 0x0.
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", "AVDD-supply", "CPVDD-supply", "DBVDD-supply", "DCVDD-supply", "MICVDD-supply", "PLLVDD-supply", "SPKVDD1-supply", "SPKVDD2-supply"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/imx6qdl-clock.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
wm8962: codec@1a {
compatible = "wlf,wm8962";
reg = <0x1a>;
clocks = <&clks IMX6QDL_CLK_CKO>;
DCVDD-supply = <®_audio>;
DBVDD-supply = <®_audio>;
AVDD-supply = <®_audio>;
CPVDD-supply = <®_audio>;
MICVDD-supply = <®_audio>;
PLLVDD-supply = <®_audio>;
SPKVDD1-supply = <®_audio>;
SPKVDD2-supply = <®_audio>;
gpio-cfg = <
0x0000 /* 0:Default */
0x0000 /* 1:Default */
0x0013 /* 2:FN_DMICCLK */
0x0000 /* 3:Default */
0x8014 /* 4:FN_DMICCDAT */
0x0000 /* 5:Default */
>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)