Home
last modified time | relevance | path

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

12

/linux-6.1.9/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 …]
DKconfig167 tristate "Qualcomm PM8XXX vibrator support"
171 This option enables device driver support for the vibrator
176 module will be called pm8xxx-vibrator.
301 tristate "GPIO vibrator support"
305 Say Y here to get support for GPIO based vibrator devices.
578 tristate "PWM vibrator support"
582 Say Y here to get support for PWM based vibrator devices.
903 tristate "Spreadtrum sc27xx vibrator support"
907 This option enables support for Spreadtrum sc27xx vibrator driver.
DMakefile64 obj-$(CONFIG_INPUT_PM8XXX_VIBRATOR) += pm8xxx-vibrator.o
/linux-6.1.9/Documentation/devicetree/bindings/input/
Dgpio-vibrator.yaml4 $id: http://devicetree.org/schemas/input/gpio-vibrator.yaml#
7 title: GPIO vibrator
13 Registers a GPIO device as vibrator, where the on/off capability is controlled by a GPIO.
17 const: gpio-vibrator
35 vibrator {
36 compatible = "gpio-vibrator";
Dpwm-vibrator.yaml4 $id: "http://devicetree.org/schemas/input/pwm-vibrator.yaml#"
7 title: PWM vibrator
13 Registers a PWM device as vibrator. It is expected, that the vibrator's
23 const: pwm-vibrator
51 vibrator {
52 compatible = "pwm-vibrator";
Dsprd,sc27xx-vibrator.yaml5 $id: http://devicetree.org/schemas/input/sprd,sc27xx-vibrator.yaml#
18 - sprd,sc2721-vibrator
19 - sprd,sc2730-vibrator
20 - sprd,sc2731-vibrator
44 vibrator@eb4 {
45 compatible = "sprd,sc2731-vibrator";
Dqcom,pm8xxx-vib.yaml34 vibrator@4a {
Dti,drv260x.txt15 DRV260X_ERM_MODE - Eccentric Rotating Mass mode (Rotary vibrator)
/linux-6.1.9/drivers/staging/greybus/
DMakefile16 gb-vibrator-y := vibrator.o
27 obj-$(CONFIG_GREYBUS_VIBRATOR) += gb-vibrator.o
Dvibrator.c106 ATTRIBUTE_GROUPS(vibrator);
/linux-6.1.9/Documentation/devicetree/bindings/regulator/
Dpalmas-pmic.txt26 - ti,ldo6-vibrator : ldo6 is in vibrator mode
66 ti,ldo6-vibrator;
/linux-6.1.9/arch/arm64/boot/dts/sprd/
Dsc2731.dtsi111 vibrator@ec8 {
112 compatible = "sprd,sc2731-vibrator";
/linux-6.1.9/arch/arm/boot/dts/
Ds5pv210-aries.dtsi64 regulator-name = "vibrator-en";
532 vibrator: pwm-vibrator { label
533 compatible = "pwm-vibrator";
754 vibrator_ena: vibrator-ena-pins {
Dqcom-pm8226.dtsi105 pm8226_vib: vibrator@c000 {
Dqcom-msm8974pro-fairphone-fp2.dts54 vibrator {
55 compatible = "gpio-vibrator";
Dste-ux500-samsung-golden.dts441 vibrator {
442 compatible = "gpio-vibrator";
704 vibrator {
Dste-ux500-samsung-kyle.dts131 vibrator {
132 compatible = "gpio-vibrator";
660 vibrator {
Dste-ux500-samsung-skomer.dts98 vibrator {
99 compatible = "gpio-vibrator";
662 vibrator {
Dste-ux500-samsung-codina-tmo.dts140 vibrator {
141 compatible = "gpio-vibrator";
758 vibrator {
/linux-6.1.9/Documentation/devicetree/bindings/mfd/
Dtc3589x.txt4 following built-in devices: gpio, keypad, rotator (vibrator), PWM (for
Dmediatek,mt6370.yaml79 vibrator.
/linux-6.1.9/arch/arm64/boot/dts/allwinner/
Dsun50i-a64-pinephone.dtsi93 vibrator {
94 compatible = "gpio-vibrator";
/linux-6.1.9/arch/arm64/boot/dts/qcom/
Dpm8916.dtsi135 pm8916_vib: vibrator@c000 {
/linux-6.1.9/arch/arm64/boot/dts/rockchip/
Drk3566-anbernic-rgxx3.dtsi307 vibrator: pwm-vibrator { label
308 compatible = "pwm-vibrator";

12