diff options
author | Marek Szyprowski <m.szyprowski@samsung.com> | 2014-07-15 21:54:07 +0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2014-07-15 21:54:07 +0400 |
commit | 081a15e3fe926d88d3eb9f3a4161c1121a2a7d0b (patch) | |
tree | dc0a14a0687e95700a6d3b57b3f33a15909764f1 /arch/arm/boot/dts/exynos4412-odroidx.dts | |
parent | 13681526bb0451f526e8b1872e9ea3842d579d98 (diff) | |
download | linux-081a15e3fe926d88d3eb9f3a4161c1121a2a7d0b.tar.xz |
ARM: dts: add support for GPIO buttons for exynos4412-odroid
This patch adds support for simple GPIO-based button availabled on
Exynos4 based Odroid boards. All supported boards have POWER button,
which has been defined in exynos4412-odroid-common.dtsi. X/X2 boards
also have additional user-configurable button which has been mapped to
KEY_HOME. All defined keys have been marked as possible wakeup source.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/boot/dts/exynos4412-odroidx.dts')
-rw-r--r-- | arch/arm/boot/dts/exynos4412-odroidx.dts | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/exynos4412-odroidx.dts b/arch/arm/boot/dts/exynos4412-odroidx.dts index 8b453a31410d..cb1cfe7239c4 100644 --- a/arch/arm/boot/dts/exynos4412-odroidx.dts +++ b/arch/arm/boot/dts/exynos4412-odroidx.dts @@ -46,6 +46,20 @@ status = "okay"; }; + gpio_keys { + pinctrl-0 = <&gpio_power_key &gpio_home_key>; + + home_key { + interrupt-parent = <&gpx2>; + interrupts = <2 0>; + gpios = <&gpx2 2 0>; + linux,code = <KEY_HOME>; + label = "home key"; + debounce-interval = <10>; + gpio-key,wakeup; + }; + }; + regulator_p3v3 { compatible = "regulator-fixed"; regulator-name = "p3v3_en"; @@ -62,3 +76,10 @@ status = "okay"; }; }; + +&pinctrl_1 { + gpio_home_key: home_key { + samsung,pins = "gpx2-2"; + samsung,pin-pud = <0>; + }; +}; |