mbox series

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

Message ID 20200914105056.174287-1-xypron.glpk@gmx.de
Headers show
Series cmd/button: return button status | expand

Message

Heinrich Schuchardt Sept. 14, 2020, 10:50 a.m. UTC
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