]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
ARM: dts: da850-lcdk: add gpio-keys
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 19 Dec 2016 09:53:54 +0000 (10:53 +0100)
committerSekhar Nori <nsekhar@ti.com>
Mon, 2 Jan 2017 10:29:17 +0000 (15:59 +0530)
Add a gpio-keys node for two user buttons present on the board.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
arch/arm/boot/dts/da850-lcdk.dts

index afcb4821deb18ffb71356a4a9c03f1e945728426..1ef8a7c57cb6dbbe604a98b64fe95d50e3b7abae 100644 (file)
@@ -6,6 +6,7 @@
 /dts-v1/;
 #include "da850.dtsi"
 #include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
 
 / {
        model = "DA850/AM1808/OMAP-L138 LCDK";
                        system-clock-frequency = <24576000>;
                };
        };
+
+       gpio-keys {
+               compatible = "gpio-keys";
+               autorepeat;
+
+               user1 {
+                       label = "GPIO Key USER1";
+                       linux,code = <BTN_0>;
+                       gpios = <&gpio 36 GPIO_ACTIVE_LOW>;
+               };
+
+               user2 {
+                       label = "GPIO Key USER2";
+                       linux,code = <BTN_1>;
+                       gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
+               };
+       };
 };
 
 &pmx_core {