Hi Tom, These changes adds support for reading the ADC key on the Khadas VIM3 & VIM3L, in the same time it adds plumbing for ADC keys and a test for sandbox.
The CI job is at https://gitlab.denx.de/u-boot/custodians/u-boot-amlogic/pipelines/6461 Thanks, Neil The following changes since commit 496f49464d90b564da5f1a2f4eecb5553e01edf9: Merge branch '2021-02-16-assorted-improvements' (2021-02-16 15:14:34 -0500) are available in the Git repository at: https://gitlab.denx.de/u-boot/custodians/u-boot-amlogic.git tags/u-boot-amlogic-20210222 for you to fetch changes up to 2d339efb1ff941705a770e93494427912689ce18: button: add udevice forward declaration (2021-02-22 11:07:57 +0100) ---------------------------------------------------------------- - adds adc-keys button driver - fix meson-saradc driver to get reference voltage - add adc-keys test for sandbox - enable adc-keys for VIM3 & VIM3L boards - fix button.h build ---------------------------------------------------------------- Marek Szyprowski (5): dt-bindings: input: adc-keys bindings documentation button: add a simple Analog to Digital Converter device based button driver adc: meson-saradc: add support for getting reference voltage value configs: khadas-vim3(l): enable Function button support test: add a simple test for the adc-keys button driver Neil Armstrong (1): button: add udevice forward declaration arch/sandbox/dts/test.dts | 28 +++++- configs/khadas-vim3_defconfig | 2 + configs/khadas-vim3l_defconfig | 2 + configs/sandbox_defconfig | 1 + doc/device-tree-bindings/input/adc-keys.txt | 67 +++++++++++++ drivers/adc/meson-saradc.c | 21 ++++ drivers/button/Kconfig | 8 ++ drivers/button/Makefile | 1 + drivers/button/button-adc.c | 146 ++++++++++++++++++++++++++++ include/button.h | 2 + test/dm/button.c | 50 +++++++++- 11 files changed, 325 insertions(+), 3 deletions(-) create mode 100644 doc/device-tree-bindings/input/adc-keys.txt create mode 100644 drivers/button/button-adc.c