mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Daniel Palmer <daniel@0x0f.com>
To: soc@kernel.org
Cc: arnd@arndb.de, linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org, Daniel Palmer <daniel@0x0f.com>
Subject: [PATCH 7/7] ARM:mstar: Add reboot support
Date: Sun, 26 Jul 2020 13:39:48 +0900	[thread overview]
Message-ID: <20200726043948.1357573-8-daniel@0x0f.com> (raw)
In-Reply-To: <20200726043948.1357573-1-daniel@0x0f.com>

MStar v7 SoCs support reset by writing a magic value to a register
in the "pmsleep" area.

This adds a node for using the syscon reboot driver to trigger a reset.

Signed-off-by: Daniel Palmer <daniel@0x0f.com>
---
 arch/arm/boot/dts/mstar-v7.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/arm/boot/dts/mstar-v7.dtsi b/arch/arm/boot/dts/mstar-v7.dtsi
index c8b192569d05..7ac7e649189f 100644
--- a/arch/arm/boot/dts/mstar-v7.dtsi
+++ b/arch/arm/boot/dts/mstar-v7.dtsi
@@ -78,6 +78,13 @@ pmsleep: syscon@1c00 {
 				reg = <0x1c00 0x100>;
 			};
 
+			reboot {
+				compatible = "syscon-reboot";
+				regmap = <&pmsleep>;
+				offset = <0xb8>;
+				mask = <0x79>;
+			};
+
 			l3bridge: l3bridge@204400 {
 				compatible = "mstar,l3bridge";
 				reg = <0x204400 0x200>;
-- 
2.27.0


  parent reply	other threads:[~2020-07-26  4:40 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-26  4:39 [PATCH 0/7] ARM:mstar: DT filling out Daniel Palmer
2020-07-26  4:39 ` [PATCH 1/7] ARM:mstar: Add IMI SRAM region Daniel Palmer
2020-07-26  4:39 ` [PATCH 2/7] ARM:mstar: Adjust IMI size of infinity Daniel Palmer
2020-07-26  4:39 ` [PATCH 3/7] ARM:mstar: Adjust IMI size for mercury5 Daniel Palmer
2020-07-26  4:39 ` [PATCH 4/7] ARM:mstar: Adjust IMI size for infinity3 Daniel Palmer
2020-07-26  4:39 ` [PATCH 5/7] ARM:mstar: Add PMU Daniel Palmer
2020-07-26  4:39 ` [PATCH 6/7] ARM:mstar: Add syscon node for "pmsleep" area Daniel Palmer
2020-07-27  7:49   ` Arnd Bergmann
2020-07-26  4:39 ` Daniel Palmer [this message]
2020-07-27 12:33 ` [PATCH 0/7] ARM:mstar: DT filling out Arnd Bergmann
2020-07-27 13:26   ` Daniel Palmer

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=20200726043948.1357573-8-daniel@0x0f.com \
    --to=daniel@0x0f.com \
    --cc=arnd@arndb.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=soc@kernel.org \
    /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

all inboxes | Powered by JetHome®