Home
last modified time | relevance | path

Searched full:haptics (Results 1 – 25 of 41) sorted by relevance

12

/Linux-v5.15/drivers/input/misc/
Dda7280.c284 static int da7280_haptic_mem_update(struct da7280_haptic *haptics) in da7280_haptic_mem_update() argument
290 error = regmap_read(haptics->regmap, DA7280_IRQ_STATUS1, &val); in da7280_haptic_mem_update()
294 dev_warn(haptics->dev, in da7280_haptic_mem_update()
301 error = regmap_read(haptics->regmap, DA7280_MEM_CTL2, &val); in da7280_haptic_mem_update()
305 dev_warn(haptics->dev, "Please unlock the bit first\n"); in da7280_haptic_mem_update()
310 error = regmap_update_bits(haptics->regmap, in da7280_haptic_mem_update()
317 error = regmap_read(haptics->regmap, DA7280_MEM_CTL1, &val); in da7280_haptic_mem_update()
321 return regmap_bulk_write(haptics->regmap, val, haptics->snp_mem, in da7280_haptic_mem_update()
325 static int da7280_haptic_set_pwm(struct da7280_haptic *haptics, bool enabled) in da7280_haptic_set_pwm() argument
331 if (!haptics->gain && enabled) { in da7280_haptic_set_pwm()
[all …]
Ddrv2667.c3 * DRV2667 haptics driver family
129 static int drv2667_set_waveform_freq(struct drv2667_data *haptics) in drv2667_set_waveform_freq() argument
138 freq = (haptics->frequency * 1000) / 78125; in drv2667_set_waveform_freq()
140 dev_err(&haptics->client->dev, in drv2667_set_waveform_freq()
145 error = regmap_read(haptics->regmap, DRV2667_PAGE, &read_buf); in drv2667_set_waveform_freq()
147 dev_err(&haptics->client->dev, in drv2667_set_waveform_freq()
153 haptics->page != read_buf) { in drv2667_set_waveform_freq()
154 error = regmap_write(haptics->regmap, in drv2667_set_waveform_freq()
155 DRV2667_PAGE, haptics->page); in drv2667_set_waveform_freq()
157 dev_err(&haptics->client->dev, in drv2667_set_waveform_freq()
[all …]
Ddrv260x.c3 * DRV260X haptics driver family
85 /* Audio to Haptics Control */
250 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
[all …]
Ddrv2665.c3 * DRV2665 haptics driver family
78 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()
[all …]
Darizona-haptics.c3 * Arizona haptics driver
33 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()
63 dev_err(arizona->dev, "Failed to start haptics: %d\n", in arizona_haptics_work()
68 ret = snd_soc_component_enable_pin(component, "HAPTICS"); in arizona_haptics_work()
70 dev_err(arizona->dev, "Failed to start HAPTICS: %d\n", in arizona_haptics_work()
83 ret = snd_soc_component_disable_pin(component, "HAPTICS"); in arizona_haptics_work()
[all …]
DKconfig88 tristate "Arizona haptics support"
92 Say Y to enable support for the haptics module in Arizona CODECs.
95 module will be called arizona-haptics.
440 tristate "Regulator haptics support"
623 tristate "Dialog Semiconductor DA7280 haptics support"
627 Say Y to enable support for the Dialog DA7280 haptics driver.
628 The haptics can be controlled by PWM or GPIO
823 tristate "TI DRV260X haptics support"
829 Say Y to enable support for the TI DRV260X haptics driver.
832 module will be called drv260x-haptics.
[all …]
DMakefile19 obj-$(CONFIG_INPUT_ARIZONA_HAPTICS) += arizona-haptics.o
/Linux-v5.15/Documentation/devicetree/bindings/input/
Dti,drv2665.txt1 * Texas Instruments - drv2665 Haptics driver
10 haptics: haptics@59 {
Dti,drv2667.txt1 * Texas Instruments - drv2667 Haptics driver
10 haptics: haptics@59 {
Dti,drv260x.txt1 * Texas Instruments - drv260x Haptics driver family
38 haptics: haptics@5a {
Ddlg,da7280.txt1 Dialog Semiconductor DA7280 Haptics bindings
81 haptics: da7280-haptics@4a {
Dregulator-haptic.yaml38 haptics {
/Linux-v5.15/include/dt-bindings/input/
Dti-drv260x.h3 * DRV260X haptics driver family
/Linux-v5.15/drivers/mfd/
Darizona-core.c884 { .name = "arizona-haptics" },
896 { .name = "arizona-haptics" },
913 { .name = "arizona-haptics" },
932 { .name = "arizona-haptics" },
944 { .name = "arizona-haptics" },
Dcs47l24-tables.c198 { 0x00000090, 0x0000 }, /* R144 - Haptics Control 1 */
199 { 0x00000091, 0x7FFF }, /* R145 - Haptics Control 2 */
200 { 0x00000092, 0x0000 }, /* R146 - Haptics phase 1 intensity */
201 { 0x00000093, 0x0000 }, /* R147 - Haptics phase 1 duration */
202 { 0x00000094, 0x0000 }, /* R148 - Haptics phase 2 intensity */
203 { 0x00000095, 0x0000 }, /* R149 - Haptics phase 2 duration */
204 { 0x00000096, 0x0000 }, /* R150 - Haptics phase 3 intensity */
205 { 0x00000097, 0x0000 }, /* R151 - Haptics phase 3 duration */
Dwm8997-tables.c179 { 0x00000090, 0x0000 }, /* R144 - Haptics Control 1 */
180 { 0x00000091, 0x7FFF }, /* R145 - Haptics Control 2 */
181 { 0x00000092, 0x0000 }, /* R146 - Haptics phase 1 intensity */
182 { 0x00000093, 0x0000 }, /* R147 - Haptics phase 1 duration */
183 { 0x00000094, 0x0000 }, /* R148 - Haptics phase 2 intensity */
184 { 0x00000095, 0x0000 }, /* R149 - Haptics phase 2 duration */
185 { 0x00000096, 0x0000 }, /* R150 - Haptics phase 3 intensity */
186 { 0x00000097, 0x0000 }, /* R151 - Haptics phase 3 duration */
Dwm8998-tables.c199 { 0x00000090, 0x0000 }, /* R144 - Haptics Control 1 */
200 { 0x00000091, 0x7FFF }, /* R145 - Haptics Control 2 */
201 { 0x00000092, 0x0000 }, /* R146 - Haptics phase 1 intensity */
202 { 0x00000093, 0x0000 }, /* R147 - Haptics phase 1 duration */
203 { 0x00000094, 0x0000 }, /* R148 - Haptics phase 2 intensity */
204 { 0x00000095, 0x0000 }, /* R149 - Haptics phase 2 duration */
205 { 0x00000096, 0x0000 }, /* R150 - Haptics phase 3 intensity */
206 { 0x00000097, 0x0000 }, /* R151 - Haptics phase 3 duration */
Dcs47l15-tables.c63 { 0x00000090, 0x0000 }, /* R144 (0x90) - Haptics Control 1 */
64 { 0x00000091, 0x7fff }, /* R145 (0x91) - Haptics Control 2 */
65 { 0x00000092, 0x0000 }, /* R146 (0x92) - Haptics Phase 1 Intensity */
66 { 0x00000093, 0x0000 }, /* R147 (0x93) - Haptics Phase 1 Duration */
67 { 0x00000094, 0x0000 }, /* R148 (0x94) - Haptics Phase 2 Intensity */
68 { 0x00000095, 0x0000 }, /* R149 (0x95) - Haptics Phase 2 Duration */
69 { 0x00000096, 0x0000 }, /* R150 (0x96) - Haptics Phase 3 Intensity */
70 { 0x00000097, 0x0000 }, /* R151 (0x97) - Haptics Phase 3 Duration */
Dcs47l35-tables.c79 { 0x00000090, 0x0000 }, /* R144 (0x90) - Haptics Control 1 */
80 { 0x00000091, 0x7fff }, /* R145 (0x91) - Haptics Control 2 */
81 { 0x00000092, 0x0000 }, /* R146 (0x92) - Haptics phase 1 intensity */
82 { 0x00000093, 0x0000 }, /* R147 (0x93) - Haptics phase 1 duration */
83 { 0x00000094, 0x0000 }, /* R148 (0x94) - Haptics phase 2 intensity */
84 { 0x00000095, 0x0000 }, /* R149 (0x95) - Haptics phase 2 duration */
85 { 0x00000096, 0x0000 }, /* R150 (0x96) - Haptics phase 3 intensity */
86 { 0x00000097, 0x0000 }, /* R151 (0x97) - Haptics phase 3 duration */
Dwm5102-tables.c267 { 0x00000090, 0x0000 }, /* R144 - Haptics Control 1 */
268 { 0x00000091, 0x7FFF }, /* R145 - Haptics Control 2 */
269 { 0x00000092, 0x0000 }, /* R146 - Haptics phase 1 intensity */
270 { 0x00000093, 0x0000 }, /* R147 - Haptics phase 1 duration */
271 { 0x00000094, 0x0000 }, /* R148 - Haptics phase 2 intensity */
272 { 0x00000095, 0x0000 }, /* R149 - Haptics phase 2 duration */
273 { 0x00000096, 0x0000 }, /* R150 - Haptics phase 3 intensity */
274 { 0x00000097, 0x0000 }, /* R151 - Haptics phase 3 duration */
/Linux-v5.15/sound/soc/codecs/
Dwm8997.c428 SND_SOC_DAPM_SIGGEN("HAPTICS"),
705 { name, "Haptics", "HAPTICS" }, \
1069 snd_soc_component_disable_pin(component, "HAPTICS"); in wm8997_component_probe()
Dcs47l24.c360 SND_SOC_DAPM_SIGGEN("HAPTICS"),
668 { name, "Haptics", "HAPTICS" }, \
1152 snd_soc_component_disable_pin(component, "HAPTICS"); in cs47l24_component_probe()
Dcs47l15.c606 SND_SOC_DAPM_SIGGEN("HAPTICS"),
807 { name, "Haptics", "HAPTICS" }, \
1296 snd_soc_component_disable_pin(component, "HAPTICS"); in cs47l15_component_probe()
Dwm8998.c515 SND_SOC_DAPM_SIGGEN("HAPTICS"),
840 { name, "Haptics", "HAPTICS" }, \
1288 snd_soc_component_disable_pin(component, "HAPTICS"); in wm8998_component_probe()
/Linux-v5.15/arch/arm/boot/dts/
Dsun4i-a10-dserve-dsrv9703c.dts72 haptics {

12