WM8903 audio codec
Schema identifier ($id): "http://devicetree.org/schemas/sound/wlf,wm8903.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
This device supports I2C only.
Pins on the device (for linking into audio routes):
* IN1L
* IN1R
* IN2L
* IN2R
* IN3L
* IN3R
* DMICDAT
* HPOUTL
* HPOUTR
* LINEOUTL
* LINEOUTR
* LOP
* LON
* ROP
* RON
* MICBIAS
Maintainers (maintainers): "patches@opensource.cirrus.com"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "wlf,wm8903"
reg — required here #
Maximum number of items (maxItems): 1
gpio-controller — required here #
true — No constraints added by this property rule.
#gpio-cells — required here #
Exact value (const): 2
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
micdet-cfg — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 0
Default register value for R6 (Mic Bias).
micdet-delay — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 100
The debounce delay for microphone detection in mS.
gpio-cfg — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
minItems: 5 maxItems: 5 A list of GPIO configuration register values. If absent, no configuration of these registers is performed. If any entry has the value 0xffffffff, that GPIO's configuration will not be modified.
AVDD-supply — not listed as required here #
Analog power supply regulator on the AVDD pin.
CPVDD-supply — not listed as required here #
Charge pump supply regulator on the CPVDD pin.
DBVDD-supply — not listed as required here #
Digital buffer supply regulator for the DBVDD pin.
DCVDD-supply — not listed as required here #
Digital core supply regulator for the DCVDD pin.
Required in this object (required): "compatible", "reg", "gpio-controller", "#gpio-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
wm8903: codec@1a {
compatible = "wlf,wm8903";
reg = <0x1a>;
interrupts = <347>;
AVDD-supply = <&fooreg_a>;
CPVDD-supply = <&fooreg_b>;
DBVDD-supply = <&fooreg_c>;
DCVDD-supply = <&fooreg_d>;
gpio-controller;
#gpio-cells = <2>;
micdet-cfg = <0>;
micdet-delay = <100>;
gpio-cfg = <
0x0600 /* DMIC_LR, output */
0x0680 /* DMIC_DAT, input */
0x0000 /* GPIO, output, low */
0x0200 /* Interrupt, output */
0x01a0 /* BCLK, input, active high */
>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)