xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/sound/rockchip,vad.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun* Rockchip VAD controller
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun
5*4882a593Smuzhiyun- compatible: should be one of the following
6*4882a593Smuzhiyun  - "rockchip,rk1808es-vad": for rk1808es
7*4882a593Smuzhiyun  - "rockchip,rk1808-vad": for rk1808
8*4882a593Smuzhiyun  - "rockchip,rk3308-vad": for rk3308
9*4882a593Smuzhiyun  - "rockchip,rk3568-vad": for rk3568
10*4882a593Smuzhiyun  - "rockchip,rk3588-vad": for rk3588
11*4882a593Smuzhiyun- reg: physical base address of the controller and length of memory mapped
12*4882a593Smuzhiyun  region.
13*4882a593Smuzhiyun- clocks: a list of phandle + clock-specifer pairs, one for each entry in clock-names.
14*4882a593Smuzhiyun- clock-names: should contain following:
15*4882a593Smuzhiyun- interrupts: should contain the vad interrupt.
16*4882a593Smuzhiyun- rockchip,audio-sram: the phandle of audio sram for vad.
17*4882a593Smuzhiyun- rockchip,audio-src: the phandle of audio src for vad.
18*4882a593Smuzhiyun- rockchip,buffer-time-ms: vad sram buffer time msec.
19*4882a593Smuzhiyun- rockchip,det-channel: the channel(0~7) is used for detection.
20*4882a593Smuzhiyun- rockchip,mode: vad work mode.
21*4882a593Smuzhiyun  - 0: begin to store the data after voice detected.
22*4882a593Smuzhiyun  - 1: begin to store the data after vad is enabled.
23*4882a593Smuzhiyun  - 2: don't store the data.
24*4882a593Smuzhiyun
25*4882a593SmuzhiyunOptional properties:
26*4882a593Smuzhiyun- rockchip,acodec-cfg: boolean, config acodec after voice activity detection.
27*4882a593Smuzhiyun
28*4882a593SmuzhiyunExample for rk3308 VAD controller:
29*4882a593Smuzhiyun
30*4882a593Smuzhiyunvad: vad@ff3c0000 {
31*4882a593Smuzhiyun	compatible = "rockchip,rk3308-vad";
32*4882a593Smuzhiyun	reg = <0x0 0xff3c0000 0x0 0x10000>;
33*4882a593Smuzhiyun	reg-names = "vad";
34*4882a593Smuzhiyun	clocks = <&cru HCLK_VAD>;
35*4882a593Smuzhiyun	clock-names = "hclk";
36*4882a593Smuzhiyun	interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
37*4882a593Smuzhiyun	rockchip,audio-sram = <&vad_sram>;
38*4882a593Smuzhiyun	rockchip,audio-src = <&i2s_8ch_0>;
39*4882a593Smuzhiyun	rockchip,det-channel = <0>;
40*4882a593Smuzhiyun	rockchip,mode = <0>;
41*4882a593Smuzhiyun	status = "disabled";
42*4882a593Smuzhiyun};
43