ARM: dts: exynos5422-odroidxu3: add gpio key dt node
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 23 Mar 2015 05:25:40 +0000 (14:25 +0900)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 13 Apr 2015 10:44:48 +0000 (12:44 +0200)
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 <sw0312.kim@samsung.com>
arch/arm/boot/dts/exynos5422-odroidxu3.dts

index f08eec1..a2bc2d6 100644 (file)
                };
        };
 
+       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";
 
 };
 
 &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>;