Home
last modified time | relevance | path

Searched full:vibrator (Results 1 – 25 of 78) sorted by relevance

1234

/openbmc/linux/drivers/input/misc/
H A Dpwm-vibra.c3 * PWM vibrator driver
38 static int pwm_vibrator_start(struct pwm_vibrator *vibrator) in pwm_vibrator_start() argument
40 struct device *pdev = vibrator->input->dev.parent; in pwm_vibrator_start()
44 if (!vibrator->vcc_on) { in pwm_vibrator_start()
45 err = regulator_enable(vibrator->vcc); in pwm_vibrator_start()
50 vibrator->vcc_on = true; in pwm_vibrator_start()
53 gpiod_set_value_cansleep(vibrator->enable_gpio, 1); in pwm_vibrator_start()
55 pwm_get_state(vibrator->pwm, &state); in pwm_vibrator_start()
56 pwm_set_relative_duty_cycle(&state, vibrator->level, 0xffff); in pwm_vibrator_start()
59 err = pwm_apply_might_sleep(vibrator->pwm, &state); in pwm_vibrator_start()
[all …]
H A Dgpio-vibra.c3 * GPIO vibrator driver
7 * Based on PWM vibrator driver:
37 static int gpio_vibrator_start(struct gpio_vibrator *vibrator) in gpio_vibrator_start() argument
39 struct device *pdev = vibrator->input->dev.parent; in gpio_vibrator_start()
42 if (!vibrator->vcc_on) { in gpio_vibrator_start()
43 err = regulator_enable(vibrator->vcc); in gpio_vibrator_start()
48 vibrator->vcc_on = true; in gpio_vibrator_start()
51 gpiod_set_value_cansleep(vibrator->gpio, 1); in gpio_vibrator_start()
56 static void gpio_vibrator_stop(struct gpio_vibrator *vibrator) in gpio_vibrator_stop() argument
58 gpiod_set_value_cansleep(vibrator->gpio, 0); in gpio_vibrator_stop()
[all …]
H A Dsc27xx-vibra.c133 dev_err(&pdev->dev, "failed to get vibrator regmap.\n"); in sc27xx_vibra_probe()
139 dev_err(&pdev->dev, "failed to get vibrator base address.\n"); in sc27xx_vibra_probe()
149 info->input_dev->name = "sc27xx:vibrator"; in sc27xx_vibra_probe()
161 dev_err(&pdev->dev, "failed to initialize the vibrator.\n"); in sc27xx_vibra_probe()
168 dev_err(&pdev->dev, "failed to register vibrator to FF.\n"); in sc27xx_vibra_probe()
182 { .compatible = "sprd,sc2721-vibrator", .data = &sc2721_data },
183 { .compatible = "sprd,sc2730-vibrator", .data = &sc2730_data },
184 { .compatible = "sprd,sc2731-vibrator", .data = &sc2731_data },
191 .name = "sc27xx-vibrator",
199 MODULE_DESCRIPTION("Spreadtrum SC27xx Vibrator Driver");
H A Dpm8xxx-vibrator.c48 * struct pm8xxx_vib - structure to hold vibrator data
54 * @active: state of vibrator
71 * @vib: pointer to vibrator structure
114 * pmic vibrator supports voltage ranges from 1.2 to 3.1V, so in pm8xxx_work_handler()
134 * Turns off the vibrator.
215 "couldn't register vibrator as FF device\n"); in pm8xxx_vib_probe()
233 /* Turn off the vibrator */ in pm8xxx_vib_suspend()
260 MODULE_DESCRIPTION("PMIC8xxx vibrator driver based on ff-memless framework");
H A DKconfig178 tristate "Qualcomm PM8XXX vibrator support"
182 This option enables device driver support for the vibrator
187 module will be called pm8xxx-vibrator.
312 tristate "GPIO vibrator support"
316 Say Y here to get support for GPIO based vibrator devices.
514 tristate "Support for TWL4030 Vibrator"
519 This option enables support for TWL4030 Vibrator Driver.
525 tristate "Support for TWL6040 Vibrator"
529 This option enables support for TWL6040 Vibrator Driver.
599 tristate "PWM vibrator support"
[all …]
H A Dtwl6040-vibra.c3 * twl6040-vibra.c - TWL6040 Vibrator driver
61 dev_warn(info->dev, "Left Vibrator overcurrent detected\n"); in twl6040_vib_irq_handler()
66 dev_warn(info->dev, "Right Vibrator overcurrent detected\n"); in twl6040_vib_irq_handler()
89 * 3ms when enabling vibrator drivers to avoid false in twl6040_vibra_enable()
332 info->input_dev->name = "twl6040:vibrator"; in twl6040_vibra_probe()
339 dev_err(info->dev, "couldn't register vibrator to FF\n"); in twl6040_vibra_probe()
H A Dtwl4030-vibra.c3 * twl4030-vibra.c - TWL4030 Vibrator driver
206 info->input_dev->name = "twl4030:vibrator"; in twl4030_vibra_probe()
213 dev_dbg(&pdev->dev, "couldn't register vibrator to FF\n"); in twl4030_vibra_probe()
/openbmc/linux/Documentation/devicetree/bindings/input/
H A Dsprd,sc27xx-vibrator.yaml5 $id: http://devicetree.org/schemas/input/sprd,sc27xx-vibrator.yaml#
8 title: Spreadtrum SC27xx PMIC Vibrator
18 - sprd,sc2721-vibrator
19 - sprd,sc2730-vibrator
20 - sprd,sc2731-vibrator
44 vibrator@eb4 {
45 compatible = "sprd,sc2731-vibrator";
H A Dpwm-vibrator.yaml4 $id: http://devicetree.org/schemas/input/pwm-vibrator.yaml#
7 title: PWM vibrator
13 Registers a PWM device as vibrator. It is expected, that the vibrator's
23 const: pwm-vibrator
53 vibrator {
54 compatible = "pwm-vibrator";
H A Dgpio-vibrator.yaml4 $id: http://devicetree.org/schemas/input/gpio-vibrator.yaml#
7 title: GPIO vibrator
13 Registers a GPIO device as vibrator, where the on/off capability is controlled by a GPIO.
17 const: gpio-vibrator
35 vibrator {
36 compatible = "gpio-vibrator";
H A Dqcom,pm8xxx-vib.yaml7 title: Qualcomm PM8xxx PMIC Vibrator
34 vibrator@4a {
/openbmc/linux/drivers/staging/greybus/
H A Dvibrator.c3 * Greybus Vibrator protocol driver.
21 int minor; /* vibrator minor number */
25 /* Greybus Vibrator operation types */
51 /* Vibrator was switched ON earlier */ in turn_on()
106 ATTRIBUTE_GROUPS(vibrator);
109 .name = "vibrator",
152 * For now we create a device in sysfs for the vibrator, but odds are in gb_vibrator_probe()
162 MKDEV(0, 0), vib, "vibrator%d", vib->minor); in gb_vibrator_probe()
213 .name = "vibrator",
H A DMakefile16 gb-vibrator-y := vibrator.o
27 obj-$(CONFIG_GREYBUS_VIBRATOR) += gb-vibrator.o
H A DKconfig113 tristate "Greybus Vibrator Motor Class driver"
116 Greybus Vibrator Motor Class specification.
119 will be called gb-vibrator.ko
/openbmc/linux/arch/arm64/boot/dts/qcom/
H A Dmsm8916-samsung-gt58.dts25 vibrator {
26 compatible = "gpio-vibrator";
69 vibrator_en_default: vibrator-en-default-state {
H A Dmsm8916-samsung-gt510.dts58 vibrator {
59 compatible = "pwm-vibrator";
H A Dmsm8939-samsung-a7.dts188 pwm_vibrator: pwm-vibrator {
252 reg_vibrator: regulator-vibrator {
265 vibrator {
266 compatible = "pwm-vibrator";
H A Dmsm8916-samsung-a2015-common.dtsi188 vibrator: vibrator { label
189 compatible = "pwm-vibrator";
/openbmc/linux/Documentation/devicetree/bindings/sound/
H A Domap-abe-twl6040.txt25 * Vibrator
79 "Vibrator", "VIBRAL",
80 "Vibrator", "VIBRAR",
/openbmc/linux/Documentation/devicetree/bindings/regulator/
H A Dpalmas-pmic.txt26 - ti,ldo6-vibrator : ldo6 is in vibrator mode
66 ti,ldo6-vibrator;
/openbmc/linux/drivers/usb/misc/
H A Dtrancevibrator.c3 * PlayStation 2 Trance Vibrator driver
16 #define DRIVER_DESC "PlayStation 2 Trance Vibrator driver"
19 #define TRANCEVIBRATOR_PRODUCT_ID 0x064f /* Trance Vibrator */
/openbmc/linux/arch/arm64/boot/dts/rockchip/
H A Drk3326-anbernic-rg351m.dts15 vibrator {
16 compatible = "pwm-vibrator";
/openbmc/linux/include/linux/mfd/
H A Dlp8788.h24 #define LP8788_DEV_VIBRATOR "lp8788-vibrator"
250 * @name : vibrator driver name
277 * @vib_pdata : configurable data for vibrator driver
/openbmc/linux/sound/soc/ti/
H A Domap-abe-twl6040.c125 SND_SOC_DAPM_SPK("Vibrator", NULL),
150 {"Vibrator", NULL, "VIBRAL"},
151 {"Vibrator", NULL, "VIBRAR"},
/openbmc/linux/drivers/mfd/
H A Dlp8788.c115 /* current sink for vibrator */
116 MFD_DEV_SIMPLE(VIBRATOR),

1234