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 2/3] arm64: dts: ti: k3-am62-wakeup: describe DEVSTAT as syscon
Date: Tue, 01 Dec 2026 15:45:19 +0100	[thread overview]
Message-ID: <20261201-am62x-devstat-v1-2-f4ad99454fa2@pengutronix.de> (raw)
In-Reply-To: <20261201-am62x-devstat-v1-0-f4ad99454fa2@pengutronix.de>

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


  parent 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: " 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 [this message]
2026-12-01 14:45 ` [PATCH 3/3] arm64: dts: ti: k3-am62l-wakeup: describe DEVSTAT as syscon 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-2-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®