msm8953-mainline / linux

Linux mainline kernel with WIP patches for msm8953 devices
Other
111 stars 59 forks source link

arm64: dts: qcom: pmi8950: enable vibrator haptics #121

Open M0Rf30 opened 1 year ago

M0Rf30 commented 1 year ago

from dmesg:

[   14.312943] input: spmi_haptics as /devices/platform/soc@0/200f000.spmi/spmi-0/0-03/200f000.spmi:pmic@3:haptics@c000/input/input4

with fftest

xiaomi-vince:~$ sudo fftest /dev/input/event4
Force feedback test program.
HOLD FIRMLY YOUR WHEEL OR JOYSTICK TO PREVENT DAMAGES

Device /dev/input/event4 opened
Features:
  * Absolute axes:
    [00 00 00 00 00 00 00 00 ]
  * Relative axes:
    [00 00 ]
  * Force feedback effects types: Periodic, Rumble, Gain,
    Force feedback periodic effects: Square, Triangle, Sine,
    [00 00 00 00 00 00 00 00 00 00 03 07 01 00 00 00 ]
  * Number of simultaneous effects: 16

Setting master gain to 75% ... OK
Uploading effect #0 (Periodic sinusoidal) ... OK (id 0)
Uploading effect #1 (Constant) ... Error: Invalid argument
Uploading effect #2 (Spring) ... Error: Invalid argument
Uploading effect #3 (Damper) ... Error: Invalid argument
Uploading effect #4 (Strong rumble, with heavy motor) ... OK (id 1)
Uploading effect #5 (Weak rumble, with light motor) ... OK (id 2)
barni2000 commented 11 months ago

Some times i got this.

[   75.587484] spmi-haptics 200f000.spmi:pmic@3:haptics@c000: Short circuit persists, disabling haptics
[  134.782851] spmi-haptics 200f000.spmi:pmic@3:haptics@c000: Short circuit persists, disabling haptics
[  136.148232] spmi-haptics 200f000.spmi:pmic@3:haptics@c000: Short circuit persists, disabling haptics