wolfson,wm8960 (on i2c bus)

Description

Wolfson Microelectronics WM8960 Audio CODEC

Properties

Properties not inherited from the base binding file.

Name

Type

Details

clk-out

boolean

Enable SYSCLK output on GPIO1.

hp-jd

string

Selects the headphone jack detect input. Defaults to "WM8960_GPIO1",
as this is the chip's default configuration.

- "WM8960_GPIO1": GPIO1 pin
- "WM8960_JD2": JD2 pin
- "WM8960_JD3": JD3 pin

Default value: WM8960_GPIO1

Legal values: WM8960_GPIO1, WM8960_JD2, WM8960_JD3

gpio1-sel

string

Selects the GPIO1 function. Defaults to "WM8960_JDO", as this the chip's
default configuration.

- "WM8960_JDO": jack detect output
- "WM8960_Reserved": reserved function
- "WM8960_DJDO": debounced jack detect output
- "WM8960_TEMP_OK": temperature status output
- "WM8960_SYSCLK_OUT": SYSCLK output
- "WM8960_PLL_LOCK": PLL lock status output

Default value: WM8960_JDO

Legal values: WM8960_JDO, WM8960_Reserved, WM8960_DJDO, WM8960_TEMP_OK, WM8960_SYSCLK_OUT, WM8960_PLL_LOCK

left-input

string

Selects the default left audio input. Defaults to
"WM8960_IN_MUTE".

- "WM8960_IN_MUTE": muted, no input
- "WM8960_IN_MIC_SE_1": microphone, single-ended on 1
- "WM8960_IN_MIC_SE_2": microphone, single-ended on 2
- "WM8960_IN_MIC_SE_3": microphone, single-ended on 3
- "WM8960_IN_MIC_DE_12": microphone, differential on 1 and 2
- "WM8960_IN_MIC_DE_13": microphone, differential on 1 and 3
- "WM8960_IN_MIC_DE_23": microphone, differential on 2 and 3
- "WM8960_IN_LINE_2": line input on 2
- "WM8960_IN_LINE_3": line input on 3

Default value: WM8960_IN_MUTE

Legal values: WM8960_IN_MUTE, WM8960_IN_MIC_SE_1, WM8960_IN_MIC_SE_2, WM8960_IN_MIC_SE_3, WM8960_IN_MIC_DE_12, WM8960_IN_MIC_DE_13, WM8960_IN_MIC_DE_23, WM8960_IN_LINE_2, WM8960_IN_LINE_3

right-input

string

Selects the default right audio input. Defaults to
"WM8960_IN_MUTE".

- "WM8960_IN_MUTE": muted, no input
- "WM8960_IN_MIC_SE_1": microphone, single-ended on 1
- "WM8960_IN_MIC_SE_2": microphone, single-ended on 2
- "WM8960_IN_MIC_SE_3": microphone, single-ended on 3
- "WM8960_IN_MIC_DE_12": microphone, differential on 1 and 2
- "WM8960_IN_MIC_DE_13": microphone, differential on 1 and 3
- "WM8960_IN_MIC_DE_23": microphone, differential on 2 and 3
- "WM8960_IN_LINE_2": line input on 2
- "WM8960_IN_LINE_3": line input on 3

Default value: WM8960_IN_MUTE

Legal values: WM8960_IN_MUTE, WM8960_IN_MIC_SE_1, WM8960_IN_MIC_SE_2, WM8960_IN_MIC_SE_3, WM8960_IN_MIC_DE_12, WM8960_IN_MIC_DE_13, WM8960_IN_MIC_DE_23, WM8960_IN_LINE_2, WM8960_IN_LINE_3

enable-spkr

boolean

Enable the speaker (Class D) audio output by default.

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.