mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-11-16 01:05:15 +08:00
* [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>
21 lines
428 B
Plaintext
21 lines
428 B
Plaintext
menuconfig RT_INPUT_KEYBOARD
|
|
bool "Keyboards"
|
|
default n
|
|
|
|
config RT_INPUT_KEYBOARD_ADC
|
|
bool "ADC Ladder Buttons"
|
|
depends on RT_INPUT_KEYBOARD
|
|
depends on RT_USING_OFW
|
|
depends on RT_USING_ADC
|
|
default n
|
|
|
|
config RT_INPUT_KEYBOARD_GPIO
|
|
bool "GPIO"
|
|
depends on RT_INPUT_KEYBOARD
|
|
depends on RT_USING_OFW
|
|
default n
|
|
|
|
if RT_INPUT_KEYBOARD
|
|
osource "$(SOC_DM_INPUT_KEYBOARD_DIR)/Kconfig"
|
|
endif
|