Home
last modified time | relevance | path

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

12

/OK3568_Linux_fs/kernel/drivers/input/misc/
H A 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 …]
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 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.
H A DMakefile59 obj-$(CONFIG_INPUT_PM8XXX_VIBRATOR) += pm8xxx-vibrator.o
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/input/
H A 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";
H A 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";
H A Dqcom,pm8xxx-vib.txt20 vibrator@4a {
H A Dti,drv260x.txt15 DRV260X_ERM_MODE - Eccentric Rotating Mass mode (Rotary vibrator)
/OK3568_Linux_fs/kernel/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);
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/regulator/
H A Dpalmas-pmic.txt26 - ti,ldo6-vibrator : ldo6 is in vibrator mode
66 ti,ldo6-vibrator;
/OK3568_Linux_fs/kernel/arch/arm64/boot/dts/sprd/
H A Dsc2731.dtsi111 vibrator@ec8 {
112 compatible = "sprd,sc2731-vibrator";
/OK3568_Linux_fs/kernel/arch/arm/boot/dts/
H A Drk3288-x7811-rk818-dual-dsi.dts71 vibrator {
72 compatible = "rk-vibrator-gpio";
73 vibrator-gpio = <&gpio7 21 GPIO_ACTIVE_LOW>;
H A Ds5pv210-aries.dtsi64 regulator-name = "vibrator-en";
532 vibrator: pwm-vibrator { label
533 compatible = "pwm-vibrator";
755 vibrator_ena: vibrator-ena {
H A Dqcom-msm8974-fairphone-fp2.dts53 vibrator {
54 compatible = "gpio-vibrator";
H A Dste-ux500-samsung-golden.dts374 vibrator {
375 compatible = "gpio-vibrator";
628 vibrator {
H A Dste-ux500-samsung-skomer.dts67 vibrator {
68 compatible = "gpio-vibrator";
571 vibrator {
H A Drk3288-th804.dtsi117 rk-vibrator {
119 compatible = "rk-vibrator-gpio";
120 vibrator-gpio = <&gpio7 21 GPIO_ACTIVE_HIGH>;
/OK3568_Linux_fs/kernel/arch/arm64/boot/dts/allwinner/
H A Dsun50i-a64-pinephone.dtsi58 vibrator {
59 compatible = "gpio-vibrator";
/OK3568_Linux_fs/kernel/arch/arm64/boot/dts/qcom/
H A Dpm8916.dtsi121 pm8916_vib: vibrator@c000 {
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/mfd/
H A Dtc3589x.txt4 following built-in devices: gpio, keypad, rotator (vibrator), PWM (for
/OK3568_Linux_fs/kernel/arch/arm64/boot/dts/rockchip/
H A Drk3399-tve1205g.dts280 vibrator {
281 compatible = "rk-vibrator-gpio";
282 vibrator-gpio = <&gpio4 30 GPIO_ACTIVE_LOW>;
H A Drk3399-mid-818-android.dts262 vibrator {
263 compatible = "rk-vibrator-gpio";
264 vibrator-gpio = <&gpio4 30 GPIO_ACTIVE_LOW>;
H A Drk3566-rk817-tablet-rkg11.dts201 vibrator {
202 compatible = "rk-vibrator-gpio";
203 vibrator-gpio = <&gpio0 RK_PC5 GPIO_ACTIVE_LOW>;
/OK3568_Linux_fs/kernel/arch/arm64/boot/dts/freescale/
H A Dimx8mq-librem5-devkit.dts210 vibrator {
211 compatible = "gpio-vibrator";

12