[PATCH v2 0/3] cmd/button: return button status

Heinrich Schuchardt xypron.glpk at gmx.de
Mon Sep 14 12:50:53 CEST 2020


To make the button command useful in a shell script it should return the
status of the button.

Adjust the sandbox GPIO driver to keep the output value as input when
switching to input.

Adjust the device-tree labels of the sandbox GPIOs used for buttons.

Enhance the Python unit test to check the button status returned by the
button command.

v2:
	adjust Python test
	adjust GPIO driver

Heinrich Schuchardt (3):
  test: sharpen button label unit test
  drivers: gpio: keep output value for input on sandbox
  cmd/button: return button status

 arch/sandbox/dts/sandbox.dtsi |  8 ++++----
 arch/sandbox/dts/test.dts     |  8 ++++----
 cmd/button.c                  |  4 ++--
 drivers/gpio/sandbox.c        | 10 +++++++++-
 test/dm/button.c              |  6 +++---
 test/py/tests/test_button.py  | 36 ++++++++++++++++++++++++++---------
 6 files changed, 49 insertions(+), 23 deletions(-)

--
2.28.0



More information about the U-Boot mailing list