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>
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 {
};
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>;