]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
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 e1f68cd552af8cc2413fa8201ee353d3c4c63947..c76ecc013c98143b54b3be4d563bb90cd80b1d14 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;