[PATCH v6 0/2] input: misc: add support for Imagis ISA1200 haptic motor driver
From: Svyatoslav Ryhel <hidden>
Date: 2026-06-17 07:06:15
Also in:
linux-devicetree, lkml
The ISA1200 is a haptic feedback unit from Imagis Technology using two motors for haptic feedback in mobile phones. Used in many mobile devices c. 2012 including Samsung Galxy S Advance GT-I9070 (Janice), Samsung Beam GT-I8350 (Gavini), LG Optimus 4X P880 and LG Optimus Vu P895. The exact datasheet for the ISA1200 is not available; all data was modeled based on available downstream kernel sources for various devices and fragments of information scattered across the internet. --- Changes in v6: - added minItems for gpios - included changes by Dmitry Torokhov Changes in v5: - added supplies to private structure - clk_on dropped - ret > err - added active flag to track status - all hardware manipulations consolidated in start/stop - dropped mutex from work - dropped active check from isa1200_vibrator_close it was moved to stop directly - dropped hw maniplations from probe - bustype set to BUS_I2C - adjusted error strings - fixed cancel_work_sync in isa1200_suspend Changes in v4: - added INPUT_FF_MEMLESS option selection - fixed missing clock status set - guard start/stop calls in isa1200_play_work with lock - clamp ldo voltages to allowed range - fixed imagis,pll-div parsing - dropped Tested-by from schema adding commit Changes in v3: - added clock state tracking - dropped level check in vibrator close - added clkdiv clamping - added comments regarding registers 5 and 6 Changes in v2: - imagis,clk-div switched to accept actual divider value - dropped DT header - adjusted imagis,period-ns range - initiated hctrl0 and hctrl1 values in isa1200_start - fixed situation when PWM might return -EPROBE_DEFER to be treated properly - added chech a clock or PWM is available - fixed regulator voltages check being off by 10 - added chech if state.period is not zero - added action call to disable clock and gpios on error - used managed version of work init - added work cancel on suspend - PW calls are done under mutex lock --- Linus Walleij (1): Input: isa1200 - new driver for Imagis ISA1200 Svyatoslav Ryhel (1): dt-bindings: input: Document Imagis ISA1200 haptic motor driver .../bindings/input/imagis,isa1200.yaml | 141 +++++ drivers/input/misc/Kconfig | 12 + drivers/input/misc/Makefile | 1 + drivers/input/misc/isa1200.c | 536 ++++++++++++++++++ 4 files changed, 690 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/imagis,isa1200.yaml create mode 100644 drivers/input/misc/isa1200.c -- 2.53.0