xref: /freebsd/sys/contrib/device-tree/Bindings/sound/da7213.txt (revision da5432eda807c4b7232d030d5157d5b417ea4f52)
1Dialog Semiconductor DA7212/DA7213 Audio Codec bindings
2
3======
4
5Required properties:
6- compatible : Should be "dlg,da7212" or "dlg,da7213"
7- reg: Specifies the I2C slave address
8
9Optional properties:
10- clocks : phandle and clock specifier for codec MCLK.
11- clock-names : Clock name string for 'clocks' attribute, should be "mclk".
12
13- dlg,micbias1-lvl : Voltage (mV) for Mic Bias 1
14	[<1600>, <2200>, <2500>, <3000>]
15- dlg,micbias2-lvl : Voltage (mV) for Mic Bias 2
16	[<1600>, <2200>, <2500>, <3000>]
17- dlg,dmic-data-sel : DMIC channel select based on clock edge.
18	["lrise_rfall", "lfall_rrise"]
19- dlg,dmic-samplephase : When to sample audio from DMIC.
20	["on_clkedge", "between_clkedge"]
21- dlg,dmic-clkrate : DMIC clock frequency (Hz).
22	[<1500000>, <3000000>]
23
24 - VDDA-supply : Regulator phandle for Analogue power supply
25 - VDDMIC-supply : Regulator phandle for Mic Bias
26 - VDDIO-supply : Regulator phandle for I/O power supply
27
28======
29
30Example:
31
32	codec_i2c: da7213@1a {
33		compatible = "dlg,da7213";
34 		reg = <0x1a>;
35
36 		clocks = <&clks 201>;
37		clock-names = "mclk";
38
39		dlg,micbias1-lvl = <2500>;
40		dlg,micbias2-lvl = <2500>;
41
42		dlg,dmic-data-sel = "lrise_rfall";
43		dlg,dmic-samplephase = "between_clkedge";
44		dlg,dmic-clkrate = <3000000>;
45	};
46