/linux/drivers/input/misc/ |
H A D | pwm-vibra.c | 3 * 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 D | gpio-vibra.c | 3 * 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 D | sc27xx-vibra.c | 133 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 D | pm8xxx-vibrator.c | 68 * 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 D | Kconfig | 195 tristate "Qualcomm PM8XXX vibrator support" 199 This option enables device driver support for the vibrator 204 module will be called pm8xxx-vibrator. 329 tristate "GPIO vibrator support" 333 Say Y here to get support for GPIO based vibrator devices. 531 tristate "Support for TWL4030 Vibrator" 536 This option enables support for TWL4030 Vibrator Driver. 542 tristate "Support for TWL6040 Vibrator" 546 This option enables support for TWL6040 Vibrator Driver. 616 tristate "PWM vibrator support" [all …]
|
H A D | twl6040-vibra.c | 3 * 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 D | twl4030-vibra.c | 3 * 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 D | pwm-vibrator.yaml | 4 $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 D | gpio-vibrator.yaml | 4 $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 D | sprd,sc27xx-vibrator.yaml | 5 $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 D | qcom,pm8xxx-vib.yaml | 7 title: Qualcomm PM8xxx PMIC Vibrator 43 vibrator@4a {
|
/linux/drivers/staging/greybus/ |
H A D | vibrator.c | 3 * 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 D | Makefile | 16 gb-vibrator-y := vibrator.o 27 obj-$(CONFIG_GREYBUS_VIBRATOR) += gb-vibrator.o
|
H A D | Kconfig | 113 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 D | omap-abe-twl6040.txt | 25 * Vibrator 79 "Vibrator", "VIBRAL", 80 "Vibrator", "VIBRAR",
|
/linux/Documentation/devicetree/bindings/regulator/ |
H A D | palmas-pmic.txt | 26 - ti,ldo6-vibrator : ldo6 is in vibrator mode 66 ti,ldo6-vibrator;
|
/linux/drivers/usb/misc/ |
H A D | trancevibrator.c | 3 * 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 D | motorola-mapphone-handset.dtsi | 56 vibrator { 57 compatible = "pwm-vibrator"; 181 vibrator_direction_pin: vibrator-direction-pins { 187 vibrator_enable_pin: vibrator-enable-pins {
|
/linux/Documentation/devicetree/bindings/mfd/ |
H A D | sprd,sc2731.yaml | 96 "^vibrator@[0-9a-f]+$": 98 $ref: /schemas/input/sprd,sc27xx-vibrator.yaml# 227 vibrator@ec8 { 228 compatible = "sprd,sc2731-vibrator";
|
/linux/arch/arm64/boot/dts/qcom/ |
H A D | msm8916-samsung-gt58.dts | 58 vibrator { 59 compatible = "gpio-vibrator"; 180 vibrator_en_default: vibrator-en-default-state {
|
H A D | msm8916-samsung-gt510.dts | 92 vibrator { 93 compatible = "pwm-vibrator";
|
H A D | msm8916-samsung-a2015-common.dtsi | 203 vibrator: vibrator { label 204 compatible = "pwm-vibrator";
|
/linux/arch/arm/boot/dts/qcom/ |
H A D | qcom-apq8026-lg-lenok.dts | 71 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 D | omap-abe-twl6040.c | 125 SND_SOC_DAPM_SPK("Vibrator", NULL), 150 {"Vibrator", NULL, "VIBRAL"}, 151 {"Vibrator", NULL, "VIBRAR"},
|
/linux/drivers/mfd/ |
H A D | lp8788.c | 115 /* current sink for vibrator */ 116 MFD_DEV_SIMPLE(VIBRATOR),
|