xref: /linux/sound/soc/codecs/cs35l35.h (revision 6387f866a2ccbf393ed5ffe7e2754eb5d0781441)
1*6387f866SBrian Austin /*
2*6387f866SBrian Austin  * cs35l35.h -- CS35L35 ALSA SoC audio driver
3*6387f866SBrian Austin  *
4*6387f866SBrian Austin  * Copyright 2016 Cirrus Logic, Inc.
5*6387f866SBrian Austin  *
6*6387f866SBrian Austin  * Author: Brian Austin <brian.austin@cirrus.com>
7*6387f866SBrian Austin  *
8*6387f866SBrian Austin  * This program is free software; you can redistribute it and/or modify
9*6387f866SBrian Austin  * it under the terms of the GNU General Public License version 2 as
10*6387f866SBrian Austin  * published by the Free Software Foundation.
11*6387f866SBrian Austin  *
12*6387f866SBrian Austin  */
13*6387f866SBrian Austin 
14*6387f866SBrian Austin #ifndef __CS35L35_H__
15*6387f866SBrian Austin #define __CS35L35_H__
16*6387f866SBrian Austin 
17*6387f866SBrian Austin #define CS35L35_FIRSTREG		0x01
18*6387f866SBrian Austin #define CS35L35_LASTREG			0x7E
19*6387f866SBrian Austin #define CS35L35_CHIP_ID			0x00035A35
20*6387f866SBrian Austin #define CS35L35_DEVID_AB		0x01	/* Device ID A & B [RO] */
21*6387f866SBrian Austin #define CS35L35_DEVID_CD		0x02    /* Device ID C & D [RO] */
22*6387f866SBrian Austin #define CS35L35_DEVID_E			0x03    /* Device ID E [RO] */
23*6387f866SBrian Austin #define CS35L35_FAB_ID			0x04	/* Fab ID [RO] */
24*6387f866SBrian Austin #define CS35L35_REV_ID			0x05	/* Revision ID [RO] */
25*6387f866SBrian Austin #define CS35L35_PWRCTL1			0x06    /* Power Ctl 1 */
26*6387f866SBrian Austin #define CS35L35_PWRCTL2			0x07    /* Power Ctl 2 */
27*6387f866SBrian Austin #define CS35L35_PWRCTL3			0x08	/* Power Ctl 3 */
28*6387f866SBrian Austin #define CS35L35_CLK_CTL1		0x0A	/* Clocking Ctl 1 */
29*6387f866SBrian Austin #define CS35L35_CLK_CTL2		0x0B	/* Clocking Ctl 2 */
30*6387f866SBrian Austin #define CS35L35_CLK_CTL3		0x0C	/* Clocking Ctl 3 */
31*6387f866SBrian Austin #define CS35L35_SP_FMT_CTL1		0x0D	/* Serial Port Format CTL1 */
32*6387f866SBrian Austin #define CS35L35_SP_FMT_CTL2		0x0E	/* Serial Port Format CTL2 */
33*6387f866SBrian Austin #define CS35L35_SP_FMT_CTL3		0x0F	/* Serial Port Format CTL3 */
34*6387f866SBrian Austin #define CS35L35_MAG_COMP_CTL		0x13	/* Magnitude Comp CTL */
35*6387f866SBrian Austin #define CS35L35_AMP_INP_DRV_CTL		0x14	/* Amp Input Drive Ctl */
36*6387f866SBrian Austin #define CS35L35_AMP_DIG_VOL_CTL		0x15	/* Amplifier Dig Volume Ctl */
37*6387f866SBrian Austin #define CS35L35_AMP_DIG_VOL		0x16	/* Amplifier Dig Volume */
38*6387f866SBrian Austin #define CS35L35_ADV_DIG_VOL		0x17	/* Advisory Digital Volume */
39*6387f866SBrian Austin #define CS35L35_PROTECT_CTL		0x18	/* Amp Gain - Prot Ctl Param */
40*6387f866SBrian Austin #define CS35L35_AMP_GAIN_AUD_CTL	0x19	/* Amp Serial Port Gain Ctl */
41*6387f866SBrian Austin #define CS35L35_AMP_GAIN_PDM_CTL	0x1A	/* Amplifier Gain PDM Ctl */
42*6387f866SBrian Austin #define CS35L35_AMP_GAIN_ADV_CTL	0x1B	/* Amplifier Gain Ctl */
43*6387f866SBrian Austin #define CS35L35_GPI_CTL			0x1C	/* GPI Ctl */
44*6387f866SBrian Austin #define CS35L35_BST_CVTR_V_CTL		0x1D	/* Boost Conv Voltage Ctl */
45*6387f866SBrian Austin #define CS35L35_BST_PEAK_I		0x1E	/* Boost Conv Peak Current */
46*6387f866SBrian Austin #define CS35L35_BST_RAMP_CTL		0x20	/* Boost Conv Soft Ramp Ctl */
47*6387f866SBrian Austin #define CS35L35_BST_CONV_COEF_1		0x21	/* Boost Conv Coefficients 1 */
48*6387f866SBrian Austin #define CS35L35_BST_CONV_COEF_2		0x22	/* Boost Conv Coefficients 2 */
49*6387f866SBrian Austin #define CS35L35_BST_CONV_SLOPE_COMP	0x23	/* Boost Conv Slope Comp */
50*6387f866SBrian Austin #define CS35L35_BST_CONV_SW_FREQ	0x24	/* Boost Conv L BST SW Freq */
51*6387f866SBrian Austin #define CS35L35_CLASS_H_CTL		0x30	/* CLS H Control */
52*6387f866SBrian Austin #define CS35L35_CLASS_H_HEADRM_CTL	0x31	/* CLS H Headroom Ctl */
53*6387f866SBrian Austin #define CS35L35_CLASS_H_RELEASE_RATE	0x32	/* CLS H Release Rate */
54*6387f866SBrian Austin #define CS35L35_CLASS_H_FET_DRIVE_CTL	0x33	/* CLS H Weak FET Drive Ctl */
55*6387f866SBrian Austin #define CS35L35_CLASS_H_VP_CTL		0x34	/* CLS H VP Ctl */
56*6387f866SBrian Austin #define CS35L35_CLASS_H_STATUS		0x38	/* CLS H Status */
57*6387f866SBrian Austin #define CS35L35_VPBR_CTL		0x3A	/* VPBR Ctl */
58*6387f866SBrian Austin #define CS35L35_VPBR_VOL_CTL		0x3B	/* VPBR Volume Ctl */
59*6387f866SBrian Austin #define CS35L35_VPBR_TIMING_CTL		0x3C	/* VPBR Timing Ctl */
60*6387f866SBrian Austin #define CS35L35_VPBR_MODE_VOL_CTL	0x3D	/* VPBR Mode/Attack Vol Ctl */
61*6387f866SBrian Austin #define CS35L35_VPBR_ATTEN_STATUS	0x4B	/* VPBR Attenuation Status */
62*6387f866SBrian Austin #define CS35L35_SPKR_MON_CTL		0x4E	/* Speaker Monitoring Ctl */
63*6387f866SBrian Austin #define CS35L35_IMON_SCALE_CTL		0x51	/* IMON Scale Ctl */
64*6387f866SBrian Austin #define CS35L35_AUDIN_RXLOC_CTL		0x52	/* Audio Input RX Loc Ctl */
65*6387f866SBrian Austin #define CS35L35_ADVIN_RXLOC_CTL		0x53	/* Advisory Input RX Loc Ctl */
66*6387f866SBrian Austin #define CS35L35_VMON_TXLOC_CTL		0x54	/* VMON TX Loc Ctl */
67*6387f866SBrian Austin #define CS35L35_IMON_TXLOC_CTL		0x55	/* IMON TX Loc Ctl */
68*6387f866SBrian Austin #define CS35L35_VPMON_TXLOC_CTL		0x56	/* VPMON TX Loc Ctl */
69*6387f866SBrian Austin #define CS35L35_VBSTMON_TXLOC_CTL	0x57	/* VBSTMON TX Loc Ctl */
70*6387f866SBrian Austin #define CS35L35_VPBR_STATUS_TXLOC_CTL	0x58	/* VPBR Status TX Loc Ctl */
71*6387f866SBrian Austin #define CS35L35_ZERO_FILL_LOC_CTL	0x59	/* Zero Fill Loc Ctl */
72*6387f866SBrian Austin #define CS35L35_AUDIN_DEPTH_CTL		0x5A	/* Audio Input Depth Ctl */
73*6387f866SBrian Austin #define CS35L35_SPKMON_DEPTH_CTL	0x5B	/* SPK Mon Output Depth Ctl */
74*6387f866SBrian Austin #define CS35L35_SUPMON_DEPTH_CTL	0x5C	/* Supply Mon Out Depth Ctl */
75*6387f866SBrian Austin #define CS35L35_ZEROFILL_DEPTH_CTL	0x5D	/* Zero Fill Mon Output Ctl */
76*6387f866SBrian Austin #define CS35L35_MULT_DEV_SYNCH1		0x62	/* Multidevice Synch */
77*6387f866SBrian Austin #define CS35L35_MULT_DEV_SYNCH2		0x63	/* Multidevice Synch 2 */
78*6387f866SBrian Austin #define CS35L35_PROT_RELEASE_CTL	0x64	/* Protection Release Ctl */
79*6387f866SBrian Austin #define CS35L35_DIAG_MODE_REG_LOCK	0x68	/* Diagnostic Mode Reg Lock */
80*6387f866SBrian Austin #define CS35L35_DIAG_MODE_CTL_1		0x69	/* Diagnostic Mode Ctl 1 */
81*6387f866SBrian Austin #define CS35L35_DIAG_MODE_CTL_2		0x6A	/* Diagnostic Mode Ctl 2 */
82*6387f866SBrian Austin #define CS35L35_INT_MASK_1		0x70	/* Interrupt Mask 1 */
83*6387f866SBrian Austin #define CS35L35_INT_MASK_2		0x71	/* Interrupt Mask 2 */
84*6387f866SBrian Austin #define CS35L35_INT_MASK_3		0x72	/* Interrupt Mask 3 */
85*6387f866SBrian Austin #define CS35L35_INT_MASK_4		0x73	/* Interrupt Mask 4 */
86*6387f866SBrian Austin #define CS35L35_INT_STATUS_1		0x74	/* Interrupt Status 1 */
87*6387f866SBrian Austin #define CS35L35_INT_STATUS_2		0x75	/* Interrupt Status 2 */
88*6387f866SBrian Austin #define CS35L35_INT_STATUS_3		0x76	/* Interrupt Status 3 */
89*6387f866SBrian Austin #define CS35L35_INT_STATUS_4		0x77	/* Interrupt Status 4 */
90*6387f866SBrian Austin #define CS35L35_PLL_STATUS		0x78	/* PLL Status */
91*6387f866SBrian Austin #define CS35L35_OTP_TRIM_STATUS		0x7E	/* OTP Trim Status */
92*6387f866SBrian Austin 
93*6387f866SBrian Austin #define CS35L35_MAX_REGISTER		0x7F
94*6387f866SBrian Austin 
95*6387f866SBrian Austin /* CS35L35_PWRCTL1 */
96*6387f866SBrian Austin #define CS35L35_SFT_RST			0x80
97*6387f866SBrian Austin #define CS35L35_DISCHG_FLT		0x02
98*6387f866SBrian Austin #define CS35L35_PDN_ALL			0x01
99*6387f866SBrian Austin 
100*6387f866SBrian Austin /* CS35L35_PWRCTL2 */
101*6387f866SBrian Austin #define CS35L35_PDN_VMON		0x80
102*6387f866SBrian Austin #define CS35L35_PDN_IMON		0x40
103*6387f866SBrian Austin #define CS35L35_PDN_CLASSH		0x20
104*6387f866SBrian Austin #define CS35L35_PDN_VPBR		0x10
105*6387f866SBrian Austin #define CS35L35_PDN_BST			0x04
106*6387f866SBrian Austin #define CS35L35_PDN_AMP			0x01
107*6387f866SBrian Austin 
108*6387f866SBrian Austin /* CS35L35_PWRCTL3 */
109*6387f866SBrian Austin #define CS35L35_PDN_VBSTMON_OUT		0x10
110*6387f866SBrian Austin #define CS35L35_PDN_VMON_OUT		0x08
111*6387f866SBrian Austin 
112*6387f866SBrian Austin #define CS35L35_AUDIN_DEPTH_MASK	0x03
113*6387f866SBrian Austin #define CS35L35_AUDIN_DEPTH_SHIFT	0
114*6387f866SBrian Austin #define CS35L35_ADVIN_DEPTH_MASK	0x0C
115*6387f866SBrian Austin #define CS35L35_ADVIN_DEPTH_SHIFT	2
116*6387f866SBrian Austin #define CS35L35_SDIN_DEPTH_8		0x01
117*6387f866SBrian Austin #define CS35L35_SDIN_DEPTH_16		0x02
118*6387f866SBrian Austin #define CS35L35_SDIN_DEPTH_24		0x03
119*6387f866SBrian Austin 
120*6387f866SBrian Austin #define CS35L35_SDOUT_DEPTH_8		0x01
121*6387f866SBrian Austin #define CS35L35_SDOUT_DEPTH_12		0x02
122*6387f866SBrian Austin #define CS35L35_SDOUT_DEPTH_16		0x03
123*6387f866SBrian Austin 
124*6387f866SBrian Austin #define CS35L35_AUD_IN_LR_MASK		0x80
125*6387f866SBrian Austin #define CS35L35_AUD_IN_LR_SHIFT		7
126*6387f866SBrian Austin #define CS35L35_ADV_IN_LR_MASK		0x80
127*6387f866SBrian Austin #define CS35L35_ADV_IN_LR_SHIFT		7
128*6387f866SBrian Austin #define CS35L35_AUD_IN_LOC_MASK		0x0F
129*6387f866SBrian Austin #define CS35L35_AUD_IN_LOC_SHIFT	0
130*6387f866SBrian Austin #define CS35L35_ADV_IN_LOC_MASK		0x0F
131*6387f866SBrian Austin #define CS35L35_ADV_IN_LOC_SHIFT	0
132*6387f866SBrian Austin 
133*6387f866SBrian Austin #define CS35L35_IMON_DEPTH_MASK		0x03
134*6387f866SBrian Austin #define CS35L35_IMON_DEPTH_SHIFT	0
135*6387f866SBrian Austin #define CS35L35_VMON_DEPTH_MASK		0x0C
136*6387f866SBrian Austin #define CS35L35_VMON_DEPTH_SHIFT	2
137*6387f866SBrian Austin #define CS35L35_VBSTMON_DEPTH_MASK	0x03
138*6387f866SBrian Austin #define CS35L35_VBSTMON_DEPTH_SHIFT	0
139*6387f866SBrian Austin #define CS35L35_VPMON_DEPTH_MASK	0x0C
140*6387f866SBrian Austin #define CS35L35_VPMON_DEPTH_SHIFT	2
141*6387f866SBrian Austin #define CS35L35_VPBRSTAT_DEPTH_MASK	0x30
142*6387f866SBrian Austin #define CS35L35_VPBRSTAT_DEPTH_SHIFT	4
143*6387f866SBrian Austin #define CS35L35_ZEROFILL_DEPTH_MASK	0x03
144*6387f866SBrian Austin #define CS35L35_ZEROFILL_DEPTH_SHIFT	0x00
145*6387f866SBrian Austin 
146*6387f866SBrian Austin #define CS35L35_MON_TXLOC_MASK		0x3F
147*6387f866SBrian Austin #define CS35L35_MON_TXLOC_SHIFT		0
148*6387f866SBrian Austin #define CS35L35_MON_FRM_MASK		0x80
149*6387f866SBrian Austin #define CS35L35_MON_FRM_SHIFT		7
150*6387f866SBrian Austin 
151*6387f866SBrian Austin #define CS35L35_MS_MASK			0x80
152*6387f866SBrian Austin #define CS35L35_MS_SHIFT		7
153*6387f866SBrian Austin #define CS35L35_SPMODE_MASK		0x40
154*6387f866SBrian Austin #define CS35L35_SP_DRV_MASK		0x10
155*6387f866SBrian Austin #define CS35L35_SP_DRV_SHIFT		4
156*6387f866SBrian Austin #define CS35L35_CLK_CTL2_MASK		0xFF
157*6387f866SBrian Austin #define CS35L35_PDM_MODE_MASK		0x40
158*6387f866SBrian Austin #define CS35L35_PDM_MODE_SHIFT		6
159*6387f866SBrian Austin #define CS35L35_CLK_SOURCE_MASK		0x03
160*6387f866SBrian Austin #define CS35L35_CLK_SOURCE_SHIFT	0
161*6387f866SBrian Austin #define CS35L35_CLK_SOURCE_MCLK		0
162*6387f866SBrian Austin #define CS35L35_CLK_SOURCE_SCLK		1
163*6387f866SBrian Austin #define CS35L35_CLK_SOURCE_PDM		2
164*6387f866SBrian Austin 
165*6387f866SBrian Austin #define CS35L35_SP_SCLKS_MASK		0x0F
166*6387f866SBrian Austin #define CS35L35_SP_SCLKS_SHIFT		0x00
167*6387f866SBrian Austin #define CS35L35_SP_SCLKS_16FS		0x03
168*6387f866SBrian Austin #define CS35L35_SP_SCLKS_32FS		0x07
169*6387f866SBrian Austin #define CS35L35_SP_SCLKS_48FS		0x0B
170*6387f866SBrian Austin #define CS35L35_SP_SCLKS_64FS		0x0F
171*6387f866SBrian Austin #define CS35L35_SP_RATE_MASK		0xC0
172*6387f866SBrian Austin 
173*6387f866SBrian Austin #define CS35L35_PDN_BST_MASK		0x06
174*6387f866SBrian Austin #define CS35L35_PDN_BST_FETON_SHIFT	1
175*6387f866SBrian Austin #define CS35L35_PDN_BST_FETOFF_SHIFT	2
176*6387f866SBrian Austin #define CS35L35_PWR2_PDN_MASK		0xE0
177*6387f866SBrian Austin #define CS35L35_PWR3_PDN_MASK		0x1E
178*6387f866SBrian Austin #define CS35L35_PDN_ALL_MASK		0x01
179*6387f866SBrian Austin #define CS35L35_DISCHG_FILT_MASK	0x02
180*6387f866SBrian Austin #define CS35L35_DISCHG_FILT_SHIFT	1
181*6387f866SBrian Austin #define CS35L35_MCLK_DIS_MASK		0x04
182*6387f866SBrian Austin #define CS35L35_MCLK_DIS_SHIFT		2
183*6387f866SBrian Austin 
184*6387f866SBrian Austin #define CS35L35_BST_CTL_MASK		0x7F
185*6387f866SBrian Austin #define CS35L35_BST_CTL_SHIFT		0
186*6387f866SBrian Austin #define CS35L35_BST_IPK_MASK		0x1F
187*6387f866SBrian Austin #define CS35L35_BST_IPK_SHIFT		0
188*6387f866SBrian Austin #define CS35L35_AMP_MUTE_MASK		0x20
189*6387f866SBrian Austin #define CS35L35_AMP_MUTE_SHIFT		5
190*6387f866SBrian Austin #define CS35L35_AMP_GAIN_ZC_MASK	0x10
191*6387f866SBrian Austin #define CS35L35_AMP_GAIN_ZC_SHIFT	4
192*6387f866SBrian Austin 
193*6387f866SBrian Austin /* Class H Algorithm Control */
194*6387f866SBrian Austin #define CS35L35_CH_STEREO_MASK		0x40
195*6387f866SBrian Austin #define CS35L35_CH_STEREO_SHIFT		6
196*6387f866SBrian Austin #define CS35L35_CH_BST_OVR_MASK		0x04
197*6387f866SBrian Austin #define CS35L35_CH_BST_OVR_SHIFT	2
198*6387f866SBrian Austin #define CS35L35_CH_BST_LIM_MASK		0x08
199*6387f866SBrian Austin #define CS35L35_CH_BST_LIM_SHIFT	3
200*6387f866SBrian Austin #define CS35L35_CH_MEM_DEPTH_MASK	0x01
201*6387f866SBrian Austin #define CS35L35_CH_MEM_DEPTH_SHIFT	0
202*6387f866SBrian Austin #define CS35L35_CH_HDRM_CTL_MASK	0x3F
203*6387f866SBrian Austin #define CS35L35_CH_HDRM_CTL_SHIFT	0
204*6387f866SBrian Austin #define CS35L35_CH_REL_RATE_MASK	0xFF
205*6387f866SBrian Austin #define CS35L35_CH_REL_RATE_SHIFT	0
206*6387f866SBrian Austin #define CS35L35_CH_WKFET_DIS_MASK	0x80
207*6387f866SBrian Austin #define CS35L35_CH_WKFET_DIS_SHIFT	7
208*6387f866SBrian Austin #define CS35L35_CH_WKFET_DEL_MASK	0x70
209*6387f866SBrian Austin #define CS35L35_CH_WKFET_DEL_SHIFT	4
210*6387f866SBrian Austin #define CS35L35_CH_WKFET_THLD_MASK	0x0F
211*6387f866SBrian Austin #define CS35L35_CH_WKFET_THLD_SHIFT	0
212*6387f866SBrian Austin #define CS35L35_CH_VP_AUTO_MASK		0x80
213*6387f866SBrian Austin #define CS35L35_CH_VP_AUTO_SHIFT	7
214*6387f866SBrian Austin #define CS35L35_CH_VP_RATE_MASK		0x60
215*6387f866SBrian Austin #define CS35L35_CH_VP_RATE_SHIFT	5
216*6387f866SBrian Austin #define CS35L35_CH_VP_MAN_MASK		0x1F
217*6387f866SBrian Austin #define CS35L35_CH_VP_MAN_SHIFT		0
218*6387f866SBrian Austin 
219*6387f866SBrian Austin /* CS35L35_PROT_RELEASE_CTL */
220*6387f866SBrian Austin #define CS35L35_CAL_ERR_RLS		0x80
221*6387f866SBrian Austin #define CS35L35_SHORT_RLS		0x04
222*6387f866SBrian Austin #define CS35L35_OTW_RLS			0x02
223*6387f866SBrian Austin #define CS35L35_OTE_RLS			0x01
224*6387f866SBrian Austin 
225*6387f866SBrian Austin /* INT Mask Registers */
226*6387f866SBrian Austin #define CS35L35_INT1_CRIT_MASK		0x38
227*6387f866SBrian Austin #define CS35L35_INT2_CRIT_MASK		0xEF
228*6387f866SBrian Austin #define CS35L35_INT3_CRIT_MASK		0xEE
229*6387f866SBrian Austin #define CS35L35_INT4_CRIT_MASK		0xFF
230*6387f866SBrian Austin 
231*6387f866SBrian Austin /* PDN DONE Masks */
232*6387f866SBrian Austin #define CS35L35_M_PDN_DONE_SHIFT	4
233*6387f866SBrian Austin #define CS35L35_M_PDN_DONE_MASK		0x10
234*6387f866SBrian Austin 
235*6387f866SBrian Austin /* CS35L35_INT_1 */
236*6387f866SBrian Austin #define CS35L35_CAL_ERR			0x80
237*6387f866SBrian Austin #define CS35L35_OTP_ERR			0x40
238*6387f866SBrian Austin #define CS35L35_LRCLK_ERR		0x20
239*6387f866SBrian Austin #define CS35L35_SPCLK_ERR		0x10
240*6387f866SBrian Austin #define CS35L35_MCLK_ERR		0x08
241*6387f866SBrian Austin #define CS35L35_AMP_SHORT		0x04
242*6387f866SBrian Austin #define CS35L35_OTW			0x02
243*6387f866SBrian Austin #define CS35L35_OTE			0x01
244*6387f866SBrian Austin 
245*6387f866SBrian Austin /* CS35L35_INT_2 */
246*6387f866SBrian Austin #define CS35L35_PDN_DONE		0x10
247*6387f866SBrian Austin #define CS35L35_VPBR_ERR		0x02
248*6387f866SBrian Austin #define CS35L35_VPBR_CLR		0x01
249*6387f866SBrian Austin 
250*6387f866SBrian Austin /* CS35L35_INT_3 */
251*6387f866SBrian Austin #define CS35L35_BST_HIGH		0x10
252*6387f866SBrian Austin #define CS35L35_BST_HIGH_FLAG		0x08
253*6387f866SBrian Austin #define CS35L35_BST_IPK_FLAG		0x04
254*6387f866SBrian Austin #define CS35L35_LBST_SHORT		0x01
255*6387f866SBrian Austin 
256*6387f866SBrian Austin /* CS35L35_INT_4 */
257*6387f866SBrian Austin #define CS35L35_VMON_OVFL		0x08
258*6387f866SBrian Austin #define CS35L35_IMON_OVFL		0x04
259*6387f866SBrian Austin 
260*6387f866SBrian Austin #define CS35L35_FORMATS (SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S16_LE | \
261*6387f866SBrian Austin 			SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S32_LE)
262*6387f866SBrian Austin 
263*6387f866SBrian Austin struct  cs35l35_private {
264*6387f866SBrian Austin 	struct snd_soc_codec *codec;
265*6387f866SBrian Austin 	struct cs35l35_platform_data pdata;
266*6387f866SBrian Austin 	struct regmap *regmap;
267*6387f866SBrian Austin 	struct regulator_bulk_data supplies[2];
268*6387f866SBrian Austin 	int num_supplies;
269*6387f866SBrian Austin 	int sysclk;
270*6387f866SBrian Austin 	int sclk;
271*6387f866SBrian Austin 	bool pdm_mode;
272*6387f866SBrian Austin 	bool i2s_mode;
273*6387f866SBrian Austin 	bool slave_mode;
274*6387f866SBrian Austin 	/* GPIO for /RST */
275*6387f866SBrian Austin 	struct gpio_desc *reset_gpio;
276*6387f866SBrian Austin 	struct completion pdn_done;
277*6387f866SBrian Austin };
278*6387f866SBrian Austin 
279*6387f866SBrian Austin static const char * const cs35l35_supplies[] = {
280*6387f866SBrian Austin 	"VA",
281*6387f866SBrian Austin 	"VP",
282*6387f866SBrian Austin };
283*6387f866SBrian Austin 
284*6387f866SBrian Austin #endif
285