From: Patrice Chotard <patrice.chotard@foss.st.com>
To: Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Maxime Coquelin <mcoquelin.stm32@gmail.com>,
Alexandre Torgue <alexandre.torgue@foss.st.com>
Cc: <devicetree@vger.kernel.org>,
<linux-stm32@st-md-mailman.stormreply.com>,
<linux-arm-kernel@lists.infradead.org>,
<linux-kernel@vger.kernel.org>,
Patrice Chotard <patrice.chotard@foss.st.com>,
Simeon Marijon <simeon.marijon@foss.st.com>
Subject: [PATCH 2/5] ARM: dts: stm32: add TAMP backup register in stm32mp151.dtsi
Date: Thu, 10 Sep 2026 17:14:25 +0200 [thread overview]
Message-ID: <20260910-upstream_tamp_nvram_dts_part-v1-2-e2bca58a65f4@foss.st.com> (raw)
In-Reply-To: <20260910-upstream_tamp_nvram_dts_part-v1-0-e2bca58a65f4@foss.st.com>
From: Simeon Marijon <simeon.marijon@foss.st.com>
TAMP backup registers allow information sharing between different
software components/execution levels.
They are described individually as nvmem cells.
Signed-off-by: Simeon Marijon <simeon.marijon@foss.st.com>
Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
---
arch/arm/boot/dts/st/stm32mp151.dtsi | 82 ++++++++++++++++++++++++++++++++++++
1 file changed, 82 insertions(+)
diff --git a/arch/arm/boot/dts/st/stm32mp151.dtsi b/arch/arm/boot/dts/st/stm32mp151.dtsi
index 84f68e8563d8..0ad75e010839 100644
--- a/arch/arm/boot/dts/st/stm32mp151.dtsi
+++ b/arch/arm/boot/dts/st/stm32mp151.dtsi
@@ -2060,7 +2060,89 @@ i2c6: i2c@5c009000 {
tamp: tamp@5c00a000 {
compatible = "st,stm32-tamp", "syscon", "simple-mfd";
+ #address-cells = <1>;
+ #size-cells = <1>;
reg = <0x5c00a000 0x400>;
+ ranges;
+
+ nvram: nvram@5c00a100 {
+ compatible = "st,stm32mp15-tamp-nvram";
+ reg = <0x5c00a100 0x80>;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+ wakeup_sec: tamp-bkp@0 {
+ reg = <0x0 0x4>;
+ };
+
+ m4_security_perimeter_exti1: tamp-bkp@4 {
+ /* see cortex-m4 wake up feature */
+ reg = <0x4 0x4>;
+ };
+
+ m4_security_perimeter_exti2: tamp-bkp@8 {
+ /* see cortex-m4 wake up feature */
+ reg = <0x8 0x4>;
+ };
+
+ m4_security_perimeter_exti3: tamp-bkp@c {
+ /* see cortex-m4 wtake up feature */
+ reg = <0xc 0x4>;
+ };
+
+ magic_number: tamp-bkp@10 {
+ /* see ddr and cpu wake up management feature */
+ reg = <0x10 0x4>;
+ };
+
+ branch_address: tamp-bkp@14 {
+ /* see ddr and cpu wake up management feature */
+ reg = <0x14 0x4>;
+ };
+
+ fwu_info: tamp-bkp@28 {
+ /* see firmware update info feature */
+ reg = <0x28 0x4>;
+ };
+
+ copro_rsc_tbl_address: tamp-bkp@44 {
+ /* see cortex-m4 management feature */
+ reg = <0x44 0x4>;
+ };
+
+ cortex_m_state: tamp-bkp@48 {
+ /* see cortex-m4 management feature */
+ reg = <0x48 0x4>;
+ };
+
+ boot_mode: tamp-bkp@50 {
+ /* see boot mode selection feature */
+ reg = <0x50 0x4>;
+ };
+
+ boot_counter: tamp-bkp@54 {
+ /* see boot counter feature */
+ reg = <0x54 0x4>;
+ };
+
+ m4_wakeup_area_start: tamp-bkp@58 {
+ /* see cortex-m4 wake up feature */
+ reg = <0x58 0x4>;
+ };
+
+ m4_wakeup_area_length: tamp-bkp@5c {
+ /* see cortex-m4 wake up feature */
+ reg = <0x5c 0x4>;
+ };
+
+ m4_wakeup_area_hash: tamp-bkp@60 {
+ /* SHA-0x100 value see Cortex-M4 wake up feature */
+ reg = <0x60 0x20>;
+ };
+ };
+ };
};
/*
--
2.43.0
next prev parent reply other threads:[~2026-09-10 15:14 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-10 15:14 [PATCH 0/5] Add STM32 TAMP nvram support Patrice Chotard
2026-09-10 15:14 ` [PATCH 1/5] ARM: dts: stm32: add TAMP backup register in stm32mp131.dtsi Patrice Chotard
2026-09-10 15:29 ` sashiko-bot
2026-09-11 8:17 ` Patrice CHOTARD
2026-09-10 15:14 ` Patrice Chotard [this message]
2026-09-10 15:26 ` [PATCH 2/5] ARM: dts: stm32: add TAMP backup register in stm32mp151.dtsi sashiko-bot
2026-09-11 8:18 ` Patrice CHOTARD
2026-09-10 15:14 ` [PATCH 3/5] arm64: dts: st: add TAMP backup register in stm32mp211.dtsi Patrice Chotard
2026-09-10 15:14 ` [PATCH 4/5] arm64: dts: st: add TAMP backup register in stm32mp231.dtsi Patrice Chotard
2026-09-10 15:14 ` [PATCH 5/5] arm64: dts: st: add TAMP backup register in stm32mp251.dtsi Patrice Chotard
2026-09-10 15:25 ` sashiko-bot
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=20260910-upstream_tamp_nvram_dts_part-v1-2-e2bca58a65f4@foss.st.com \
--to=patrice.chotard@foss.st.com \
--cc=alexandre.torgue@foss.st.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=robh@kernel.org \
--cc=simeon.marijon@foss.st.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