Re: [PATCH v8 3/9] Input: qcom-pmi8998-haptics - Add Qualcomm PMI8998 haptics driver

From: David Heidelberg

Date: Mon Nov 30 2026 - 11:12:01 EST


On 30/11/2026 16:21, Andrey Derkach wrote:
On Mon, 30 Nov 2026 01:13:50 +0100, David Heidelberg wrote:
+ return pmi8998_haptics_write_masked(haptics, HAP_ILIM_CFG_REG,
+ HAP_ILIM_SEL_MASK, HAP_ILIM_SEL_1000_MA);

On PM660 only bit 0 of this register sticks: writing 2 reads back 0,
writing 3 reads back 1. So on PM660 this sets 400 mA. The downstream
qpnp-haptic driver also allows only 400 or 800 mA here (ILIM mask
BIT(0)). The stock DT of my phone uses 800 mA, which feels a bit
stronger.

Hello Andrey,

originally I had this in-place, but then I looked at the Fenglin Wu Android downstream change which dropped setting 400/800 mA and kept 1000 mA, but maybe that applies only to the pmi8998? [1]

+Fenglin
Do you know if the current setting is correct?

Thanks for testing!
David

[1] https://github.com/MiCode/Xiaomi_Kernel_OpenSource/commit/f2ac9205dc572be8f0daea7ba7285e65201522e9 (for example)


Other than that it works on a Lenovo S5 Pro (PM660, ERM motor) with the
8/9 node: rumble, constant, sine and custom effects, gain, and unloading
the module while it plays.

Tested-by: Andrey Derkach <gabin278@xxxxxxxxx> # on PM660 (Lenovo S5 Pro, ERM)