diff mbox

ARM: mvebu: Add DT entry for ReadyNAS Duo v2 to use gpio-poweroff driver

Message ID 87iovl4ahq.fsf@natisbad.org (mailing list archive)
State New, archived
Headers show

Commit Message

Arnaud Ebalard Nov. 21, 2013, 11:10 p.m. UTC
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>
---
Hi,

I have prepared some cleanup patches for existing ReadyNAS .dts files
which I intend to send for review in the next fex days. The GPIO
voltage level is still a value below but the cleanup patch for this
.dts will handle that globally.

 arch/arm/boot/dts/kirkwood-netgear_readynas_duo_v2.dts | 11 +++++++++++
 1 file changed, 11 insertions(+)

Comments

Jason Cooper Nov. 22, 2013, 1:41 p.m. UTC | #1
On Fri, Nov 22, 2013 at 12:10:25AM +0100, Arnaud Ebalard wrote:
> 
> 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>
> ---
> Hi,
> 
> I have prepared some cleanup patches for existing ReadyNAS .dts files
> which I intend to send for review in the next fex days. The GPIO
> voltage level is still a value below but the cleanup patch for this
> .dts will handle that globally.
> 
>  arch/arm/boot/dts/kirkwood-netgear_readynas_duo_v2.dts | 11 +++++++++++
>  1 file changed, 11 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/kirkwood-netgear_readynas_duo_v2.dts b/arch/arm/boot/dts/kirkwood-netgear_readynas_duo_v2.dts
> index e6a102c..4e3cae1 100644
> --- a/arch/arm/boot/dts/kirkwood-netgear_readynas_duo_v2.dts
> +++ b/arch/arm/boot/dts/kirkwood-netgear_readynas_duo_v2.dts
> @@ -60,6 +60,10 @@
>  				marvell,pins = "mpp29";
>  				marvell,function = "gpio";
>  			};
> +			pmx_poweroff: pmx-poweroff {
> +				marvell,pins = "mpp30";
> +				marvell,function = "gpio";
> +			};
>  		};
>  
>  		clocks {
> @@ -158,6 +162,13 @@
>  		};
>  	};
>  
> +	gpio-poweroff {
> +		compatible = "gpio-poweroff";
> +		pinctrl-0 = <&pmx_poweroff>;
> +		pinctrl-names = "default";
> +		gpios = <&gpio0 30 1>;

GPIO_... ?

thx,

Jason.
diff mbox

Patch

diff --git a/arch/arm/boot/dts/kirkwood-netgear_readynas_duo_v2.dts b/arch/arm/boot/dts/kirkwood-netgear_readynas_duo_v2.dts
index e6a102c..4e3cae1 100644
--- a/arch/arm/boot/dts/kirkwood-netgear_readynas_duo_v2.dts
+++ b/arch/arm/boot/dts/kirkwood-netgear_readynas_duo_v2.dts
@@ -60,6 +60,10 @@ 
 				marvell,pins = "mpp29";
 				marvell,function = "gpio";
 			};
+			pmx_poweroff: pmx-poweroff {
+				marvell,pins = "mpp30";
+				marvell,function = "gpio";
+			};
 		};
 
 		clocks {
@@ -158,6 +162,13 @@ 
 		};
 	};
 
+	gpio-poweroff {
+		compatible = "gpio-poweroff";
+		pinctrl-0 = <&pmx_poweroff>;
+		pinctrl-names = "default";
+		gpios = <&gpio0 30 1>;
+	};
+
         regulators {
                 compatible = "simple-bus";
                 #address-cells = <1>;