oxnas: also make use of the GPIO poweroff driver
authorJohn Crispin <john@openwrt.org>
Sat, 13 Dec 2014 08:02:52 +0000 (08:02 +0000)
committerJohn Crispin <john@openwrt.org>
Sat, 13 Dec 2014 08:02:52 +0000 (08:02 +0000)
Works great to power-off the kd20 ;)

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
SVN-Revision: 43677

target/linux/oxnas/config-3.14
target/linux/oxnas/config-3.18
target/linux/oxnas/files/arch/arm/boot/dts/ox820-kd20.dts

index a065363fb32b66ffdce78fcf8b21892df7b13b13..9b0f3f96174a4c369cda3adea916071b66c79a35 100644 (file)
@@ -280,6 +280,10 @@ CONFIG_PM=y
 CONFIG_PM_CLK=y
 # CONFIG_PM_DEBUG is not set
 CONFIG_PM_RUNTIME=y
+CONFIG_POWER_RESET=y
+CONFIG_POWER_RESET_GPIO=y
+# CONFIG_POWER_RESET_VEXPRESS is not set
+CONFIG_POWER_SUPPLY=y
 CONFIG_PPS=y
 # CONFIG_PREEMPT_RCU is not set
 CONFIG_PRINTK_TIME=y
index b9172d98c6cc48eb37871a3243d0686a91b75cc7..e255781dae44edf102a2ac2d316b2c968ae49644 100644 (file)
@@ -293,6 +293,10 @@ CONFIG_PM=y
 CONFIG_PM_CLK=y
 # CONFIG_PM_DEBUG is not set
 CONFIG_PM_RUNTIME=y
+CONFIG_POWER_RESET=y
+CONFIG_POWER_RESET_GPIO=y
+# CONFIG_POWER_RESET_VEXPRESS is not set
+CONFIG_POWER_SUPPLY=y
 CONFIG_PPS=y
 # CONFIG_PREEMPT_RCU is not set
 CONFIG_PRINTK_TIME=y
index 79442be3469661648ef074106352451f7ba66335..9375748b91bd30869f84cdf6d48fb0418dfa09b0 100644 (file)
                compatible = "gpio-fan";
                gpios = <&GPIOA 2 1>;
        };
+
+       gpio-poweroff {
+               compatible = "gpio-poweroff";
+               gpios = <&GPIOA 9 0>;
+       };
 };