mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH 3/4] ARM: dts: stm32mp: reuse now upstream tamp node
Date: Tue,  9 Aug 2022 08:29:37 +0200	[thread overview]
Message-ID: <20220809062938.1750369-3-a.fatoum@pengutronix.de> (raw)
In-Reply-To: <20220809062938.1750369-1-a.fatoum@pengutronix.de>

Since 6ea3de1b8ce7 ("dts: update to v5.11-rc1"), the upstream device
tree now has a node with simple-mfd, which we can add our reboot mode
beneath without having to replicate information, so make use of that.

No functional change.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 arch/arm/dts/stm32mp151.dtsi | 25 +++++++++++--------------
 1 file changed, 11 insertions(+), 14 deletions(-)

diff --git a/arch/arm/dts/stm32mp151.dtsi b/arch/arm/dts/stm32mp151.dtsi
index 7b07aaf7cf6a..ed7cf6192bea 100644
--- a/arch/arm/dts/stm32mp151.dtsi
+++ b/arch/arm/dts/stm32mp151.dtsi
@@ -31,22 +31,19 @@
 		compatible = "st,stm32mp1-ddr";
 		reg = <0x5a003000 0x1000>;
 	};
-
-	tamp@5c00a000 {
-		compatible = "simple-bus", "syscon", "simple-mfd";
-		reg = <0x5c00a000 0x400>;
-
-		reboot_mode_tamp: reboot-mode {
-			compatible = "syscon-reboot-mode";
-			offset = <0x150>; /* reg20 */
-			mask = <0xff>;
-			mode-normal = <0>;
-			mode-loader = <0xBB>;
-			mode-recovery = <0xBC>;
-		};
-	};
 };
 
 &bsec {
 	barebox,provide-mac-address = <&ethernet0 0x39>;
 };
+
+&tamp {
+	reboot_mode_tamp: reboot-mode {
+		compatible = "syscon-reboot-mode";
+		offset = <0x150>; /* reg20 */
+		mask = <0xff>;
+		mode-normal = <0>;
+		mode-loader = <0xBB>;
+		mode-recovery = <0xBC>;
+	};
+};
-- 
2.30.2




  parent reply	other threads:[~2022-08-09  6:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-09  6:29 [PATCH 1/4] power: reset: reboot-mode: refactor to allow other mode- prefixes Ahmad Fatoum
2022-08-09  6:29 ` [PATCH 2/4] power: reset: reboot-mode: parse barebox,mode-* properties Ahmad Fatoum
2022-08-09  6:29 ` Ahmad Fatoum [this message]
2022-08-09  6:29 ` [PATCH 4/4] ARM: dts: stm32mp: add bootrom serial (DFU) reboot mode Ahmad Fatoum
2022-08-09  9:49   ` Sascha Hauer
2022-08-09  9:54     ` Ahmad Fatoum
2022-08-09 11:34 ` [PATCH 1/4] power: reset: reboot-mode: refactor to allow other mode- prefixes Sascha Hauer

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=20220809062938.1750369-3-a.fatoum@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.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