mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: Nishanth Menon <nm@ti.com>, Vignesh Raghavendra <vigneshr@ti.com>,
	 Tero Kristo <kristo@kernel.org>, Rob Herring <robh@kernel.org>,
	 Krzysztof Kozlowski <krzk+dt@kernel.org>,
	 Conor Dooley <conor+dt@kernel.org>,
	Ahmad Fatoum <a.fatoum@pengutronix.de>
Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org,
	 kernel@pengutronix.de, f.diener@pengutronix.de,
	 linux-kernel@vger.kernel.org
Subject: [PATCH 1/3] dt-bindings: soc: ti: add AM62 DEVSTAT syscon
Date: Tue, 01 Dec 2026 15:45:18 +0100	[thread overview]
Message-ID: <20261201-am62x-devstat-v1-1-f4ad99454fa2@pengutronix.de> (raw)
In-Reply-To: <20261201-am62x-devstat-v1-0-f4ad99454fa2@pengutronix.de>

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


  reply	other threads:[~2026-12-01 14:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2026-12-01 14:45 ` [PATCH 2/3] arm64: dts: ti: k3-am62-wakeup: " Ahmad Fatoum
2026-12-01 14:45 ` [PATCH 3/3] arm64: dts: ti: k3-am62l-wakeup: " Ahmad Fatoum

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=20261201-am62x-devstat-v1-1-f4ad99454fa2@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=f.diener@pengutronix.de \
    --cc=kernel@pengutronix.de \
    --cc=kristo@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nm@ti.com \
    --cc=robh@kernel.org \
    --cc=vigneshr@ti.com \
    /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

all inboxes | Powered by JetHome®