nuttx/drivers/input
Jorge Guzman e884b6c3c8 input/gt9xx: fix register write and no-contact read
Two defects keep the driver from reporting touches on a board that
cannot use the interrupt line.

The register write built two messages joined by I2C_M_NOSTART.  That
puts the same bytes on the wire as a single three byte message, but
resuming a transfer without a start condition is optional, and a
controller that does not implement it fails the transfer.  On the
ESP32-P4 every write returned -ETIMEDOUT, so the buffer status clear
at 0x814E never reached the controller and gt9xx_read_touch_data()
returned an error for every read.  Send the register address and the
value as a single message.

read() returned a full struct touch_sample_s even when the controller
reported no contact, with npoints set to zero.  A caller that judges
the read by its return value takes that for valid data: the LVGL
touchscreen driver reads a second sample to decide whether to keep
reading, always gets one, so it sets continue_reading on every pass
and lv_indev_read() never returns.  The display then stops refreshing
after the first frame while the touch reads spin.  Return -EAGAIN when
there is no contact and the file was opened with O_NONBLOCK, which is
what the touchscreen upper half does in the same situation.  A
blocking reader keeps the previous behaviour.

While here, add the blank line after the declaration in gt9xx_poll() that
nxstyle asks for.  It predates this change, but the CI runs checkpatch over
every file a commit touches, so it has to go.

Signed-off-by: Jorge Guzman <jorge.gzm@gmail.com>
2026-08-31 16:16:21 +08:00
..
ads7843e.c drivers/: Multiple Drivers Are Registered With World Writable - Part 2 2026-07-15 15:27:28 +08:00
ads7843e.h drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
ajoystick.c drivers/: Multiple Drivers Are Registered With World Writable - Part 2 2026-07-15 15:27:28 +08:00
aw86225.c !sys/types.h: change time_t and clock_t to int64_t to align with other OSes 2026-05-19 16:21:28 +08:00
aw86225_internal.h arch_atomic: only support atomic_xx and atomic64_xx function 2024-12-04 14:03:14 +01:00
aw86225_reg.h drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
button_lower.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
button_upper.c drivers/: Multiple Drivers Are Registered With World Writable - Part 2 2026-07-15 15:27:28 +08:00
CMakeLists.txt drivers/input: support ST7123 touchscreen controller 2026-08-06 12:42:15 +02:00
cypress_mbr3108.c drivers/: Multiple Drivers Are Registered With World Writable - Part 2 2026-07-15 15:27:28 +08:00
djoystick.c drivers/: Multiple Drivers Are Registered With World Writable - Part 2 2026-07-15 15:27:28 +08:00
ff_dummy.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
ff_upper.c drivers/: Multiple Drivers Are Registered With World Writable - Part 2 2026-07-15 15:27:28 +08:00
ft5x06.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
ft5x06.h drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
goldfish_events.c drivers/input: partial fix of indistinguishable ASCII and special keycodes 2026-07-29 22:51:15 -03:00
gt9xx.c input/gt9xx: fix register write and no-contact read 2026-08-31 16:16:21 +08:00
Kconfig drivers/input: support ST7123 touchscreen controller 2026-08-06 12:42:15 +02:00
keyboard_upper.c drivers/input: add a byte stream mode to the keyboard upper half 2026-07-31 11:02:20 -03:00
kmatrix.c drivers/input: report special keys from the keyboard matrix 2026-07-31 11:02:20 -03:00
kmatrix_i2c.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
Make.defs drivers/input: support ST7123 touchscreen controller 2026-08-06 12:42:15 +02:00
max11802.c drivers/: Multiple Drivers Are Registered With World Writable - Part 2 2026-07-15 15:27:28 +08:00
max11802.h drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
mouse_upper.c drivers/: Multiple Drivers Are Registered With World Writable - Part 2 2026-07-15 15:27:28 +08:00
mpr121.c drivers/mpr121: Add support to MPR121 Capacitive Keypad 2026-04-23 15:56:32 -03:00
mpr121.h drivers/mpr121: Add support to MPR121 Capacitive Keypad 2026-04-23 15:56:32 -03:00
mxt.c drivers/: Multiple Drivers Are Registered With World Writable - Part 2 2026-07-15 15:27:28 +08:00
mxt.h drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
nunchuck.c drivers/: Multiple Drivers Are Registered With World Writable - Part 2 2026-07-15 15:27:28 +08:00
sbutton.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
spq10kbd.c drivers/: Multiple Drivers Are Registered With World Writable - Part 2 2026-07-15 15:27:28 +08:00
st7123.c drivers/input: support ST7123 touchscreen controller 2026-08-06 12:42:15 +02:00
stmpe811.h drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
stmpe811_adc.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
stmpe811_base.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
stmpe811_gpio.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
stmpe811_temp.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
stmpe811_tsc.c drivers/: Multiple Drivers Are Registered With World Writable - Part 2 2026-07-15 15:27:28 +08:00
touchscreen_upper.c drivers/: Multiple Drivers Are Registered With World Writable - Part 2 2026-07-15 15:27:28 +08:00
tsc2007.c drivers/: Multiple Drivers Are Registered With World Writable - Part 2 2026-07-15 15:27:28 +08:00
tsc2007.h drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
uinput.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
virtio_key_decode.c drivers/input: give the virtio decoder switches a statement to label 2026-07-31 11:02:20 -03:00