[PATCH 1/3] dt-bindings: soc: ti: add AM62 DEVSTAT syscon
From: Ahmad Fatoum
Date: Tue Dec 01 2026 - 09:45:34 EST
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@xxxxxxxxxxxxxx>
---
.../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@xxxxxxxxxxxxxx>
+
+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