public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Input: tsc200x: Improve wakeup source handling
@ 2026-03-09 11:00 phucduc.bui
  2026-03-09 11:00 ` [PATCH 1/2] dt-bindings: input: touchscreen: ti,tsc2005: Add wakeup-source phucduc.bui
  2026-03-09 11:00 ` [PATCH 2/2] Input: Touchscreen: tsc200x - delegate wakeup IRQ management to I2C core phucduc.bui
  0 siblings, 2 replies; 8+ messages in thread
From: phucduc.bui @ 2026-03-09 11:00 UTC (permalink / raw)
  To: Dmitry Torokhov, Rob Herring
  Cc: Krzysztof Kozlowski, Conor Dooley, Ingo Molnar, Thomas Gleixner,
	Marek Vasut, Michael Welling, linux-input, devicetree,
	linux-kernel, phucduc.bui

From: bui duc phuc <phucduc.bui@gmail.com>

The tsc200x driver already uses device_init_wakeup() to read the
"wakeup-source" property from the Device Tree. However, this property
is currently not documented in the DT binding schema.

In addition, the I2C core already handles wakeup initialization and
IRQ wake management automatically when the "wakeup-source" property
is present. Therefore, the manual wakeup IRQ handling currently done
in the driver is redundant for I2C-based devices (TSC2004).

This series makes the following changes:

 1. Document the "wakeup-source" property in the DT bindings.

 2. Delegate wakeup IRQ management to the I2C core when running on
    BUS_I2C, while keeping manual management for BUS_SPI (TSC2005)
    to ensure correct behavior across both interfaces.

Note:
These changes are based on code inspection and the documented behavior
of the I2C core. They have not been tested on physical hardware yet.

bui duc phuc (2):
  dt-bindings: input: touchscreen: ti,tsc2005: Add wakeup-source
  Input: Touchscreen: tsc200x - delegate wakeup IRQ management to I2C
    core

 .../bindings/input/touchscreen/ti,tsc2005.yaml |  7 +++++++
 drivers/input/touchscreen/tsc200x-core.c       | 18 +++++++++++++-----
 2 files changed, 20 insertions(+), 5 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-03-16  2:44 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-09 11:00 [PATCH 0/2] Input: tsc200x: Improve wakeup source handling phucduc.bui
2026-03-09 11:00 ` [PATCH 1/2] dt-bindings: input: touchscreen: ti,tsc2005: Add wakeup-source phucduc.bui
2026-03-13 23:23   ` Rob Herring
2026-03-16  2:41     ` [PATCH 1/2] dt-bindings: input: touchscreen: ti,tsc2005: Add phucduc.bui
2026-03-09 11:00 ` [PATCH 2/2] Input: Touchscreen: tsc200x - delegate wakeup IRQ management to I2C core phucduc.bui
2026-03-11  0:21   ` Dmitry Torokhov
2026-03-11  3:17     ` [PATCH 2/2] Input: Touchscreen: tsc200x - delegate wakeup IRQ phucduc.bui
2026-03-16  2:44     ` phucduc.bui

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox