From c1418dbd2e3b9596b4082b111b80bd5f86e76028 Mon Sep 17 00:00:00 2001 From: GUI <39894654+GuEe-GUI@users.noreply.github.com> Date: Fri, 14 Aug 2026 12:41:00 +0800 Subject: [DM/Input] Add ADC joystick, keyboard, and touchscreen drivers (#11679) * [DM/Input] Add ADC joystick, keyboard, and touchscreen drivers Add polling input drivers for ADC-connected joysticks and resistor- ladder keys. Parse Linux-compatible device-tree bindings, acquire ADC channels through the IIO framework, and report absolute-axis and key events. Add an SPI touchscreen driver for ADS7843, ADS7845, ADS7846, ADS7873, TSC2046, and XPT2046-compatible controllers. Support pen interrupts, coordinate and pressure reporting, sample filtering, regulator control, power management, and common touchscreen properties. Add an I2C touchscreen driver for Goodix GT9xx controllers with multi-touch reporting, GPIO-based reset and address selection, interrupt handling with polling fallback, regulator control, panel configuration, and alternate-address recovery. Adapt the drivers to the RT-Thread device model and input framework, following the corresponding Linux input drivers and device-tree bindings. Signed-off-by: GuEe-GUI <2991707448@qq.com> * style: format code with clang-format * drivers: input: address review feedback * style: format input changes for current master --------- Signed-off-by: GuEe-GUI <2991707448@qq.com> --- components/drivers/input/keyboard/SConscript | 3 +++ 1 file changed, 3 insertions(+) (limited to 'components/drivers/input/keyboard/SConscript') diff --git a/components/drivers/input/keyboard/SConscript b/components/drivers/input/keyboard/SConscript index 67c4713e79..af465ce355 100644 --- a/components/drivers/input/keyboard/SConscript +++ b/components/drivers/input/keyboard/SConscript @@ -10,6 +10,9 @@ CPPPATH = [cwd + '/../../include'] src = [] +if GetDepend(['RT_INPUT_KEYBOARD_ADC']): + src += ['keys-adc.c'] + if GetDepend(['RT_INPUT_KEYBOARD_GPIO']): src += ['keys-gpio.c'] -- cgit v1.3.1