/openbmc/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 | 178 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. 599 tristate "PWM vibrator support" 603 Say Y here to get support for PWM based vibrator devices. 913 tristate "Spreadtrum sc27xx vibrator support" 917 This option enables support for Spreadtrum sc27xx vibrator driver.
|
/openbmc/linux/arch/arm64/boot/dts/qcom/ |
H A D | msm8916-samsung-gt58.dts | 25 vibrator { 26 compatible = "gpio-vibrator"; 69 vibrator_en_default: vibrator-en-default-state {
|
H A D | msm8916-samsung-gt510.dts | 58 vibrator { 59 compatible = "pwm-vibrator";
|
H A D | msm8939-samsung-a7.dts | 188 pwm_vibrator: pwm-vibrator { 252 reg_vibrator: regulator-vibrator { 265 vibrator { 266 compatible = "pwm-vibrator";
|
H A D | msm8916-samsung-a2015-common.dtsi | 188 vibrator: vibrator { label 189 compatible = "pwm-vibrator";
|
H A D | msm8916-samsung-a5u-eur.dts | 62 &vibrator {
|
H A D | msm8916-samsung-a3u-eur.dts | 111 &vibrator {
|
H A D | msm8996-xiaomi-gemini.dts | 461 vibrator_default: vibrator-default-state { 468 vibrator_sleep: vibrator-sleep-state {
|
/openbmc/linux/arch/arm64/boot/dts/rockchip/ |
H A D | rk3326-anbernic-rg351m.dts | 15 vibrator { 16 compatible = "pwm-vibrator";
|
H A D | rk3566-anbernic-rgxx3.dtsi | 269 vibrator: pwm-vibrator { label 270 compatible = "pwm-vibrator";
|
/openbmc/linux/drivers/staging/greybus/ |
H A D | Makefile | 16 gb-vibrator-y := vibrator.o 27 obj-$(CONFIG_GREYBUS_VIBRATOR) += gb-vibrator.o
|
H A D | vibrator.c | 106 ATTRIBUTE_GROUPS(vibrator);
|
/openbmc/linux/Documentation/devicetree/bindings/regulator/ |
H A D | palmas-pmic.txt | 26 - ti,ldo6-vibrator : ldo6 is in vibrator mode 66 ti,ldo6-vibrator;
|
/openbmc/linux/arch/arm64/boot/dts/sprd/ |
H A D | sc2731.dtsi | 111 vibrator@ec8 { 112 compatible = "sprd,sc2731-vibrator";
|
/openbmc/linux/arch/arm/boot/dts/qcom/ |
H A D | qcom-msm8974-lge-nexus5-hammerhead.dts | 54 vibrator { 55 compatible = "pwm-vibrator"; 658 vibrator_pin: vibrator-state {
|
H A D | qcom-apq8026-huawei-sturgeon.dts | 77 vibrator@5a { 371 vibrator_default_state: vibrator-default-state {
|
H A D | qcom-msm8974pro-fairphone-fp2.dts | 55 vibrator { 56 compatible = "gpio-vibrator";
|
H A D | pm8226.dtsi | 174 pm8226_vib: vibrator@c000 {
|
/openbmc/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 {
|
/openbmc/linux/arch/arm/boot/dts/ti/omap/ |
H A D | motorola-mapphone-common.dtsi | 156 vibrator { 157 compatible = "pwm-vibrator"; 587 vibrator_direction_pin: vibrator-direction-pins { 593 vibrator_enable_pin: vibrator-enable-pins {
|
/openbmc/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 {
|
H A D | ste-ux500-samsung-kyle.dts | 131 vibrator { 132 compatible = "gpio-vibrator"; 675 vibrator {
|