linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Andy Fleming <afleming@gmail.com>
To: linuxppc-dev@lists.ozlabs.org, scottwood@freescale.com
Cc: aperez@alexperez.com
Subject: [PATCH 1/3] cyrus: Add poweroff/reset support
Date: Tue,  6 Sep 2016 14:11:57 -0500	[thread overview]
Message-ID: <1473189119-29458-2-git-send-email-afleming@gmail.com> (raw)
In-Reply-To: <1473189119-29458-1-git-send-email-afleming@gmail.com>

Cyrus uses GPIOs to complete board shutdown/reset.
Add nodes to indicate that support to the device tree.

Signed-off-by: Andy Fleming <afleming@gmail.com>
---
 arch/powerpc/boot/dts/fsl/cyrus_p5020.dts | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/arch/powerpc/boot/dts/fsl/cyrus_p5020.dts b/arch/powerpc/boot/dts/fsl/cyrus_p5020.dts
index c603390..e417aaa 100644
--- a/arch/powerpc/boot/dts/fsl/cyrus_p5020.dts
+++ b/arch/powerpc/boot/dts/fsl/cyrus_p5020.dts
@@ -150,6 +150,17 @@
 				  0 0x00010000>;
 		};
 	};
+
+        gpio-poweroff {
+                compatible = "gpio-poweroff";
+                gpios = <&gpio0 3 1>;
+        };
+
+        gpio-restart {
+                compatible = "gpio-restart";
+                gpios = <&gpio0 2 1>;
+        };
+
 };
 
 /include/ "p5020si-post.dtsi"
-- 
1.9.1

  reply	other threads:[~2016-09-06 19:12 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-06 19:11 [PATCH 0/3] corenet: Add power/reset support to Cyrus Andy Fleming
2016-09-06 19:11 ` Andy Fleming [this message]
2016-09-25  6:44   ` [1/3] cyrus: Add poweroff/reset support Scott Wood
2016-09-06 19:11 ` [PATCH 2/3] corenet: Support gpio power/reset for corenet Andy Fleming
2016-09-06 22:29   ` Scott Wood
2016-09-10 22:05     ` Andy Fleming
2016-09-12 22:47       ` Scott Wood
2016-09-15  8:03         ` Andy Fleming
2016-09-16 21:05           ` Scott Wood
2016-09-25  6:26             ` Scott Wood
2016-09-06 19:11 ` [PATCH 3/3] Cyrus: create a defconfig Andy Fleming
2016-09-06 20:42   ` Scott Wood
2016-09-10 22:12     ` Andy Fleming
2016-09-12 17:54       ` Scott Wood
2016-09-13  1:21         ` Michael Ellerman
2016-09-15  8:08         ` Andy Fleming

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1473189119-29458-2-git-send-email-afleming@gmail.com \
    --to=afleming@gmail.com \
    --cc=aperez@alexperez.com \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=scottwood@freescale.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).