Hello,

I want to add support for the DRV2605L[1] haptic driver, but I am not sure
what interface to use in doing so. I saw that there was no haptic upperhalf
support in the motor/ folder, but I found a force-feedback upperhalf[2] in
input/ which, from what I understand, is meant for haptics. However, I
don't see how I can use it in my case. DRV2605L has a lot of features (RTP
support, Analog input, PWM input, Audio-To-Vibe interface, incorporated ROM
effects library, etc) and the ff driver seems to be lacking the flexibility
I need.

My question is: Should I use the ff upperhalf to add support for DRV2605L
(and, if so, can you please give me some pointers on how to implement such
a feature-rich driver using the ff interface), or should I write a haptic
upperhalf that uses the classic file-operations: read, write, ioctl, etc.
(similar to a sensor upperhalf) ?

[1]:
https://www.ti.com/lit/ds/symlink/drv2605l.pdf?ts=1733068441406&ref_url=https%253A%252F%252Fwww.ti.com%252Fproduct%252FDRV2605L
[2]: https://github.com/apache/nuttx/blob/master/drivers/input/ff_upper.c

Thank you,
Simona

Reply via email to