Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/drivers/input/misc/
Dpwm-vibra.c36 static int pwm_vibrator_start(struct pwm_vibrator *vibrator) in pwm_vibrator_start() argument
38 struct device *pdev = vibrator->input->dev.parent; in pwm_vibrator_start()
42 if (!vibrator->vcc_on) { in pwm_vibrator_start()
43 err = regulator_enable(vibrator->vcc); in pwm_vibrator_start()
48 vibrator->vcc_on = true; in pwm_vibrator_start()
51 pwm_get_state(vibrator->pwm, &state); in pwm_vibrator_start()
52 pwm_set_relative_duty_cycle(&state, vibrator->level, 0xffff); in pwm_vibrator_start()
55 err = pwm_apply_state(vibrator->pwm, &state); in pwm_vibrator_start()
61 if (vibrator->pwm_dir) { in pwm_vibrator_start()
62 pwm_get_state(vibrator->pwm_dir, &state); in pwm_vibrator_start()
[all …]
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 …]
DKconfig145 tristate "Qualcomm PM8XXX vibrator support"
149 This option enables device driver support for the vibrator
154 module will be called pm8xxx-vibrator.
279 tristate "GPIO vibrator support"
283 Say Y here to get support for GPIO based vibrator devices.
568 tristate "PWM vibrator support"
572 Say Y here to get support for PWM based vibrator devices.
852 tristate "Spreadtrum sc27xx vibrator support"
856 This option enables support for Spreadtrum sc27xx vibrator driver.
DMakefile59 obj-$(CONFIG_INPUT_PM8XXX_VIBRATOR) += pm8xxx-vibrator.o
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/input/
Dsprd,sc27xx-vibra.txt4 - compatible: should be "sprd,sc2731-vibrator".
5 - reg: address of vibrator control register.
19 vibrator@eb4 {
20 compatible = "sprd,sc2731-vibrator";
Dpwm-vibrator.txt1 * PWM vibrator device tree bindings
3 Registers a PWM device as vibrator. It is expected, that the vibrator's
12 - compatible: should contain "pwm-vibrator"
59 vibrator {
60 compatible = "pwm-vibrator";
Dqcom,pm8xxx-vib.txt20 vibrator@4a {
Dti,drv260x.txt15 DRV260X_ERM_MODE - Eccentric Rotating Mass mode (Rotary vibrator)
/kernel/linux/linux-5.10/drivers/staging/greybus/
DMakefile16 gb-vibrator-y := vibrator.o
27 obj-$(CONFIG_GREYBUS_VIBRATOR) += gb-vibrator.o
Dvibrator.c106 ATTRIBUTE_GROUPS(vibrator);
DKconfig119 will be called gb-vibrator.ko
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/regulator/
Dpalmas-pmic.txt26 - ti,ldo6-vibrator : ldo6 is in vibrator mode
66 ti,ldo6-vibrator;
/kernel/linux/linux-5.10/arch/arm64/boot/dts/sprd/
Dsc2731.dtsi111 vibrator@ec8 {
112 compatible = "sprd,sc2731-vibrator";
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Dqcom-msm8974-fairphone-fp2.dts53 vibrator {
54 compatible = "gpio-vibrator";
Ds5pv210-aries.dtsi64 regulator-name = "vibrator-en";
532 vibrator: pwm-vibrator { label
533 compatible = "pwm-vibrator";
755 vibrator_ena: vibrator-ena {
Dste-ux500-samsung-golden.dts374 vibrator {
375 compatible = "gpio-vibrator";
628 vibrator {
Dste-ux500-samsung-skomer.dts67 vibrator {
68 compatible = "gpio-vibrator";
571 vibrator {
Dmotorola-mapphone-common.dtsi179 vibrator {
180 compatible = "pwm-vibrator";
Dqcom-msm8660.dtsi396 vibrator@4a {
/kernel/linux/linux-5.10/arch/arm64/boot/dts/allwinner/
Dsun50i-a64-pinephone.dtsi58 vibrator {
59 compatible = "gpio-vibrator";
/kernel/linux/linux-5.10/arch/arm64/boot/dts/qcom/
Dpm8916.dtsi121 pm8916_vib: vibrator@c000 {
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/mfd/
Dtc3589x.txt4 following built-in devices: gpio, keypad, rotator (vibrator), PWM (for
/kernel/linux/linux-5.10/arch/arm64/boot/dts/freescale/
Dimx8mq-librem5-devkit.dts210 vibrator {
211 compatible = "gpio-vibrator";
Dimx8mq-librem5.dtsi186 vibrator {
187 compatible = "pwm-vibrator";
/kernel/linux/linux-5.10/arch/mips/boot/dts/ingenic/
Dgcw0.dts111 compatible = "pwm-vibrator";

12