udev: Add support for haptics on Oneplus Enchilada / Fajita

The spmi_haptics driver isn't in mainline Linux as of Linux 6.11.
This commit is contained in:
Guido Günther
2024-09-07 16:12:01 +02:00
parent 446df4be9b
commit 9007766fa9
+7
View File
@@ -4,7 +4,14 @@
ACTION=="remove", GOTO="feedbackd_end" ACTION=="remove", GOTO="feedbackd_end"
#
# Haptic
#
# Librem 5, PinePhone
SUBSYSTEM=="input", KERNEL=="event*", ENV{ID_INPUT}=="1", ENV{ID_PATH}=="platform-vibrator", TAG+="uaccess", ENV{FEEDBACKD_TYPE}="vibra" SUBSYSTEM=="input", KERNEL=="event*", ENV{ID_INPUT}=="1", ENV{ID_PATH}=="platform-vibrator", TAG+="uaccess", ENV{FEEDBACKD_TYPE}="vibra"
# Oneplus Enchilada, Fajita (not mainline)
SUBSYSTEM=="input", KERNEL=="event*", ENV{ID_INPUT}=="1", SUBSYSTEMS=="input", ATTRS{name}=="spmi_haptics", TAG+="uaccess", ENV{FEEDBACKD_TYPE}="vibra"
# #
# See include/dt-bindings/leds/common.h in the linux kernel # See include/dt-bindings/leds/common.h in the linux kernel