/linux/drivers/input/misc/ |
H A D | pwm-vibra.c | 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() 65 if (vibrator->pwm_dir) { in pwm_vibrator_start() [all …]
|
H A D | gpio-vibra.c | 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() 60 if (vibrator->vcc_on) { in gpio_vibrator_stop() 61 regulator_disable(vibrator->vcc); in gpio_vibrator_stop() [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. 616 tristate "PWM vibrator support" 620 Say Y here to get support for PWM based vibrator devices. 930 tristate "Spreadtrum sc27xx vibrator support" 934 This option enables support for Spreadtrum sc27xx vibrator driver.
|
/linux/drivers/staging/greybus/ |
H A D | Makefile | 16 gb-vibrator-y := vibrator.o 27 obj-$(CONFIG_GREYBUS_VIBRATOR) += gb-vibrator.o
|
/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-a5u-eur.dts | 68 &vibrator {
|
H A D | msm8916-samsung-a2015-common.dtsi | 203 vibrator: vibrator { label 204 compatible = "pwm-vibrator";
|
H A D | msm8939-samsung-a7.dts | 265 reg_vibrator: regulator-vibrator { 278 vibrator { 279 compatible = "pwm-vibrator";
|
H A D | msm8916-samsung-a3u-eur.dts | 117 &vibrator {
|
H A D | msm8996-xiaomi-gemini.dts | 461 vibrator_default: vibrator-default-state { 468 vibrator_sleep: vibrator-sleep-state {
|
/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/regulator/ |
H A D | palmas-pmic.txt | 26 - ti,ldo6-vibrator : ldo6 is in vibrator mode 66 ti,ldo6-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 {
|
H A D | qcom-apq8026-huawei-sturgeon.dts | 77 vibrator@5a { 373 vibrator_default_state: vibrator-default-state {
|
H A D | qcom-msm8974-lge-nexus5-hammerhead.dts | 54 vibrator { 55 compatible = "pwm-vibrator"; 689 vibrator_pin: vibrator-state {
|
H A D | qcom-msm8974pro-fairphone-fp2.dts | 55 vibrator { 56 compatible = "gpio-vibrator";
|
/linux/arch/arm64/boot/dts/sprd/ |
H A D | sc2731.dtsi | 110 vibrator@ec8 { 111 compatible = "sprd,sc2731-vibrator";
|
/linux/arch/arm/boot/dts/samsung/ |
H A D | s5pv210-aries.dtsi | 64 regulator-name = "vibrator-en"; 532 vibrator: pwm-vibrator { label 533 compatible = "pwm-vibrator"; 754 vibrator_ena: vibrator-ena-pins {
|
/linux/arch/arm64/boot/dts/rockchip/ |
H A D | rk3326-gameforce-chi.dts | 273 vibrator_left: pwm-vibrator-l { 274 compatible = "pwm-vibrator"; 279 vibrator_right: pwm-vibrator-r { 280 compatible = "pwm-vibrator";
|
H A D | rk3588s-gameforce-ace.dts | 410 vibrator_l: vibrator-l { 411 compatible = "pwm-vibrator"; 416 vibrator_r: vibrator-r { 417 compatible = "pwm-vibrator"; 815 vibrator {
|
H A D | rk3566-anbernic-rgxx3.dtsi | 197 vibrator: pwm-vibrator { label 198 compatible = "pwm-vibrator";
|
H A D | rk3326-anbernic-rg351m.dtsi | 81 vibrator { 82 compatible = "pwm-vibrator";
|
/linux/arch/arm/boot/dts/st/ |
H A D | ste-ux500-samsung-golden.dts | 441 vibrator { 442 compatible = "gpio-vibrator"; 704 vibrator {
|
H A D | ste-ux500-samsung-skomer.dts | 98 vibrator { 99 compatible = "gpio-vibrator"; 662 vibrator {
|