mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 19:47:08 +02:00
Merge "input: qcom-hv-haptics: add high-voltage check for HAP525_HV module"
This commit is contained in:
commit
4dec50bc15
|
|
@ -186,6 +186,17 @@ config INPUT_PMIC8XXX_PWRKEY
|
|||
To compile this driver as a module, choose M here: the
|
||||
module will be called pmic8xxx-pwrkey.
|
||||
|
||||
config INPUT_QCOM_HV_HAPTICS
|
||||
tristate "QTI High Voltage Haptics support"
|
||||
depends on MFD_SPMI_PMIC
|
||||
help
|
||||
This option enables device driver support for the high voltage haptics
|
||||
peripheral found on Qualcomm Technologies, Inc. PMICs. The high voltage
|
||||
haptics peripheral is capable of driving either LRA or ERM vibrators with
|
||||
drive voltage up to 10 V, and its 5 integrated pattern sources can be used
|
||||
for playing different vibration effects. To compile this driver as a module,
|
||||
choose M here: the module will be called qcom-hv-haptics.
|
||||
|
||||
config INPUT_SPARCSPKR
|
||||
tristate "SPARC Speaker support"
|
||||
depends on PCI && SPARC64
|
||||
|
|
|
|||
|
|
@ -61,6 +61,7 @@ obj-$(CONFIG_INPUT_PCSPKR) += pcspkr.o
|
|||
obj-$(CONFIG_INPUT_PM8941_PWRKEY) += pm8941-pwrkey.o
|
||||
obj-$(CONFIG_INPUT_PM8XXX_VIBRATOR) += pm8xxx-vibrator.o
|
||||
obj-$(CONFIG_INPUT_PMIC8XXX_PWRKEY) += pmic8xxx-pwrkey.o
|
||||
obj-$(CONFIG_INPUT_QCOM_HV_HAPTICS) += qcom-hv-haptics.o
|
||||
obj-$(CONFIG_INPUT_POWERMATE) += powermate.o
|
||||
obj-$(CONFIG_INPUT_PWM_BEEPER) += pwm-beeper.o
|
||||
obj-$(CONFIG_INPUT_PWM_VIBRA) += pwm-vibra.o
|
||||
|
|
|
|||
4972
drivers/input/misc/qcom-hv-haptics.c
Normal file
4972
drivers/input/misc/qcom-hv-haptics.c
Normal file
File diff suppressed because it is too large
Load Diff
37
include/dt-bindings/input/qcom,hv-haptics.h
Normal file
37
include/dt-bindings/input/qcom,hv-haptics.h
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2020 The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
/* definitions for drive waveform shape */
|
||||
#define WF_SQUARE 0 /* LRA only */
|
||||
#define WF_SINE 1 /* LRA only */
|
||||
#define WF_NO_MODULATION 2 /* ERM only */
|
||||
|
||||
/* definitions for brake mode */
|
||||
#define BRAKE_OPEN_LOOP 0
|
||||
#define BRAKE_CLOSE_LOOP 1
|
||||
#define BRAKE_PREDICTIVE 2
|
||||
#define BRAKE_AUTO 3
|
||||
|
||||
/* definitions for brake sine signal gain */
|
||||
#define BRAKE_SINE_GAIN_X1 0
|
||||
#define BRAKE_SINE_GAIN_X2 1
|
||||
#define BRAKE_SINE_GAIN_X4 2
|
||||
#define BRAKE_SINE_GAIN_X8 3
|
||||
|
||||
/* definitions for pattern sample period */
|
||||
#define S_PERIOD_T_LRA 0
|
||||
#define S_PERIOD_T_LRA_DIV_2 1
|
||||
#define S_PERIOD_T_LRA_DIV_4 2
|
||||
#define S_PERIOD_T_LRA_DIV_8 3
|
||||
#define S_PERIOD_T_LRA_X_2 4
|
||||
#define S_PERIOD_T_LRA_X_4 5
|
||||
#define S_PERIOD_T_LRA_X_8 6
|
||||
/* F_8KHZ to F_48KHZ periods can only be specified for FIFO based effects */
|
||||
#define S_PERIOD_F_8KHZ 8
|
||||
#define S_PERIOD_F_16HKZ 9
|
||||
#define S_PERIOD_F_24KHZ 10
|
||||
#define S_PERIOD_F_32KHZ 11
|
||||
#define S_PERIOD_F_44P1KHZ 12
|
||||
#define S_PERIOD_F_48KHZ 13
|
||||
Loading…
Reference in New Issue
Block a user