ARM: mvebu: Add DT entry for ReadyNAS Duo v2 to use gpio-poweroff driver
authorArnaud Ebalard <arno@natisbad.org>
Fri, 22 Nov 2013 14:58:04 +0000 (15:58 +0100)
committerJason Cooper <jason@lakedaemon.net>
Sun, 24 Nov 2013 17:20:36 +0000 (17:20 +0000)
Without that fix, at the end of the shutdown process, the board is
still powered (led glowing, fan running, ...).

Signed-off-by: Arnaud Ebalard <arno@natisbad.org>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
arch/arm/boot/dts/kirkwood-netgear_readynas_duo_v2.dts

index 6b96e85e617e9854f85c393608eb98ec2a45faf3..362770229c1ba71b01a2d311331d8669bacc7719 100644 (file)
@@ -1,5 +1,6 @@
 /dts-v1/;
 
+#include <dt-bindings/gpio/gpio.h>
 #include "kirkwood.dtsi"
 #include "kirkwood-6282.dtsi"
 
                                marvell,pins = "mpp29";
                                marvell,function = "gpio";
                        };
+                       pmx_poweroff: pmx-poweroff {
+                               marvell,pins = "mpp30";
+                               marvell,function = "gpio";
+                       };
                };
 
                clocks {
                };
        };
 
+       gpio-poweroff {
+               compatible = "gpio-poweroff";
+               pinctrl-0 = <&pmx_poweroff>;
+               pinctrl-names = "default";
+               gpios = <&gpio0 30 GPIO_ACTIVE_LOW>;
+       };
+
         regulators {
                 compatible = "simple-bus";
                 #address-cells = <1>;