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

From: David Heidelberg

Date: Mon Nov 30 2026 - 18:56:26 EST


On 30/11/2026 17:16, Andrey Derkach wrote:
On Mon, 30 Nov 2026 17:11:33 +0100, David Heidelberg wrote:
but maybe that applies only to the pmi8998? [1]

On PM660 that bit does not exist. The driver writes 2, but the
register reads back 0. When I write 3, it reads back 1. So PM660 can
only do 400 or 800 mA.

You been right, I took it from the driver qti-haptics, where 'qcom,ilim-ma' was likely leftover from older leds-qpnp-haptics.c and thus removed later.

Current options are just set it to 800 mA for everyone, or expose the configuration option. I'll go for the second one (and add back the DT property for it).

David


I don't have a PMI8998 phone. Someone with one can check it by reading
0xc052 after the driver loads.