[PATCH v6 5/5] test: add a simple test for the adc-keys button driver

Simon Glass sjg at chromium.org
Thu Feb 18 05:45:17 CET 2021


On Thu, 11 Feb 2021 at 01:48, Marek Szyprowski <m.szyprowski at samsung.com> wrote:
>
> Add adc-keys device to the sandbox/test.dts and connect it to the channel
> #3 of the sandbox_adc driver. The default values sampled by sandbox_adc
> driver determines that button3 and button4 are released and button5 is
> pressed.
>
> Signed-off-by: Marek Szyprowski <m.szyprowski at samsung.com>
> ---
>  arch/sandbox/dts/test.dts | 24 ++++++++++++++++++-
>  configs/sandbox_defconfig |  1 +
>  test/dm/button.c          | 50 +++++++++++++++++++++++++++++++++++++--
>  3 files changed, 72 insertions(+), 3 deletions(-)
>

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list