From: Seung-Woo Kim Date: Mon, 23 Mar 2015 05:25:40 +0000 (+0900) Subject: ARM: dts: exynos5422-odroidxu3: add gpio key dt node X-Git-Tag: accepted/tizen/tv/20150416.085514~27 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7c7ab44f86d64ba6a6733da8f201a26a6c0e807f;p=platform%2Fkernel%2Flinux-exynos.git ARM: dts: exynos5422-odroidxu3: add gpio key dt node This patch adds gpio key dt node for power button. The dt nodes are ported from https://github.com/hardkernel/linux.git +refs/heads/odroidxu3-3.10.y. Signed-off-by: Seung-Woo Kim --- diff --git a/arch/arm/boot/dts/exynos5422-odroidxu3.dts b/arch/arm/boot/dts/exynos5422-odroidxu3.dts index f08eec1..a2bc2d6 100644 --- a/arch/arm/boot/dts/exynos5422-odroidxu3.dts +++ b/arch/arm/boot/dts/exynos5422-odroidxu3.dts @@ -43,6 +43,24 @@ }; }; + gpio_keys { + compatible = "gpio-keys"; + #address-cells = <1>; + #size-cells = <0>; + poll-interval = <100>; + pinctrl-names = "default"; + pinctrl-0 = <&key_pullnone>; + + button@1 { + label = "gpio-keys: KEY_POWER"; + interrupts = <3 0 0>; + interrupt-parent = <&gpx0>; + linux,code = <116>; + gpios = <&gpx0 3 0xf>; + gpio-key,wakeup = <1>; + }; + }; + hsi2c_4: i2c@12CA0000 { status = "okay"; @@ -516,6 +534,11 @@ }; &pinctrl_0 { + key_pullnone: key-pullnone { + samsung,pins = "gpx0-3"; + samsung,pin-pud = <0>; + }; + otg_ida: otg-ida { samsung,pins = "gpx1-1"; samsung,pin-pud = <0>;