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

From: Andrey Derkach

Date: Mon Nov 30 2026 - 10:22:21 EST


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.

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)