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-11-18 11:47:10 +0900
commit6571c96482b6c61d9f5e76cada46bf71ef139b47 (patch)
tree4af309670287cad7c30a15bf39d31c535686866f /arch
parent2b57688f69f4be0f5e477202b8eda42f7d161468 (diff)
downloadlinux-3.10-6571c96482b6c61d9f5e76cada46bf71ef139b47.tar.gz
linux-3.10-6571c96482b6c61d9f5e76cada46bf71ef139b47.tar.bz2
linux-3.10-6571c96482b6c61d9f5e76cada46bf71ef139b47.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>;
};
};
+