18c2ecf20Sopenharmony_ciWM8960 audio CODEC
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciThis device supports I2C only.
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ciRequired properties:
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci  - compatible : "wlf,wm8960"
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci  - reg : the I2C address of the device.
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ciOptional properties:
128c2ecf20Sopenharmony_ci  - wlf,shared-lrclk: This is a boolean property. If present, the LRCM bit of
138c2ecf20Sopenharmony_ci	R24 (Additional control 2) gets set, indicating that ADCLRC and DACLRC pins
148c2ecf20Sopenharmony_ci	will be disabled only when ADC (Left and Right) and DAC (Left and Right)
158c2ecf20Sopenharmony_ci	are disabled.
168c2ecf20Sopenharmony_ci	When wm8960 works on synchronize mode and DACLRC pin is used to supply
178c2ecf20Sopenharmony_ci	frame clock, it will no frame clock for captrue unless enable DAC to enable
188c2ecf20Sopenharmony_ci	DACLRC pin. If shared-lrclk is present, no need to enable DAC for captrue.
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ci  - wlf,capless: This is a boolean property. If present, OUT3 pin will be
218c2ecf20Sopenharmony_ci	enabled and disabled together with HP_L and HP_R pins in response to jack
228c2ecf20Sopenharmony_ci	detect events.
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ci  - wlf,hp-cfg: A list of headphone jack detect configuration register values.
258c2ecf20Sopenharmony_ci		The list must be 3 entries long.
268c2ecf20Sopenharmony_ci		hp-cfg[0]: HPSEL[1:0] of R48 (Additional Control 4).
278c2ecf20Sopenharmony_ci		hp-cfg[1]: {HPSWEN:HPSWPOL} of R24 (Additional Control 2).
288c2ecf20Sopenharmony_ci		hp-cfg[2]: {TOCLKSEL:TOEN} of R23 (Additional Control 1).
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ci  - wlf,gpio-cfg: A list of GPIO configuration register values.
318c2ecf20Sopenharmony_ci		  The list must be 2 entries long.
328c2ecf20Sopenharmony_ci		  gpio-cfg[0]: ALRCGPIO of R9 (Audio interface)
338c2ecf20Sopenharmony_ci		  gpio-cfg[1]: {GPIOPOL:GPIOSEL[2:0]} of R48 (Additional Control 4).
348c2ecf20Sopenharmony_ci
358c2ecf20Sopenharmony_ciExample:
368c2ecf20Sopenharmony_ci
378c2ecf20Sopenharmony_ciwm8960: codec@1a {
388c2ecf20Sopenharmony_ci	compatible = "wlf,wm8960";
398c2ecf20Sopenharmony_ci	reg = <0x1a>;
408c2ecf20Sopenharmony_ci
418c2ecf20Sopenharmony_ci	wlf,shared-lrclk;
428c2ecf20Sopenharmony_ci};
43