summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorHyungwon Hwang <human.hwang@samsung.com>2014-03-05 14:44:41 +0900
committerChanho Park <chanho61.park@samsung.com>2014-03-20 17:44:15 +0900
commit209d9294424df1f555653d9f0b2e29f00e788f26 (patch)
treee0a97081fd113dd186d1736b2447bbce749f4e8d /arch
parente0ba6a3fdc108c02ece39c8bbb4f5c4c925206b7 (diff)
downloadlinux-3.10-209d9294424df1f555653d9f0b2e29f00e788f26.tar.gz
linux-3.10-209d9294424df1f555653d9f0b2e29f00e788f26.tar.bz2
linux-3.10-209d9294424df1f555653d9f0b2e29f00e788f26.zip
dts: arm: odroidx2: add support for external buttons
Add support for two external buttons (power & home buttons) Change-Id: I90544bf89c804329dfc78709d48d9eedc2c4a181 Signed-off-by: Hyungwon Hwang <human.hwang@samsung.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/boot/dts/exynos4412-odroidx2.dts37
1 files changed, 37 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/exynos4412-odroidx2.dts b/arch/arm/boot/dts/exynos4412-odroidx2.dts
index 063243d7eb6..d3339fd6fcb 100644
--- a/arch/arm/boot/dts/exynos4412-odroidx2.dts
+++ b/arch/arm/boot/dts/exynos4412-odroidx2.dts
@@ -71,6 +71,32 @@
};
};
+ gpio_keys {
+ compatible = "gpio-keys";
+ pinctrl-names = "default";
+ pinctrl-0 = <&gpio_power_key &gpio_home_key>;
+
+ power_key {
+ interrupt-parent = <&gpx1>;
+ interrupts = <3 0>;
+ gpios = <&gpx1 3 1>;
+ linux,code = <116>;
+ label = "power key";
+ debounce-interval = <10>;
+ gpio-key,wakeup;
+ };
+
+ home_key {
+ interrupt-parent = <&gpx2>;
+ interrupts = <2 0>;
+ gpios = <&gpx2 2 0>;
+ linux,code = <139>;
+ label = "home key";
+ debounce-interval = <10>;
+ gpio-key,wakeup;
+ };
+ };
+
mshc@12550000 {
pinctrl-0 = <&sd4_clk &sd4_cmd &sd4_bus4 &sd4_bus8>;
pinctrl-names = "default";
@@ -572,8 +598,19 @@
};
&pinctrl_1 {
+ gpio_power_key: power_key {
+ samsung,pins = "gpx1-3";
+ samsung,pin-pud = <0>;
+ };
+
+ gpio_home_key: home_key {
+ samsung,pins = "gpx2-2";
+ samsung,pin-pud = <1>;
+ };
+
hdmi_hpd: hdmi-hpd {
samsung,pins = "gpx3-7";
samsung,pin-pud = <1>;
};
};
+