xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/sound/es8311.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1Everest ES8311 audio CODEC
2
3Required properties:
4
5  - compatible: "everest,es8311"
6  - reg: the I2C address of the device for I2C
7  - spk-ctl-gpios: control spk enable/disable
8Optional properties:
9
10- clocks: The phandle of the master clock to the CODEC
11- clock-names: Should be "mclk"
12- adc-pga-gain: The PGA Gain of ADC, the value range is: 0(0dB) ~ 10(30dB),
13                the step is 3dB.
14- adc-volume: The volume of ADC, range is: 0x00(-95dB) ~ 0xff(+32dB), 0dB is 0xbf.
15- dac-volume: The volume of DAC, range is: 0x00(-95dB) ~ 0xff(+32dB), 0dB is 0xbf.
16- aec-mode: The string of description AEC path between ADC and DAC, It should be:
17		"adc left, adc right",
18		"adc left, null right",
19		"null left, adc right",
20		"null left, null right",
21		"dac left, adc right",
22		"adc left, dac right",
23		"dac left, dac right"
24	    And aec-mode is "adc left, adc right" by default, if the property
25	    is not specified.
26Example:
27
28es8311: es8311@18 {
29	compatible = "everest,es8311";
30	reg = <0x18>;
31	clocks = <&cru MCLK_I2S0_TX_OUT2IO>;
32	clock-names = "mclk";
33	adc-pga-gain = <0>;  /* 0dB */
34	adc-volume = <0xbf>;  /* 0dB */
35	dac-volume = <0xbf>;  /* 0dB */
36	aec-mode = "dac left, adc right";
37	spk-ctl-gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>;
38};
39