zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.05k stars 6.18k forks source link

[input] Add button gpio to analog axis input. #75288

Open go2sh opened 6 days ago

go2sh commented 6 days ago

Is your enhancement proposal related to a problem? Please describe. I have a resistive touch controller, which behaves like a two channel ADC. Additional the ADC has a "pressed" output, which goes active if a touch is detected. I would like to use the analog-axis input code in conjunction with the ADC, but the pressed information is missing.

Describe the solution you'd like Add a gpio to the analog-axis device, which would represent the pressed information and pass this to the input system as well.

Describe alternatives you've considered Creating a custom input driver, but this would result in a lot of repetitive code code.

fabiobaltieri commented 6 days ago

That's a completely different type of device with its own logic and configuration, it should have its own driver.