Home
last modified time | relevance | path

Searched refs:haptics (Results 1 – 10 of 10) sorted by relevance

/linux-4.1.27/drivers/input/misc/
Ddrv2667.c135 static int drv2667_set_waveform_freq(struct drv2667_data *haptics) in drv2667_set_waveform_freq() argument
144 freq = (haptics->frequency * 1000) / 78125; in drv2667_set_waveform_freq()
146 dev_err(&haptics->client->dev, in drv2667_set_waveform_freq()
151 error = regmap_read(haptics->regmap, DRV2667_PAGE, &read_buf); in drv2667_set_waveform_freq()
153 dev_err(&haptics->client->dev, in drv2667_set_waveform_freq()
159 haptics->page != read_buf) { in drv2667_set_waveform_freq()
160 error = regmap_write(haptics->regmap, in drv2667_set_waveform_freq()
161 DRV2667_PAGE, haptics->page); in drv2667_set_waveform_freq()
163 dev_err(&haptics->client->dev, in drv2667_set_waveform_freq()
169 error = regmap_write(haptics->regmap, DRV2667_RAM_FREQ, freq); in drv2667_set_waveform_freq()
[all …]
Ddrv260x.c261 struct drv260x_data *haptics = container_of(work, struct drv260x_data, work); in drv260x_worker() local
264 gpiod_set_value(haptics->enable_gpio, 1); in drv260x_worker()
268 error = regmap_write(haptics->regmap, in drv260x_worker()
271 dev_err(&haptics->client->dev, in drv260x_worker()
274 error = regmap_write(haptics->regmap, in drv260x_worker()
275 DRV260X_RT_PB_IN, haptics->magnitude); in drv260x_worker()
277 dev_err(&haptics->client->dev, in drv260x_worker()
285 struct drv260x_data *haptics = input_get_drvdata(input); in drv260x_haptics_play() local
287 haptics->mode = DRV260X_LRA_NO_CAL_MODE; in drv260x_haptics_play()
290 haptics->magnitude = effect->u.rumble.strong_magnitude; in drv260x_haptics_play()
[all …]
Darizona-haptics.c36 struct arizona_haptics *haptics = container_of(work, in arizona_haptics_work() local
39 struct arizona *arizona = haptics->arizona; in arizona_haptics_work()
42 if (!haptics->arizona->dapm) { in arizona_haptics_work()
47 if (haptics->intensity) { in arizona_haptics_work()
51 haptics->intensity); in arizona_haptics_work()
113 struct arizona_haptics *haptics = input_get_drvdata(input); in arizona_haptics_play() local
114 struct arizona *arizona = haptics->arizona; in arizona_haptics_play()
124 haptics->intensity = in arizona_haptics_play()
127 haptics->intensity += 0x7f; in arizona_haptics_play()
129 haptics->intensity = in arizona_haptics_play()
[all …]
DKconfig76 tristate "Arizona haptics support"
80 Say Y to enable support for the haptics module in Arizona CODECs.
83 module will be called arizona-haptics.
432 tristate "Regulator haptics support"
768 tristate "TI DRV260X haptics support"
773 Say Y to enable support for the TI DRV260X haptics driver.
776 module will be called drv260x-haptics.
779 tristate "TI DRV2667 haptics support"
784 Say Y to enable support for the TI DRV2667 haptics driver.
787 module will be called drv260x-haptics.
DMakefile17 obj-$(CONFIG_INPUT_ARIZONA_HAPTICS) += arizona-haptics.o
/linux-4.1.27/Documentation/devicetree/bindings/input/
Dti,drv2667.txt10 haptics: haptics@59 {
Dti,drv260x.txt38 haptics: haptics@5a {
Dregulator-haptic.txt16 haptics {
/linux-4.1.27/arch/arm/boot/dts/
Dexynos3250-monk.dts112 haptics {
Dexynos3250-rinato.dts103 haptics {