From a6c6f0f0c8880b2f3d04784eef49f85b78d0f29e Mon Sep 17 00:00:00 2001 From: Philippe Reynes Date: Fri, 24 Jul 2020 18:19:51 +0200 Subject: test/py: add tests for the button commands Adds tests for the button commands. Reviewed-by: Simon Glass Signed-off-by: Philippe Reynes --- arch/sandbox/dts/test.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'arch/sandbox') diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts index 2325ec6e69..491893a17d 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"; -- cgit