From: Sascha Hauer <s.hauer@pengutronix.de>
To: Barebox List <barebox@lists.infradead.org>
Subject: [PATCH] ARM: k3: add syscon-reboot-mode
Date: Wed, 13 Aug 2025 10:16:27 +0200 [thread overview]
Message-ID: <20250813081627.3448631-1-s.hauer@pengutronix.de> (raw)
This adds reboot-mode support for the AM625 and AM62L SoCs.
We only add usbdfu, emmc and nand for now. Most other boot modes require
additional board specific configuration in bit[9-7], so these have to be
added in a board specific dts. Also we only touch the primary boot mode
and leave the secondary boot mode untouched.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
arch/arm/dts/k3-am625.dtsi | 16 ++++++++++++++++
arch/arm/dts/k3-am62l-barebox.dtsi | 16 ++++++++++++++++
2 files changed, 32 insertions(+)
diff --git a/arch/arm/dts/k3-am625.dtsi b/arch/arm/dts/k3-am625.dtsi
index bb61586fe2..2aa77ab2d5 100644
--- a/arch/arm/dts/k3-am625.dtsi
+++ b/arch/arm/dts/k3-am625.dtsi
@@ -9,6 +9,22 @@ chosen {
};
};
+&wkup_conf {
+ reboot-mode-syscon@10030 {
+ compatible = "syscon", "simple-mfd";
+ reg = <0x10030 0x4>;
+
+ reboot_mode: reboot-mode {
+ compatible = "syscon-reboot-mode";
+ offset = <0x0>;
+ mask = <0x3f8>;
+ mode-usbdfu = <0x250>;
+ mode-emmc = <0x48>;
+ mode-nand = <0x58>;
+ };
+ };
+};
+
&phy_gmii_sel {
compatible = "ti,am654-phy-gmii-sel", "syscon";
};
diff --git a/arch/arm/dts/k3-am62l-barebox.dtsi b/arch/arm/dts/k3-am62l-barebox.dtsi
index b287ca5b83..34bf42c01f 100644
--- a/arch/arm/dts/k3-am62l-barebox.dtsi
+++ b/arch/arm/dts/k3-am62l-barebox.dtsi
@@ -15,6 +15,22 @@ &wkup_gpio0 {
status = "okay";
};
+&wkup_conf {
+ reboot-mode-syscon@10030 {
+ compatible = "syscon", "simple-mfd";
+ reg = <0x10030 0x4>;
+
+ reboot_mode: reboot-mode {
+ compatible = "syscon-reboot-mode";
+ offset = <0x0>;
+ mask = <0x3f8>;
+ mode-usbdfu = <0x250>;
+ mode-emmc = <0x48>;
+ mode-nand = <0x58>;
+ };
+ };
+};
+
/ {
aliases {
serial0 = &uart0;
--
2.39.5
reply other threads:[~2025-08-13 8:18 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20250813081627.3448631-1-s.hauer@pengutronix.de \
--to=s.hauer@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