linux/include/dt-bindings/sound/cs42l42.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * cs42l42.h -- CS42L42 ALSA SoC audio driver DT bindings header
 *
 * Copyright 2016 Cirrus Logic, Inc.
 *
 * Author: James Schulman <[email protected]>
 * Author: Brian Austin <[email protected]>
 * Author: Michael White <[email protected]>
 */

#ifndef __DT_CS42L42_H
#define __DT_CS42L42_H

/* HPOUT Load Capacity */
#define CS42L42_HPOUT_LOAD_1NF
#define CS42L42_HPOUT_LOAD_10NF

/* HPOUT Clamp to GND Override */
#define CS42L42_HPOUT_CLAMP_EN
#define CS42L42_HPOUT_CLAMP_DIS

/* Tip Sense Inversion */
#define CS42L42_TS_INV_DIS
#define CS42L42_TS_INV_EN

/* Tip Sense Debounce */
#define CS42L42_TS_DBNCE_0
#define CS42L42_TS_DBNCE_125
#define CS42L42_TS_DBNCE_250
#define CS42L42_TS_DBNCE_500
#define CS42L42_TS_DBNCE_750
#define CS42L42_TS_DBNCE_1000
#define CS42L42_TS_DBNCE_1250
#define CS42L42_TS_DBNCE_1500

/* Button Press Software Debounce Times */
#define CS42L42_BTN_DET_INIT_DBNCE_MIN
#define CS42L42_BTN_DET_INIT_DBNCE_DEFAULT
#define CS42L42_BTN_DET_INIT_DBNCE_MAX

#define CS42L42_BTN_DET_EVENT_DBNCE_MIN
#define CS42L42_BTN_DET_EVENT_DBNCE_DEFAULT
#define CS42L42_BTN_DET_EVENT_DBNCE_MAX

/* Button Detect Level Sensitivities */
#define CS42L42_NUM_BIASES

#define CS42L42_HS_DET_LEVEL_15
#define CS42L42_HS_DET_LEVEL_8
#define CS42L42_HS_DET_LEVEL_4
#define CS42L42_HS_DET_LEVEL_1

#define CS42L42_HS_DET_LEVEL_MIN
#define CS42L42_HS_DET_LEVEL_MAX

/* HS Bias Ramp Rate */

#define CS42L42_HSBIAS_RAMP_FAST_RISE_SLOW_FALL
#define CS42L42_HSBIAS_RAMP_FAST
#define CS42L42_HSBIAS_RAMP_SLOW
#define CS42L42_HSBIAS_RAMP_SLOWEST

#define CS42L42_HSBIAS_RAMP_TIME0
#define CS42L42_HSBIAS_RAMP_TIME1
#define CS42L42_HSBIAS_RAMP_TIME2
#define CS42L42_HSBIAS_RAMP_TIME3

#endif /* __DT_CS42L42_H */