Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | button: adc: set state to pressed when the voltage is closest to nominal | Peter Cai | 2022-02-11 | 1 | -5/+16 |
| | | | | | | | | | | | | | 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> | ||||
* | button: adc: fix treshold typo | Neil Armstrong | 2021-03-08 | 1 | -7/+7 |
| | | | | | | | | | Fix the treshold typo in code by threshold. Fixes: c0165c85c3 ("button: add a simple Analog to Digital Converter device based button driver") Suggested-by: Tom Rini <trini@konsulko.com> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> Acked-by: Marek Szyprowski <m.szyprowski@samsung.com> | ||||
* | button: add a simple Analog to Digital Converter device based button driver | Marek Szyprowski | 2021-02-18 | 1 | -0/+146 |
Add a simple Analog to Digital Converter device based button driver. This driver binds to the 'adc-keys' device tree node. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> |