Commit | Line | Data |
---|---|---|
5ce56832 FE |
1 | WM8962 audio CODEC |
2 | ||
3 | This device supports I2C only. | |
4 | ||
5 | Required properties: | |
6 | ||
7 | - compatible : "wlf,wm8962" | |
8 | ||
9 | - reg : the I2C address of the device. | |
10 | ||
d74e9e70 NC |
11 | Optional properties: |
12 | - spk-mono: This is a boolean property. If present, the SPK_MONO bit | |
13 | of R51 (Class D Control 2) gets set, indicating that the speaker is | |
14 | in mono mode. | |
15 | ||
16 | - mic-cfg : Default register value for R48 (Additional Control 4). | |
17 | If absent, the default should be the register default. | |
18 | ||
19 | - gpio-cfg : A list of GPIO configuration register values. The list must | |
20 | be 6 entries long. If absent, no configuration of these registers is | |
21 | performed. And note that only the value within [0x0, 0xffff] is valid. | |
22 | Any other value is regarded as setting the GPIO register by its reset | |
23 | value 0x0. | |
24 | ||
5ce56832 FE |
25 | Example: |
26 | ||
27 | codec: wm8962@1a { | |
28 | compatible = "wlf,wm8962"; | |
29 | reg = <0x1a>; | |
d74e9e70 NC |
30 | |
31 | gpio-cfg = < | |
32 | 0x0000 /* 0:Default */ | |
33 | 0x0000 /* 1:Default */ | |
34 | 0x0013 /* 2:FN_DMICCLK */ | |
35 | 0x0000 /* 3:Default */ | |
36 | 0x8014 /* 4:FN_DMICCDAT */ | |
37 | 0x0000 /* 5:Default */ | |
38 | >; | |
5ce56832 | 39 | }; |