arm: dts: odroid: make the gpio key node for power key common
authorHyungwon Hwang <human.hwang@samsung.com>
Fri, 20 Jun 2014 10:24:59 +0000 (19:24 +0900)
committerChanho Park <chanho61.park@samsung.com>
Thu, 7 Aug 2014 06:16:08 +0000 (15:16 +0900)
The gpio key for power enable is common in both of Odroid X2 and U3. So move the
dt node to the common odroid dt file from the odroid x2 dt file.

Change-Id: Id295289e092bcd71f9854de6896cb7d5cfae9540
Signed-off-by: Hyungwon Hwang <human.hwang@samsung.com>
arch/arm/boot/dts/exynos4412-odroid-common.dtsi
arch/arm/boot/dts/exynos4412-odroidx2.dts

index 90ad77f..6acf07a 100644 (file)
                compatible = "hardkernel,odroid-reboot";
                reset-gpio = <&gpk1 2 0>;
        };
+
+       gpio_keys {
+               compatible = "gpio-keys";
+               pinctrl-names = "default";
+               pinctrl-0 = <&gpio_power_key>;
+
+               power_key {
+                       interrupt-parent = <&gpx1>;
+                       interrupts = <3 0>;
+                       gpios = <&gpx1 3 1>;
+                       linux,code = <116>;
+                       label = "power key";
+                       debounce-interval = <10>;
+                       gpio-key,wakeup;
+               };
+       };
 };
 
 &pinctrl_1 {
index 6d3ce8c..3474b49 100644 (file)
        };
 
        gpio_keys {
-               compatible = "gpio-keys";
-               pinctrl-names = "default";
                pinctrl-0 = <&gpio_power_key &gpio_home_key>;
 
-               power_key {
-                       interrupt-parent = <&gpx1>;
-                       interrupts = <3 0>;
-                       gpios = <&gpx1 3 1>;
-                       linux,code = <116>;
-                       label = "power key";
-                       debounce-interval = <10>;
-                       gpio-key,wakeup;
-               };
-
                home_key {
                        interrupt-parent = <&gpx2>;
                        interrupts = <2 0>;