u-boot/drivers/button
Peter Cai 80d4c02b93 button: adc: set state to pressed when the voltage is closest to nominal
In the Linux implementation of adc-keys
(drivers/input/keyboard/adc-keys.c), `press-threshold-microvolt` is not
really interpreted as a threshold, but rather as the "nominal voltage"
of the button. When the voltage read from the ADC is closest to a
button's `press-threshold-microvolt`, the button is considered pressed.

This patch reconciles the behavior of button-adc with Linux's adc-keys
such that device trees can be synchronized with minimal modifications.

Signed-off-by: Peter Cai <peter@typeblog.net>
2022-02-11 09:00:47 -05:00
..
button-adc.c button: adc: set state to pressed when the voltage is closest to nominal 2022-02-11 09:00:47 -05:00
button-gpio.c dm: treewide: Rename 'platdata' variables to just 'plat' 2020-12-13 16:51:08 -07:00
button-uclass.c dm: define LOG_CATEGORY for all uclass 2021-07-06 10:38:03 -06:00
Kconfig button: add a simple Analog to Digital Converter device based button driver 2021-02-18 11:37:26 +01:00
Makefile button: add a simple Analog to Digital Converter device based button driver 2021-02-18 11:37:26 +01:00