| /OK3568_Linux_fs/kernel/drivers/input/misc/ |
| H A D | pwm-vibra.c | 36 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 D | gpio-vibra.c | 37 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 D | Kconfig | 145 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 D | Makefile | 59 obj-$(CONFIG_INPUT_PM8XXX_VIBRATOR) += pm8xxx-vibrator.o
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/input/ |
| H A D | pwm-vibrator.txt | 1 * 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 D | sprd,sc27xx-vibra.txt | 4 - compatible: should be "sprd,sc2731-vibrator". 5 - reg: address of vibrator control register. 19 vibrator@eb4 { 20 compatible = "sprd,sc2731-vibrator";
|
| H A D | qcom,pm8xxx-vib.txt | 20 vibrator@4a {
|
| H A D | ti,drv260x.txt | 15 DRV260X_ERM_MODE - Eccentric Rotating Mass mode (Rotary vibrator)
|
| /OK3568_Linux_fs/kernel/drivers/staging/greybus/ |
| H A D | Makefile | 16 gb-vibrator-y := vibrator.o 27 obj-$(CONFIG_GREYBUS_VIBRATOR) += gb-vibrator.o
|
| H A D | vibrator.c | 106 ATTRIBUTE_GROUPS(vibrator);
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/regulator/ |
| H A D | palmas-pmic.txt | 26 - ti,ldo6-vibrator : ldo6 is in vibrator mode 66 ti,ldo6-vibrator;
|
| /OK3568_Linux_fs/kernel/arch/arm64/boot/dts/sprd/ |
| H A D | sc2731.dtsi | 111 vibrator@ec8 { 112 compatible = "sprd,sc2731-vibrator";
|
| /OK3568_Linux_fs/kernel/arch/arm/boot/dts/ |
| H A D | rk3288-x7811-rk818-dual-dsi.dts | 71 vibrator { 72 compatible = "rk-vibrator-gpio"; 73 vibrator-gpio = <&gpio7 21 GPIO_ACTIVE_LOW>;
|
| H A D | s5pv210-aries.dtsi | 64 regulator-name = "vibrator-en"; 532 vibrator: pwm-vibrator { label 533 compatible = "pwm-vibrator"; 755 vibrator_ena: vibrator-ena {
|
| H A D | qcom-msm8974-fairphone-fp2.dts | 53 vibrator { 54 compatible = "gpio-vibrator";
|
| H A D | ste-ux500-samsung-golden.dts | 374 vibrator { 375 compatible = "gpio-vibrator"; 628 vibrator {
|
| H A D | ste-ux500-samsung-skomer.dts | 67 vibrator { 68 compatible = "gpio-vibrator"; 571 vibrator {
|
| H A D | rk3288-th804.dtsi | 117 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 D | sun50i-a64-pinephone.dtsi | 58 vibrator { 59 compatible = "gpio-vibrator";
|
| /OK3568_Linux_fs/kernel/arch/arm64/boot/dts/qcom/ |
| H A D | pm8916.dtsi | 121 pm8916_vib: vibrator@c000 {
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/mfd/ |
| H A D | tc3589x.txt | 4 following built-in devices: gpio, keypad, rotator (vibrator), PWM (for
|
| /OK3568_Linux_fs/kernel/arch/arm64/boot/dts/rockchip/ |
| H A D | rk3399-tve1205g.dts | 280 vibrator { 281 compatible = "rk-vibrator-gpio"; 282 vibrator-gpio = <&gpio4 30 GPIO_ACTIVE_LOW>;
|
| H A D | rk3399-mid-818-android.dts | 262 vibrator { 263 compatible = "rk-vibrator-gpio"; 264 vibrator-gpio = <&gpio4 30 GPIO_ACTIVE_LOW>;
|
| H A D | rk3566-rk817-tablet-rkg11.dts | 201 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 D | imx8mq-librem5-devkit.dts | 210 vibrator { 211 compatible = "gpio-vibrator";
|