Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/input/misc/
Ddrv2667.c127 static int drv2667_set_waveform_freq(struct drv2667_data *haptics) in drv2667_set_waveform_freq() argument
136 freq = (haptics->frequency * 1000) / 78125; in drv2667_set_waveform_freq()
138 dev_err(&haptics->client->dev, in drv2667_set_waveform_freq()
143 error = regmap_read(haptics->regmap, DRV2667_PAGE, &read_buf); in drv2667_set_waveform_freq()
145 dev_err(&haptics->client->dev, in drv2667_set_waveform_freq()
151 haptics->page != read_buf) { in drv2667_set_waveform_freq()
152 error = regmap_write(haptics->regmap, in drv2667_set_waveform_freq()
153 DRV2667_PAGE, haptics->page); in drv2667_set_waveform_freq()
155 dev_err(&haptics->client->dev, in drv2667_set_waveform_freq()
161 error = regmap_write(haptics->regmap, DRV2667_RAM_FREQ, freq); in drv2667_set_waveform_freq()
[all …]
Ddrv260x.c250 struct drv260x_data *haptics = container_of(work, struct drv260x_data, work); in drv260x_worker() local
253 gpiod_set_value(haptics->enable_gpio, 1); in drv260x_worker()
257 error = regmap_write(haptics->regmap, in drv260x_worker()
260 dev_err(&haptics->client->dev, in drv260x_worker()
263 error = regmap_write(haptics->regmap, in drv260x_worker()
264 DRV260X_RT_PB_IN, haptics->magnitude); in drv260x_worker()
266 dev_err(&haptics->client->dev, in drv260x_worker()
274 struct drv260x_data *haptics = input_get_drvdata(input); in drv260x_haptics_play() local
276 haptics->mode = DRV260X_LRA_NO_CAL_MODE; in drv260x_haptics_play()
279 haptics->magnitude = effect->u.rumble.strong_magnitude; in drv260x_haptics_play()
[all …]
Ddrv2665.c78 struct drv2665_data *haptics = in drv2665_worker() local
83 error = regmap_read(haptics->regmap, DRV2665_STATUS, &read_buf); in drv2665_worker()
85 dev_err(&haptics->client->dev, in drv2665_worker()
91 error = regmap_bulk_write(haptics->regmap, in drv2665_worker()
96 dev_err(&haptics->client->dev, in drv2665_worker()
106 struct drv2665_data *haptics = input_get_drvdata(input); in drv2665_haptics_play() local
108 schedule_work(&haptics->work); in drv2665_haptics_play()
115 struct drv2665_data *haptics = input_get_drvdata(input); in drv2665_close() local
118 cancel_work_sync(&haptics->work); in drv2665_close()
120 error = regmap_update_bits(haptics->regmap, DRV2665_CTRL_2, in drv2665_close()
[all …]
Darizona-haptics.c33 struct arizona_haptics *haptics = container_of(work, in arizona_haptics_work() local
36 struct arizona *arizona = haptics->arizona; in arizona_haptics_work()
41 if (!haptics->arizona->dapm) { in arizona_haptics_work()
46 if (haptics->intensity) { in arizona_haptics_work()
50 haptics->intensity); in arizona_haptics_work()
111 struct arizona_haptics *haptics = input_get_drvdata(input); in arizona_haptics_play() local
112 struct arizona *arizona = haptics->arizona; in arizona_haptics_play()
122 haptics->intensity = in arizona_haptics_play()
125 haptics->intensity += 0x7f; in arizona_haptics_play()
127 haptics->intensity = in arizona_haptics_play()
[all …]
DKconfig77 tristate "Arizona haptics support"
81 Say Y to enable support for the haptics module in Arizona CODECs.
84 module will be called arizona-haptics.
430 tristate "Regulator haptics support"
800 tristate "TI DRV260X haptics support"
806 Say Y to enable support for the TI DRV260X haptics driver.
809 module will be called drv260x-haptics.
812 tristate "TI DRV2665 haptics support"
817 Say Y to enable support for the TI DRV2665 haptics driver.
820 module will be called drv2665-haptics.
[all …]
DMakefile18 obj-$(CONFIG_INPUT_ARIZONA_HAPTICS) += arizona-haptics.o
/Linux-v5.10/Documentation/devicetree/bindings/input/
Dti,drv2665.txt10 haptics: haptics@59 {
Dti,drv2667.txt10 haptics: haptics@59 {
Dti,drv260x.txt38 haptics: haptics@5a {
Dregulator-haptic.txt16 haptics {
/Linux-v5.10/arch/arm/boot/dts/
Dsun4i-a10-dserve-dsrv9703c.dts71 haptics {
Dexynos3250-monk.dts113 haptics {
Dexynos3250-rinato.dts113 haptics {