Commit e3d9e1eb authored by Bartosz Golaszewski's avatar Bartosz Golaszewski Committed by Sekhar Nori

ARM: dts: da850-lcdk: add gpio-keys

Add a gpio-keys node for two user buttons present on the board.
Signed-off-by: default avatarBartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: default avatarSekhar Nori <nsekhar@ti.com>
parent 7ce7d89f
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
/dts-v1/; /dts-v1/;
#include "da850.dtsi" #include "da850.dtsi"
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
/ { / {
model = "DA850/AM1808/OMAP-L138 LCDK"; model = "DA850/AM1808/OMAP-L138 LCDK";
...@@ -51,6 +52,23 @@ link0_codec: simple-audio-card,codec { ...@@ -51,6 +52,23 @@ link0_codec: simple-audio-card,codec {
system-clock-frequency = <24576000>; 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 { &pmx_core {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment