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

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


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

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-3-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®