[OpenWrt-Devel,RESEND,1/2] kirkwood: Iomega ix2-200: wire up the GPIO poweroff driver in the DTS file
diff mbox

Message ID 1418074889-24888-2-git-send-email-richard.kunze@web.de
State Accepted
Headers show

Commit Message

Richard Kunze Dec. 8, 2014, 9:41 p.m. UTC
Signed-off-by: Richard Kunze <richard.kunze@web.de>
---
 .../linux/kirkwood/patches-3.14/171-ix2_200_poweroff.patch  | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 target/linux/kirkwood/patches-3.14/171-ix2_200_poweroff.patch

Comments

Luka Perkov Dec. 9, 2014, 11:14 p.m. UTC | #1
Hi Richard,

On Mon, Dec 08, 2014 at 10:41:28PM +0100, Richard Kunze wrote:
> Signed-off-by: Richard Kunze <richard.kunze@web.de>
> ---
>  .../linux/kirkwood/patches-3.14/171-ix2_200_poweroff.patch  | 13 +++++++++++++
>  1 file changed, 13 insertions(+)
>  create mode 100644 target/linux/kirkwood/patches-3.14/171-ix2_200_poweroff.patch

Did you send this to linux kernel arm mailing list? If not please do
that and ping me after. Thanks.

Luka

> diff --git a/target/linux/kirkwood/patches-3.14/171-ix2_200_poweroff.patch b/target/linux/kirkwood/patches-3.14/171-ix2_200_poweroff.patch
> new file mode 100644
> index 0000000..62f244c
> --- /dev/null
> +++ b/target/linux/kirkwood/patches-3.14/171-ix2_200_poweroff.patch
> @@ -0,0 +1,13 @@
> +--- a/arch/arm/boot/dts/kirkwood-iomega_ix2_200.dts
> ++++ b/arch/arm/boot/dts/kirkwood-iomega_ix2_200.dts
> +@@ -168,6 +168,10 @@
> + 			gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
> + 		};
> + 	};
> ++	gpio-poweroff {
> ++		compatible = "gpio-poweroff";
> ++		gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
> ++	};
> + };
> + 
> + &nand {
> -- 
> 1.9.1
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Richard Kunze Dec. 10, 2014, 6:49 p.m. UTC | #2
Am 10.12.2014 um 00:14 schrieb Luka Perkov:
> Hi Richard,
>
> On Mon, Dec 08, 2014 at 10:41:28PM +0100, Richard Kunze wrote:
>> Signed-off-by: Richard Kunze <richard.kunze@web.de>
>> ---
>>   .../linux/kirkwood/patches-3.14/171-ix2_200_poweroff.patch  | 13 +++++++++++++
>>   1 file changed, 13 insertions(+)
>>   create mode 100644 target/linux/kirkwood/patches-3.14/171-ix2_200_poweroff.patch
> Did you send this to linux kernel arm mailing list? If not please do
> that and ping me after. Thanks.

Just sent it off to the linux-arm-kernel mailing list. Don't know when 
(or if) it will be accepted upstream though, since this is my first 
contribution to the kernel.

Best regards,

Richard

Patch
diff mbox

diff --git a/target/linux/kirkwood/patches-3.14/171-ix2_200_poweroff.patch b/target/linux/kirkwood/patches-3.14/171-ix2_200_poweroff.patch
new file mode 100644
index 0000000..62f244c
--- /dev/null
+++ b/target/linux/kirkwood/patches-3.14/171-ix2_200_poweroff.patch
@@ -0,0 +1,13 @@ 
+--- a/arch/arm/boot/dts/kirkwood-iomega_ix2_200.dts
++++ b/arch/arm/boot/dts/kirkwood-iomega_ix2_200.dts
+@@ -168,6 +168,10 @@
+ 			gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
+ 		};
+ 	};
++	gpio-poweroff {
++		compatible = "gpio-poweroff";
++		gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
++	};
+ };
+ 
+ &nand {