oxnas: also make use of the GPIO poweroff driver
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 13 Dec 2014 08:02:52 +0000 (08:02 +0000)
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43677 3c298f89-4303-0410-b956-a3cf2f4a3e73

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

index a065363..9b0f3f9 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 b9172d9..e255781 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 79442be..9375748 100644 (file)
                compatible = "gpio-fan";
                gpios = <&GPIOA 2 1>;
        };
+
+       gpio-poweroff {
+               compatible = "gpio-poweroff";
+               gpios = <&GPIOA 9 0>;
+       };
 };