Home
last modified time | relevance | path

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

1234

/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.c68 * struct pm8xxx_vib - structure to hold vibrator data
73 * @enable_addr: vibrator enable register
74 * @drv_addr: vibrator drive strength register
75 * @drv2_addr: vibrator drive strength upper byte register
77 * @active: state of vibrator
97 * @vib: pointer to vibrator structure
150 * pmic vibrator supports voltage ranges from MIN_LEVEL to MAX_LEVEL, so in pm8xxx_work_handler()
169 * Turns off the vibrator.
257 "couldn't register vibrator as FF device\n"); in pm8xxx_vib_probe()
275 /* Turn off the vibrator */ in pm8xxx_vib_suspend()
[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()
328 info->input_dev->name = "twl6040:vibrator"; in twl6040_vibra_probe()
335 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
201 info->input_dev->name = "twl4030:vibrator"; in twl4030_vibra_probe()
208 dev_dbg(&pdev->dev, "couldn't register vibrator to FF\n"); in twl4030_vibra_probe()
/linux/Documentation/devicetree/bindings/input/
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 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
H A Dqcom,pm8xxx-vib.yaml7 title: Qualcomm PM8xxx PMIC Vibrator
43 vibrator@4a {
/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",
248 MODULE_DESCRIPTION("Greybus Vibrator protocol driver");
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
/linux/Documentation/devicetree/bindings/sound/
H A Domap-abe-twl6040.txt25 * Vibrator
79 "Vibrator", "VIBRAL",
80 "Vibrator", "VIBRAR",
/linux/Documentation/devicetree/bindings/regulator/
H A Dpalmas-pmic.txt26 - ti,ldo6-vibrator : ldo6 is in vibrator mode
66 ti,ldo6-vibrator;
/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 */
/linux/arch/arm/boot/dts/ti/omap/
H A Dmotorola-mapphone-handset.dtsi56 vibrator {
57 compatible = "pwm-vibrator";
181 vibrator_direction_pin: vibrator-direction-pins {
187 vibrator_enable_pin: vibrator-enable-pins {
/linux/arch/arm64/boot/dts/qcom/
H A Dmsm8916-samsung-gt58.dts58 vibrator {
59 compatible = "gpio-vibrator";
180 vibrator_en_default: vibrator-en-default-state {
H A Dmsm8916-samsung-gt510.dts92 vibrator {
93 compatible = "pwm-vibrator";
H A Dmsm8916-samsung-a2015-common.dtsi203 vibrator: vibrator { label
204 compatible = "pwm-vibrator";
/linux/arch/arm/boot/dts/qcom/
H A Dqcom-apq8026-lg-lenok.dts71 vibrator {
72 compatible = "pwm-vibrator";
357 vibrator_clk_default_state: vibrator-clk-default-state {
364 vibrator_en_default_state: vibrator-en-default-state {
/linux/sound/soc/ti/
H A Domap-abe-twl6040.c125 SND_SOC_DAPM_SPK("Vibrator", NULL),
150 {"Vibrator", NULL, "VIBRAL"},
151 {"Vibrator", NULL, "VIBRAR"},
/linux/drivers/mfd/
H A Dlp8788.c115 /* current sink for vibrator */
116 MFD_DEV_SIMPLE(VIBRATOR),
/linux/arch/arm/boot/dts/samsung/
H A Ds5pv210-aries.dtsi64 regulator-name = "vibrator-en";
532 vibrator: pwm-vibrator { label
533 compatible = "pwm-vibrator";
754 vibrator_ena: vibrator-ena-pins {
/linux/include/linux/
H A Dleds-regulator.h23 * .name = "a780::vibrator",

1234