wolfson,wm8904 (on i2c bus)

Description

WM8904 audio codec

Properties

Properties not inherited from the base binding file.

Name

Type

Details

clock-source

string

Codec's internal clock signal (SYSCLK) source selection. These options
are available:
- "MCLK": WM8904's MCLK pin (supplied by the host)
- "FLL":  WM8904's FLL facility, can be free-running
The "MCLK" option is default, as this clock signal is usually supplied
by the host.

Default value: MCLK

Legal values: MCLK, FLL

fll-sysclk-fs-ratio

int

SYSCLK to sample rate ratio used when "clock-source" is set to "FLL".
The driver configures the FLL to generate a target SYSCLK frequency
of (fll-sysclk-fs-ratio * <sample rate>), where the sample rate comes
from the audio codec configuration provided at runtime. The FLL
reference is the MCLK input described by "clocks".
This property is ignored when "clock-source" is set to "MCLK".

Default value: 256

Legal values: 64, 128, 192, 256, 384, 512, 768, 1024, 1408, 1536

input-pga-select

int

Selects the WM8904 input PGA source channel.
Only single-ended input mode is supported.
On the 32-pin QFN package, only channels 1 and 2 are supported.

Legal values: 1, 2, 3

input-pga-volume

int

Static analog input PGA gain value, applied to the input PGA.
Used to set fixed input gain staging to match the sensitivity
of the connected microphone or line-in source.

Valid range is 0 to 31 (5-bit register, 0x00-0x1F / 00000b-11111b),
corresponding to an analog gain range of -1.5 dB to +28.3 dB in
~0.96 dB steps.

Default value: 5

Value range: 0 to 31

wolfson,mic-bias-voltage

string

Select microphone bias voltage for the connected microphone input.
* "avdd-9-10":  Vbias = 9/10 x AVDD
* "avdd-10-9":  Vbias = 10/9 x AVDD
* "avdd-7-6":   Vbias = 7/6 x AVDD
* "avdd-4-3":   Vbias = 4/3 x AVDD
* "avdd-3-2":   Vbias = 3/2 x AVDD

If the property is not present, the bias voltage is not enabled.

Legal values: avdd-9-10, avdd-10-9, avdd-7-6, avdd-4-3, avdd-3-2

supply-gpios

phandle-array

GPIO specifier that controls power to the device.

This property should be provided when the device has a dedicated
switch that controls power to the device.  The supply state is
entirely the responsibility of the device driver.

Contrast with vin-supply.

vin-supply

phandle

Reference to the regulator that controls power to the device.
The referenced devicetree node must have a regulator compatible.

This property should be provided when device power is supplied
by a shared regulator.  The supply state is dependent on the
request status of all devices fed by the regulator.

Contrast with supply-gpios.  If both properties are provided
then the regulator must be requested before the supply GPIOS is
set to an active state, and the supply GPIOS must be set to an
inactive state before releasing the regulator.