Home
last modified time | relevance | path

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

123

/openbmc/linux/drivers/input/misc/
H A 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 …]
H A 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 …]
H A Ddrv260x.c3 * DRV260X haptics driver family
85 /* Audio to Haptics Control */
212 struct drv260x_data *haptics = container_of(work, struct drv260x_data, work); in drv260x_worker() local
215 gpiod_set_value(haptics->enable_gpio, 1); in drv260x_worker()
219 error = regmap_write(haptics->regmap, in drv260x_worker()
222 dev_err(&haptics->client->dev, in drv260x_worker()
225 error = regmap_write(haptics->regmap, in drv260x_worker()
226 DRV260X_RT_PB_IN, haptics->magnitude); in drv260x_worker()
228 dev_err(&haptics->client->dev, in drv260x_worker()
236 struct drv260x_data *haptics = input_get_drvdata(input); in drv260x_haptics_play() local
[all …]
H A 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 …]
H A 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 …]
H A 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.
451 tristate "Regulator haptics support"
644 tristate "Dialog Semiconductor DA7280 haptics support"
648 Say Y to enable support for the Dialog DA7280 haptics driver.
649 The haptics can be controlled by PWM or GPIO
861 tristate "TI DRV260X haptics support"
867 Say Y to enable support for the TI DRV260X haptics driver.
870 module will be called drv260x-haptics.
[all …]
H A DMakefile19 obj-$(CONFIG_INPUT_ARIZONA_HAPTICS) += arizona-haptics.o
/openbmc/linux/Documentation/devicetree/bindings/input/
H A Dti,drv2665.txt1 * Texas Instruments - drv2665 Haptics driver
10 haptics: haptics@59 {
H A Dti,drv2667.txt1 * Texas Instruments - drv2667 Haptics driver
10 haptics: haptics@59 {
H A Ddlg,da7280.txt1 Dialog Semiconductor DA7280 Haptics bindings
81 haptics: da7280-haptics@4a {
H A Dti,drv260x.yaml7 title: Texas Instruments - drv260x Haptics driver family
99 haptics@5a {
H A Dregulator-haptic.yaml38 haptics {
/openbmc/linux/drivers/hid/
H A Dhid-nvidia-shield.c179 } haptics; member
275 struct input_dev *haptics; in shield_haptics_create() local
281 haptics = shield_allocate_input_dev(dev->hdev, "Haptics"); in shield_haptics_create()
282 if (IS_ERR(haptics)) in shield_haptics_create()
283 return haptics; in shield_haptics_create()
285 input_set_capability(haptics, EV_FF, FF_RUMBLE); in shield_haptics_create()
286 ret = input_ff_create_memless(haptics, NULL, play_effect); in shield_haptics_create()
290 ret = input_register_device(haptics); in shield_haptics_create()
294 return haptics; in shield_haptics_create()
297 input_free_device(haptics); in shield_haptics_create()
[all …]
/openbmc/linux/include/dt-bindings/input/
H A Dti-drv260x.h3 * DRV260X haptics driver family
/openbmc/linux/drivers/mfd/
H A Darizona-core.c865 { .name = "arizona-haptics" },
877 { .name = "arizona-haptics" },
894 { .name = "arizona-haptics" },
913 { .name = "arizona-haptics" },
925 { .name = "arizona-haptics" },
H A 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 */
H A 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 */
H A 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 */
H A 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 */
H A 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 */
H A 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 */
/openbmc/linux/sound/soc/codecs/
H A Dwm8997.c428 SND_SOC_DAPM_SIGGEN("HAPTICS"),
705 { name, "Haptics", "HAPTICS" }, \
1069 snd_soc_component_disable_pin(component, "HAPTICS"); in wm8997_component_probe()
H A Dcs47l24.c360 SND_SOC_DAPM_SIGGEN("HAPTICS"),
668 { name, "Haptics", "HAPTICS" }, \
1156 snd_soc_component_disable_pin(component, "HAPTICS"); in cs47l24_component_probe()
/openbmc/linux/arch/arm/boot/dts/allwinner/
H A Dsun4i-a10-dserve-dsrv9703c.dts72 haptics {
/openbmc/u-boot/arch/arm/dts/
H A Dsun4i-a10-dserve-dsrv9703c.dts71 haptics {

123