* [PATCH 0/3] arm64: dts: ti: k3-am62x: describe DEVSTAT as syscon
@ 2026-12-01 14:45 Ahmad Fatoum
2026-12-01 14:45 ` [PATCH 1/3] dt-bindings: soc: ti: add AM62 DEVSTAT syscon Ahmad Fatoum
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Ahmad Fatoum @ 2026-12-01 14:45 UTC (permalink / raw)
To: Nishanth Menon, Vignesh Raghavendra, Tero Kristo, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Ahmad Fatoum
Cc: linux-arm-kernel, devicetree, kernel, f.diener, linux-kernel
The AM62x and AM62L SoC's DEVSTAT register holds the boot mode
configuration that the mask ROM evaluates to select the boot medium.
Software can rewrite it prior to a warm reset to boot from a different
medium next time, e.g. SD or USB DFU.
Add a syscon-compatible binding for it and define it in the SoC device
trees, so it can be extended by a syscon-reboot-mode child, for which
there's already a binding.
---
Ahmad Fatoum (3):
dt-bindings: soc: ti: add AM62 DEVSTAT syscon
arm64: dts: ti: k3-am62-wakeup: describe DEVSTAT as syscon
arm64: dts: ti: k3-am62l-wakeup: describe DEVSTAT as syscon
.../bindings/soc/ti/ti,am62-devstat.yaml | 54 ++++++++++++++++++++++
arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi | 5 ++
arch/arm64/boot/dts/ti/k3-am62l-wakeup.dtsi | 5 ++
3 files changed, 64 insertions(+)
---
base-commit: fe6ff8d5d675c01793b9f051d16055dd4aa75244
change-id: 20261201-am62x-devstat-f574e2e03613
Best regards,
--
Ahmad Fatoum <a.fatoum@pengutronix.de>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/3] dt-bindings: soc: ti: add AM62 DEVSTAT syscon
2026-12-01 14:45 [PATCH 0/3] arm64: dts: ti: k3-am62x: describe DEVSTAT as syscon Ahmad Fatoum
@ 2026-12-01 14:45 ` Ahmad Fatoum
2026-12-01 14:45 ` [PATCH 2/3] arm64: dts: ti: k3-am62-wakeup: describe DEVSTAT as syscon Ahmad Fatoum
2026-12-01 14:45 ` [PATCH 3/3] arm64: dts: ti: k3-am62l-wakeup: " Ahmad Fatoum
2 siblings, 0 replies; 4+ messages in thread
From: Ahmad Fatoum @ 2026-12-01 14:45 UTC (permalink / raw)
To: Nishanth Menon, Vignesh Raghavendra, Tero Kristo, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Ahmad Fatoum
Cc: linux-arm-kernel, devicetree, kernel, f.diener, linux-kernel
The DEVSTAT register in the WKUP_CTRL_MMR0 module, at 0x43000030 on
the AM62x [1] and at 0x43010030 on the AM62L [2], holds the boot mode
configuration that the mask ROM evaluates to select the boot medium.
Software can rewrite it prior to a warm reset to boot from a
different medium next time, e.g. SD or USB DFU.
This readily matches syscon-reboot-mode, but lacks a binding for
its parent syscon.
Add a dedicated binding for the register with an optional reboot-mode
child. syscon.yaml isn't extended instead, because it allows neither
simple-mfd nor child nodes. The AM62L gets its own compatible, because
its ROM supports a different set of boot devices.
[1] https://www.ti.com/lit/pdf/spruiv7
[2] https://www.ti.com/lit/pdf/sprujb4
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
.../bindings/soc/ti/ti,am62-devstat.yaml | 54 ++++++++++++++++++++++
1 file changed, 54 insertions(+)
diff --git a/Documentation/devicetree/bindings/soc/ti/ti,am62-devstat.yaml b/Documentation/devicetree/bindings/soc/ti/ti,am62-devstat.yaml
new file mode 100644
index 000000000000..1a9b5d2fc68e
--- /dev/null
+++ b/Documentation/devicetree/bindings/soc/ti/ti,am62-devstat.yaml
@@ -0,0 +1,54 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/soc/ti/ti,am62-devstat.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Texas Instruments AM62 DEVSTAT Syscon
+
+maintainers:
+ - Ahmad Fatoum <a.fatoum@pengutronix.de>
+
+description:
+ The DEVSTAT register in the AM62x and AM62L WKUP_CTRL_MMR0 holds the
+ boot mode configuration that the mask ROM evaluates to select the boot
+ medium. Software can rewrite it prior to a warm reset to boot from a
+ different medium next time.
+
+properties:
+ compatible:
+ items:
+ - enum:
+ - ti,am62-devstat
+ - ti,am62l-devstat
+ - const: syscon
+ - const: simple-mfd
+
+ reg:
+ maxItems: 1
+
+ reboot-mode:
+ $ref: /schemas/power/reset/syscon-reboot-mode.yaml#
+ description:
+ Reboot modes selecting the boot medium for the next warm boot
+
+required:
+ - compatible
+ - reg
+
+additionalProperties: false
+
+examples:
+ - |
+ syscon@30 {
+ compatible = "ti,am62-devstat", "syscon", "simple-mfd";
+ reg = <0x30 0x4>;
+
+ reboot-mode {
+ compatible = "syscon-reboot-mode";
+ offset = <0x0>;
+ mask = <0x3f8>;
+ mode-emmc = <0x48>;
+ mode-usbdfu = <0x250>;
+ };
+ };
--
2.47.3
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 2/3] arm64: dts: ti: k3-am62-wakeup: describe DEVSTAT as syscon
2026-12-01 14:45 [PATCH 0/3] arm64: dts: ti: k3-am62x: describe DEVSTAT as syscon Ahmad Fatoum
2026-12-01 14:45 ` [PATCH 1/3] dt-bindings: soc: ti: add AM62 DEVSTAT syscon Ahmad Fatoum
@ 2026-12-01 14:45 ` Ahmad Fatoum
2026-12-01 14:45 ` [PATCH 3/3] arm64: dts: ti: k3-am62l-wakeup: " Ahmad Fatoum
2 siblings, 0 replies; 4+ messages in thread
From: Ahmad Fatoum @ 2026-12-01 14:45 UTC (permalink / raw)
To: Nishanth Menon, Vignesh Raghavendra, Tero Kristo, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Ahmad Fatoum
Cc: linux-arm-kernel, devicetree, kernel, f.diener, linux-kernel
The mask ROM code of the AM62x reads the boot mode from the DEVSTAT
register at 0x43000030 on every reset. It can be rewritten by software
prior to warm reboot to change the next boot's medium, e.g. to SD or DFU.
Let's describe the register as syscon, so a syscon-reboot-mode node can
be placed below it. The reboot modes themselves are left out:
Board device trees can describe their own or the bootloader can fix them
up as barebox already does if it finds the parent syscon in the kernel
device tree.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi b/arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi
index 75aed3a88284..d7eaba599d03 100644
--- a/arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi
@@ -27,6 +27,11 @@ opp_efuse_table: syscon@18 {
reg = <0x18 0x4>;
};
+ devstat: syscon@30 {
+ compatible = "ti,am62-devstat", "syscon", "simple-mfd";
+ reg = <0x30 0x4>;
+ };
+
cpsw_mac_syscon: ethernet-mac-syscon@200 {
compatible = "ti,am62p-cpsw-mac-efuse", "syscon";
reg = <0x200 0x8>;
--
2.47.3
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 3/3] arm64: dts: ti: k3-am62l-wakeup: describe DEVSTAT as syscon
2026-12-01 14:45 [PATCH 0/3] arm64: dts: ti: k3-am62x: describe DEVSTAT as syscon Ahmad Fatoum
2026-12-01 14:45 ` [PATCH 1/3] dt-bindings: soc: ti: add AM62 DEVSTAT syscon Ahmad Fatoum
2026-12-01 14:45 ` [PATCH 2/3] arm64: dts: ti: k3-am62-wakeup: describe DEVSTAT as syscon Ahmad Fatoum
@ 2026-12-01 14:45 ` Ahmad Fatoum
2 siblings, 0 replies; 4+ messages in thread
From: Ahmad Fatoum @ 2026-12-01 14:45 UTC (permalink / raw)
To: Nishanth Menon, Vignesh Raghavendra, Tero Kristo, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Ahmad Fatoum
Cc: linux-arm-kernel, devicetree, kernel, f.diener, linux-kernel
The mask ROM code of the AM62L reads the boot mode from the DEVSTAT
register at 0x43010030 on every reset. It can be rewritten by software
prior to warm reboot to change the next boot's medium, e.g. to SD or DFU.
Let's describe the register as syscon, so a syscon-reboot-mode node can
be placed below it. The reboot modes themselves are left out:
Board device trees can describe their own or the bootloader can fix them
up as barebox already does if it finds the parent syscon in the kernel
device tree.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
arch/arm64/boot/dts/ti/k3-am62l-wakeup.dtsi | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/arm64/boot/dts/ti/k3-am62l-wakeup.dtsi b/arch/arm64/boot/dts/ti/k3-am62l-wakeup.dtsi
index b5b70e71a0b7..d37395c9b886 100644
--- a/arch/arm64/boot/dts/ti/k3-am62l-wakeup.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-am62l-wakeup.dtsi
@@ -137,6 +137,11 @@ cpsw_mac_syscon: ethernet-mac-syscon@2000 {
reg = <0x2000 0x8>;
};
+ devstat: syscon@10030 {
+ compatible = "ti,am62l-devstat", "syscon", "simple-mfd";
+ reg = <0x10030 0x4>;
+ };
+
usb_phy_ctrl: syscon@45000 {
compatible = "ti,am62-usb-phy-ctrl", "syscon";
reg = <0x45000 0x1000>;
--
2.47.3
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-12-01 14:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-01 14:45 [PATCH 0/3] arm64: dts: ti: k3-am62x: describe DEVSTAT as syscon Ahmad Fatoum
2026-12-01 14:45 ` [PATCH 1/3] dt-bindings: soc: ti: add AM62 DEVSTAT syscon Ahmad Fatoum
2026-12-01 14:45 ` [PATCH 2/3] arm64: dts: ti: k3-am62-wakeup: describe DEVSTAT as syscon Ahmad Fatoum
2026-12-01 14:45 ` [PATCH 3/3] arm64: dts: ti: k3-am62l-wakeup: " Ahmad Fatoum
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®