Wolfson Microelectromics WM8731 audio CODEC
Schema identifier ($id): "http://devicetree.org/schemas/sound/wlf,wm8731.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "patches@opensource.cirrus.com"
Wolfson Microelectronics WM8731 audio CODEC
Pins on the device (for linking into audio routes):
* LOUT: Left Channel Line Output
* ROUT: Right Channel Line Output
* LHPOUT: Left Channel Headphone Output
* RHPOUT: Right Channel Headphone Output
* LLINEIN: Left Channel Line Input
* RLINEIN: Right Channel Line Input
* MICIN: Microphone Input
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "wlf,wm8731"
reg — required here #
Maximum number of items (maxItems): 1
#sound-dai-cells — not listed as required here #
Exact value (const): 0
clocks — not listed as required here #
Clock provider for MCLK pin.
Maximum number of items (maxItems): 1
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"mclk"
AVDD-supply — required here #
Analog power supply regulator on the AVDD pin.
HPVDD-supply — required here #
Headphone power supply regulator on the HPVDD pin.
DBVDD-supply — required here #
Digital buffer supply regulator for the DBVDD pin.
DCVDD-supply — required here #
Digital core supply regulator for the DCVDD pin.
Required in this object (required): "reg", "compatible", "AVDD-supply", "HPVDD-supply", "DBVDD-supply", "DCVDD-supply"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dai-common.yaml#
Rule 2 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi {
#address-cells = <1>;
#size-cells = <0>;
wm8731_i2c: codec@0 {
compatible = "wlf,wm8731";
reg = <0>;
spi-max-frequency = <12500000>;
AVDD-supply = <&avdd_reg>;
HPVDD-supply = <&hpvdd_reg>;
DCVDD-supply = <&dcvdd_reg>;
DBVDD-supply = <&dbvdd_reg>;
};
};
i2c {
#address-cells = <1>;
#size-cells = <0>;
wm8731_spi: codec@1b {
compatible = "wlf,wm8731";
reg = <0x1b>;
AVDD-supply = <&avdd_reg>;
HPVDD-supply = <&hpvdd_reg>;
DCVDD-supply = <&dcvdd_reg>;
DBVDD-supply = <&dbvdd_reg>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)