xref: /freebsd/sys/contrib/device-tree/include/dt-bindings/sound/rt5640.h (revision e67e85659c0de33e617e5fbf1028c6e8b49eee53)
1c66ec88fSEmmanuel Vadot /* SPDX-License-Identifier: GPL-2.0 */
2c66ec88fSEmmanuel Vadot #ifndef __DT_RT5640_H
3c66ec88fSEmmanuel Vadot #define __DT_RT5640_H
4c66ec88fSEmmanuel Vadot 
5c66ec88fSEmmanuel Vadot #define RT5640_DMIC1_DATA_PIN_NONE	0
6c66ec88fSEmmanuel Vadot #define RT5640_DMIC1_DATA_PIN_IN1P	1
7c66ec88fSEmmanuel Vadot #define RT5640_DMIC1_DATA_PIN_GPIO3	2
8c66ec88fSEmmanuel Vadot 
9c66ec88fSEmmanuel Vadot #define RT5640_DMIC2_DATA_PIN_NONE	0
10c66ec88fSEmmanuel Vadot #define RT5640_DMIC2_DATA_PIN_IN1N	1
11c66ec88fSEmmanuel Vadot #define RT5640_DMIC2_DATA_PIN_GPIO4	2
12c66ec88fSEmmanuel Vadot 
13c66ec88fSEmmanuel Vadot #define RT5640_JD_SRC_GPIO1		1
14c66ec88fSEmmanuel Vadot #define RT5640_JD_SRC_JD1_IN4P		2
15c66ec88fSEmmanuel Vadot #define RT5640_JD_SRC_JD2_IN4N		3
16c66ec88fSEmmanuel Vadot #define RT5640_JD_SRC_GPIO2		4
17c66ec88fSEmmanuel Vadot #define RT5640_JD_SRC_GPIO3		5
18c66ec88fSEmmanuel Vadot #define RT5640_JD_SRC_GPIO4		6
19*e67e8565SEmmanuel Vadot #define RT5640_JD_SRC_HDA_HEADER	7
20c66ec88fSEmmanuel Vadot 
21c66ec88fSEmmanuel Vadot #define RT5640_OVCD_SF_0P5		0
22c66ec88fSEmmanuel Vadot #define RT5640_OVCD_SF_0P75		1
23c66ec88fSEmmanuel Vadot #define RT5640_OVCD_SF_1P0		2
24c66ec88fSEmmanuel Vadot #define RT5640_OVCD_SF_1P5		3
25c66ec88fSEmmanuel Vadot 
26c66ec88fSEmmanuel Vadot #endif /* __DT_RT5640_H */
27