Home
last modified time | relevance | path

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

12

/openbmc/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 DKconfig178 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 Dmsm8916-samsung-gt58.dts25 vibrator {
26 compatible = "gpio-vibrator";
69 vibrator_en_default: vibrator-en-default-state {
H A Dmsm8916-samsung-gt510.dts58 vibrator {
59 compatible = "pwm-vibrator";
H A Dmsm8939-samsung-a7.dts188 pwm_vibrator: pwm-vibrator {
252 reg_vibrator: regulator-vibrator {
265 vibrator {
266 compatible = "pwm-vibrator";
H A Dmsm8916-samsung-a2015-common.dtsi188 vibrator: vibrator { label
189 compatible = "pwm-vibrator";
H A Dmsm8916-samsung-a5u-eur.dts62 &vibrator {
H A Dmsm8916-samsung-a3u-eur.dts111 &vibrator {
H A Dmsm8996-xiaomi-gemini.dts461 vibrator_default: vibrator-default-state {
468 vibrator_sleep: vibrator-sleep-state {
/openbmc/linux/arch/arm64/boot/dts/rockchip/
H A Drk3326-anbernic-rg351m.dts15 vibrator {
16 compatible = "pwm-vibrator";
H A Drk3566-anbernic-rgxx3.dtsi269 vibrator: pwm-vibrator { label
270 compatible = "pwm-vibrator";
/openbmc/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);
/openbmc/linux/Documentation/devicetree/bindings/regulator/
H A Dpalmas-pmic.txt26 - ti,ldo6-vibrator : ldo6 is in vibrator mode
66 ti,ldo6-vibrator;
/openbmc/linux/arch/arm64/boot/dts/sprd/
H A Dsc2731.dtsi111 vibrator@ec8 {
112 compatible = "sprd,sc2731-vibrator";
/openbmc/linux/arch/arm/boot/dts/qcom/
H A Dqcom-msm8974-lge-nexus5-hammerhead.dts54 vibrator {
55 compatible = "pwm-vibrator";
658 vibrator_pin: vibrator-state {
H A Dqcom-apq8026-huawei-sturgeon.dts77 vibrator@5a {
371 vibrator_default_state: vibrator-default-state {
H A Dqcom-msm8974pro-fairphone-fp2.dts55 vibrator {
56 compatible = "gpio-vibrator";
H A Dpm8226.dtsi174 pm8226_vib: vibrator@c000 {
/openbmc/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 {
/openbmc/linux/arch/arm/boot/dts/ti/omap/
H A Dmotorola-mapphone-common.dtsi156 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 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 {
H A Dste-ux500-samsung-kyle.dts131 vibrator {
132 compatible = "gpio-vibrator";
675 vibrator {

12