Home
last modified time | relevance | path

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

123

/Linux-v5.10/drivers/input/misc/
Dpwm-vibra.c3 * PWM vibrator driver
36 static int pwm_vibrator_start(struct pwm_vibrator *vibrator) in pwm_vibrator_start() argument
38 struct device *pdev = vibrator->input->dev.parent; in pwm_vibrator_start()
42 if (!vibrator->vcc_on) { in pwm_vibrator_start()
43 err = regulator_enable(vibrator->vcc); in pwm_vibrator_start()
48 vibrator->vcc_on = true; in pwm_vibrator_start()
51 pwm_get_state(vibrator->pwm, &state); in pwm_vibrator_start()
52 pwm_set_relative_duty_cycle(&state, vibrator->level, 0xffff); in pwm_vibrator_start()
55 err = pwm_apply_state(vibrator->pwm, &state); in pwm_vibrator_start()
61 if (vibrator->pwm_dir) { in pwm_vibrator_start()
[all …]
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 …]
Dsc27xx-vibra.c89 dev_err(&pdev->dev, "failed to get vibrator regmap.\n"); in sc27xx_vibra_probe()
95 dev_err(&pdev->dev, "failed to get vibrator base address.\n"); in sc27xx_vibra_probe()
105 info->input_dev->name = "sc27xx:vibrator"; in sc27xx_vibra_probe()
116 dev_err(&pdev->dev, "failed to initialize the vibrator.\n"); in sc27xx_vibra_probe()
123 dev_err(&pdev->dev, "failed to register vibrator to FF.\n"); in sc27xx_vibra_probe()
137 { .compatible = "sprd,sc2731-vibrator", },
144 .name = "sc27xx-vibrator",
152 MODULE_DESCRIPTION("Spreadtrum SC27xx Vibrator Driver");
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");
DKconfig145 tristate "Qualcomm PM8XXX vibrator support"
149 This option enables device driver support for the vibrator
154 module will be called pm8xxx-vibrator.
279 tristate "GPIO vibrator support"
283 Say Y here to get support for GPIO based vibrator devices.
483 tristate "Support for TWL4030 Vibrator"
488 This option enables support for TWL4030 Vibrator Driver.
494 tristate "Support for TWL6040 Vibrator"
498 This option enables support for TWL6040 Vibrator Driver.
568 tristate "PWM vibrator support"
[all …]
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()
331 info->input_dev->name = "twl6040:vibrator"; in twl6040_vibra_probe()
338 dev_err(info->dev, "couldn't register vibrator to FF\n"); in twl6040_vibra_probe()
Dtwl4030-vibra.c3 * twl4030-vibra.c - TWL4030 Vibrator driver
211 info->input_dev->name = "twl4030:vibrator"; in twl4030_vibra_probe()
218 dev_dbg(&pdev->dev, "couldn't register vibrator to FF\n"); in twl4030_vibra_probe()
/Linux-v5.10/Documentation/devicetree/bindings/input/
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";
Dsprd,sc27xx-vibra.txt1 Spreadtrum SC27xx PMIC Vibrator
4 - compatible: should be "sprd,sc2731-vibrator".
5 - reg: address of vibrator control register.
19 vibrator@eb4 {
20 compatible = "sprd,sc2731-vibrator";
Dpwm-vibrator.txt1 * PWM vibrator device tree bindings
3 Registers a PWM device as vibrator. It is expected, that the vibrator's
12 - compatible: should contain "pwm-vibrator"
59 vibrator {
60 compatible = "pwm-vibrator";
Dqcom,pm8xxx-vib.txt1 Qualcomm PM8xxx PMIC Vibrator
20 vibrator@4a {
Dti,drv260x.txt15 DRV260X_ERM_MODE - Eccentric Rotating Mass mode (Rotary vibrator)
/Linux-v5.10/drivers/staging/greybus/
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",
153 * For now we create a device in sysfs for the vibrator, but odds are in gb_vibrator_probe()
163 MKDEV(0, 0), vib, "vibrator%d", vib->minor); in gb_vibrator_probe()
214 .name = "vibrator",
DMakefile16 gb-vibrator-y := vibrator.o
27 obj-$(CONFIG_GREYBUS_VIBRATOR) += gb-vibrator.o
DKconfig113 tristate "Greybus Vibrator Motor Class driver"
116 Greybus Vibrator Motor Class specification.
119 will be called gb-vibrator.ko
/Linux-v5.10/Documentation/devicetree/bindings/sound/
Domap-abe-twl6040.txt25 * Vibrator
79 "Vibrator", "VIBRAL",
80 "Vibrator", "VIBRAR",
/Linux-v5.10/Documentation/devicetree/bindings/regulator/
Dpalmas-pmic.txt26 - ti,ldo6-vibrator : ldo6 is in vibrator mode
66 ti,ldo6-vibrator;
/Linux-v5.10/drivers/usb/misc/
Dtrancevibrator.c3 * PlayStation 2 Trance Vibrator driver
16 #define DRIVER_DESC "PlayStation 2 Trance Vibrator driver"
19 #define TRANCEVIBRATOR_PRODUCT_ID 0x064f /* Trance Vibrator */
DKconfig162 tristate "PlayStation 2 Trance Vibrator driver support"
164 Say Y here if you want to connect a PlayStation 2 Trance Vibrator
/Linux-v5.10/include/linux/mfd/
Dlp8788.h24 #define LP8788_DEV_VIBRATOR "lp8788-vibrator"
250 * @name : vibrator driver name
277 * @vib_pdata : configurable data for vibrator driver
/Linux-v5.10/sound/soc/ti/
Domap-abe-twl6040.c125 SND_SOC_DAPM_SPK("Vibrator", NULL),
150 {"Vibrator", NULL, "VIBRAL"},
151 {"Vibrator", NULL, "VIBRAR"},
/Linux-v5.10/drivers/mfd/
Dlp8788.c115 /* current sink for vibrator */
116 MFD_DEV_SIMPLE(VIBRATOR),
/Linux-v5.10/include/linux/
Dleds-regulator.h23 * .name = "a780::vibrator",
/Linux-v5.10/arch/arm/boot/dts/
Ds5pv210-aries.dtsi64 regulator-name = "vibrator-en";
532 vibrator: pwm-vibrator { label
533 compatible = "pwm-vibrator";
756 vibrator_ena: vibrator-ena {
/Linux-v5.10/arch/arm64/boot/dts/sprd/
Dsc2731.dtsi111 vibrator@ec8 {
112 compatible = "sprd,sc2731-vibrator";

123