diff options
author | Javier Martinez Canillas <javier.martinez@collabora.co.uk> | 2015-01-14 16:30:40 +0100 |
---|---|---|
committer | Kukjin Kim <kgene@kernel.org> | 2015-01-14 16:30:40 +0100 |
commit | 1f3cde4bc5fd6405466dd47e5c12479e4724af24 (patch) | |
tree | 6192ab415adc8b42332a31691711d9d49d21467e /arch/arm/boot/dts/exynos5800-peach-pi.dts | |
parent | ARM: dts: Add power and lid GPIO keys pinctrl for exynos5250-snow (diff) | |
download | linux-1f3cde4bc5fd6405466dd47e5c12479e4724af24.tar.xz linux-1f3cde4bc5fd6405466dd47e5c12479e4724af24.zip |
ARM: dts: Add lid GPIO key device node for Peach boards
The Exynos5420 Peach Pit and Exynos5800 Peach Pi boards have both
a power and lid GPIO keys but only the former was defined in the
DTS. Add DTS snippets for the lid GPIO key too. These were taken
from the downstream ChromeOS 3.8 kernel tree.
Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Signed-off-by: Kukjin Kim <kgene@kernel.org>
Diffstat (limited to 'arch/arm/boot/dts/exynos5800-peach-pi.dts')
-rw-r--r-- | arch/arm/boot/dts/exynos5800-peach-pi.dts | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/exynos5800-peach-pi.dts b/arch/arm/boot/dts/exynos5800-peach-pi.dts index e8fdda827fc9..d603e733ad13 100644 --- a/arch/arm/boot/dts/exynos5800-peach-pi.dts +++ b/arch/arm/boot/dts/exynos5800-peach-pi.dts @@ -52,7 +52,7 @@ compatible = "gpio-keys"; pinctrl-names = "default"; - pinctrl-0 = <&power_key_irq>; + pinctrl-0 = <&power_key_irq &lid_irq>; power { label = "Power"; @@ -60,6 +60,16 @@ linux,code = <KEY_POWER>; gpio-key,wakeup; }; + + lid-switch { + label = "Lid"; + gpios = <&gpx3 4 GPIO_ACTIVE_LOW>; + linux,input-type = <5>; /* EV_SW */ + linux,code = <0>; /* SW_LID */ + debounce-interval = <1>; + gpio-key,wakeup; + }; + }; memory { @@ -646,6 +656,13 @@ samsung,pin-drv = <0>; }; + lid_irq: lid-irq { + samsung,pins = "gpx3-4"; + samsung,pin-function = <0xf>; + samsung,pin-pud = <0>; + samsung,pin-drv = <0>; + }; + hdmi_hpd_irq: hdmi-hpd-irq { samsung,pins = "gpx3-7"; samsung,pin-function = <0>; |