Home
last modified time | relevance | path

Searched refs:vibrator (Results 1 – 25 of 46) sorted by relevance

12

/linux/drivers/input/misc/
H A Dpwm-vibra.c38 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 Dgpio-vibra.c37 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 DKconfig195 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 DMakefile16 gb-vibrator-y := vibrator.o
27 obj-$(CONFIG_GREYBUS_VIBRATOR) += gb-vibrator.o
H A Dvibrator.c106 ATTRIBUTE_GROUPS(vibrator);
/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-a5u-eur.dts68 &vibrator {
H A Dmsm8916-samsung-a2015-common.dtsi203 vibrator: vibrator { label
204 compatible = "pwm-vibrator";
H A Dmsm8939-samsung-a7.dts265 reg_vibrator: regulator-vibrator {
278 vibrator {
279 compatible = "pwm-vibrator";
H A Dmsm8916-samsung-a3u-eur.dts117 &vibrator {
H A Dmsm8996-xiaomi-gemini.dts461 vibrator_default: vibrator-default-state {
468 vibrator_sleep: vibrator-sleep-state {
/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/Documentation/devicetree/bindings/regulator/
H A Dpalmas-pmic.txt26 - ti,ldo6-vibrator : ldo6 is in vibrator mode
66 ti,ldo6-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 {
H A Dqcom-apq8026-huawei-sturgeon.dts77 vibrator@5a {
373 vibrator_default_state: vibrator-default-state {
H A Dqcom-msm8974pro-fairphone-fp2.dts55 vibrator {
56 compatible = "gpio-vibrator";
H A Dpm8058.dtsi26 vibrator@4a {
H A Dpm8226.dtsi176 pm8226_vib: vibrator@c000 {
/linux/arch/arm64/boot/dts/sprd/
H A Dsc2731.dtsi110 vibrator@ec8 {
111 compatible = "sprd,sc2731-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/arch/arm64/boot/dts/rockchip/
H A Drk3588s-gameforce-ace.dts410 vibrator_l: vibrator-l {
411 compatible = "pwm-vibrator";
416 vibrator_r: vibrator-r {
417 compatible = "pwm-vibrator";
815 vibrator {
H A Drk3566-anbernic-rgxx3.dtsi197 vibrator: pwm-vibrator { label
198 compatible = "pwm-vibrator";
/linux/arch/arm/boot/dts/st/
H A Dste-ux500-samsung-golden.dts441 vibrator {
442 compatible = "gpio-vibrator";
704 vibrator {
H A Dste-ux500-samsung-skomer.dts98 vibrator {
99 compatible = "gpio-vibrator";
662 vibrator {

12