sandbox: dtsi: add buttons
authorPhilippe Reynes <philippe.reynes@softathome.com>
Fri, 24 Jul 2020 16:19:48 +0000 (18:19 +0200)
committerSimon Glass <sjg@chromium.org>
Wed, 29 Jul 2020 01:30:39 +0000 (19:30 -0600)
Adds two buttons on sandbox so button framework may be tested.

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com>
arch/sandbox/dts/sandbox.dtsi

index e1f68cd..c76ecc0 100644 (file)
                #sound-dai-cells = <1>;
        };
 
+       buttons {
+               compatible = "gpio-keys";
+
+               summer {
+                       gpios = <&gpio_a 3 0>;
+                       label = "summer";
+               };
+
+               christmas {
+                       gpios = <&gpio_a 4 0>;
+                       label = "christmas";
+               };
+       };
+
        gpio_a: gpios@0 {
                u-boot,dm-pre-reloc;
                gpio-controller;