aboutsummaryrefslogtreecommitdiff
path: root/arch/sandbox
diff options
context:
space:
mode:
authorPhilippe Reynes <philippe.reynes@softathome.com>2020-07-24 18:19:51 +0200
committerSimon Glass <sjg@chromium.org>2020-07-28 19:30:39 -0600
commita6c6f0f0c8880b2f3d04784eef49f85b78d0f29e (patch)
tree739f911c3f174f9c9d1772b3baa3e208959187a8 /arch/sandbox
parent5f9228691c5522f4a3d44334b46f42fb02333a77 (diff)
downloadu-boot-a6c6f0f0c8880b2f3d04784eef49f85b78d0f29e.zip
u-boot-a6c6f0f0c8880b2f3d04784eef49f85b78d0f29e.tar.gz
u-boot-a6c6f0f0c8880b2f3d04784eef49f85b78d0f29e.tar.bz2
test/py: add tests for the button commands
Adds tests for the button commands. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com>
Diffstat (limited to 'arch/sandbox')
-rw-r--r--arch/sandbox/dts/test.dts14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts
index 2325ec6..491893a 100644
--- a/arch/sandbox/dts/test.dts
+++ b/arch/sandbox/dts/test.dts
@@ -51,6 +51,20 @@
#sound-dai-cells = <1>;
};
+ buttons {
+ compatible = "gpio-keys";
+
+ summer {
+ gpios = <&gpio_a 3 0>;
+ label = "summer";
+ };
+
+ christmas {
+ gpios = <&gpio_a 4 0>;
+ label = "christmas";
+ };
+ };
+
cros_ec: cros-ec {
reg = <0 0>;
compatible = "google,cros-ec-sandbox";