* [PATCH] ARM: k3: add syscon-reboot-mode
@ 2025-08-13 8:16 Sascha Hauer
0 siblings, 0 replies; only message in thread
From: Sascha Hauer @ 2025-08-13 8:16 UTC (permalink / raw)
To: Barebox List
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-08-13 8:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-08-13 8:16 [PATCH] ARM: k3: add syscon-reboot-mode Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox