From f841fe13911e8980793308f51d652fcaba6204c9 Mon Sep 17 00:00:00 2001 From: Brian Kim Date: Thu, 2 Mar 2017 12:24:47 +0900 Subject: [PATCH] ARM: dts: exynos5422-odroidxu3: Enable power key This changes enables the power button on the Exynos5422 Odroid-XU3/4 boards. Change-Id: Iafd025be921da348797b6a510586abf3e47bfe75 Signed-off-by: Brian Kim --- .../boot/dts/exynos5422-odroidxu3-common.dtsi | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi b/arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi index 9067d83e343f..4a2398f5bb97 100755 --- a/arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi +++ b/arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi @@ -13,6 +13,7 @@ */ #include +#include #include #include #include @@ -51,6 +52,22 @@ status = "okay"; }; + gpio_keys { + compatible = "gpio-keys"; + pinctrl-names = "default"; + pinctrl-0 = <&gpio_power_key>; + + power_key { + interrupt-parent = <&gpx0>; + interrupts = <3 0>; + gpios = <&gpx0 3 GPIO_ACTIVE_LOW>; + linux,code = ; + label = "power key"; + debounce-interval = <10>; + wakeup-source; + }; + }; + emmc_pwrseq: pwrseq { pinctrl-0 = <&emmc_nrst_pin>; pinctrl-names = "default"; @@ -620,6 +637,11 @@ }; &pinctrl_0 { + gpio_power_key: power_key { + samsung,pins = "gpx0-3"; + samsung,pin-pud = ; + }; + hdmi_hpd_irq: hdmi-hpd-irq { samsung,pins = "gpx3-7"; samsung,pin-function = ;