Skip to contentSkip to conversation

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

PATCH Superseded Arnaud Ebalard 2 participants 2 messages Nov 21, 2013 – Nov 22, 2013 Device tree bindings

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

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

Without that fix, at the end of the shutdown process, the board is still powered (led glowing, fan running, ...).

---
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(+)
arch/arm/boot/dts/kirkwood-netgear_readynas_duo_v2.dts +11 -0
index e6a102c..4e3cae1 100644
@@ -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>;
Signature · 1 line
1.8.4.rc3
#1 lore raw

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

Quoted 32 lines · Arnaud Ebalard

Without that fix, at the end of the shutdown process, the board is still powered (led glowing, fan running, ...).

---
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(+)
arch/arm/boot/dts/kirkwood-netgear_readynas_duo_v2.dts +4 -0
index e6a102c..4e3cae1 100644
@@ -60,6 +60,10 @@
 				marvell,pins = "mpp29";
 				marvell,function = "gpio";
 			};
+			pmx_poweroff: pmx-poweroff {
+				marvell,pins = "mpp30";
+				marvell,function = "gpio";
+			};
 		};
 
 		clocks {

arch/arm/boot/dts/kirkwood-netgear_readynas_duo_v2.dts line 169

Quoted 8 lines
arch/arm/boot/dts/kirkwood-netgear_readynas_duo_v2.dts +5 -0
@@ -158,6 +162,13 @@
 		};
 	};
 
+	gpio-poweroff {
+		compatible = "gpio-poweroff";
+		pinctrl-0 = <&pmx_poweroff>;
+		pinctrl-names = "default";
+		gpios = <&gpio0 30 1>;

GPIO_... ?

thx,

Jason.