| Message ID | 20260107194541.1843999-1-dario.binacchi@amarulasolutions.com |
|---|---|
| State | New |
| Headers |
Return-Path:
<linux-amarula+bncBCQ4XFG47UFRB27P7LFAMGQEOUK3OGI@amarulasolutions.com>
X-Original-To: linux-amarula@patchwork.amarulasolutions.com
Delivered-To: linux-amarula@patchwork.amarulasolutions.com
Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com
[209.85.208.69])
by ganimede.amarulasolutions.com (Postfix) with ESMTPS id C00C53F12B
for <linux-amarula@patchwork.amarulasolutions.com>;
Wed, 7 Jan 2026 20:45:48 +0100 (CET)
Received: by mail-ed1-f69.google.com with SMTP id
4fb4d7f45d1cf-64cfbb4c464sf3135312a12.2
for <linux-amarula@patchwork.amarulasolutions.com>;
Wed, 07 Jan 2026 11:45:48 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1767815148; cv=pass;
d=google.com; s=arc-20240605;
b=IHrAmRm5B+8MoTFczxzDyjLHMR33KYrMfAjm/wYYyGkZkFC2UcyRkX+SShOC3C/k7T
zBZ4dHBTkWckNC1KIGV7yENI6+IDAHOZtlE8KsmDtC3F0DUQxxJqpEfeYzOxLEL40eTb
hFvsbEWhrnRtSLKYvBC18rZ/+O++cRZ2ZkzEQmzHjNe/CGZL4pR9i12RdBR2AyOnG5Ma
Qn0wmwW40JIICdNLb6prk+y6U+OwtIIIbjL2N16EdFB2kofBP8vVaOEjTswstg5MTSR2
radNrYw3OnKGsPWHG2aF8gzDjNPM0BuIGoqOxmANShtaBlmn0Z0+7L3DlL2c43N8xdDB
tkWA==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20240605;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:mime-version:message-id:date:subject:cc:to
:from:dkim-signature;
bh=hy0Abwvt1hhfrZjP0JFv9EMkp54mQZOF8NBGixPOBQI=;
fh=zPQZAqAwYtrylB67XvzxjcwY8EOX9LhV1zGAqy9Zw9w=;
b=CFosnq4xvS/0FI09ZrImitAwjVbV1cTyvmKozdgkL4FYqA6OMoyKKsvV9vptWo3yBR
r472+FNErHe/R/f12dy8vcM4n1Jch1tW6Zo4grgjs3qg/IhjTZpWEqNVvoW1Xc25TZGl
QLtXFZijTA57cYZKBG8K4SA7BAUIb7HGe/Sb7uropQLqGrFmfn6rEkho1arjZ7jcpeNR
wVVyOUoNwxPEY4PGwPGMJg9H+c+oj7V+0UwzwMNd4mqIMZHu1bWpwtMsnFawzwpbQKQ6
I2TT/KYdTkfylvvxjaqGPMFY8/8Cla0YcAdtBczS06EPypW88SKAMsEkeWNYbznrbX2s
VZxg==;
darn=patchwork.amarulasolutions.com
ARC-Authentication-Results: i=2; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=J5yI5QGz;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=neutral header.i=@amarulasolutions.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=amarulasolutions.com; s=google; t=1767815148; x=1768419948;
darn=patchwork.amarulasolutions.com;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:x-original-authentication-results
:x-original-sender:mime-version:message-id:date:subject:cc:to:from
:from:to:cc:subject:date:message-id:reply-to;
bh=hy0Abwvt1hhfrZjP0JFv9EMkp54mQZOF8NBGixPOBQI=;
b=SjFyugSYRqgBEQAU3LY2RT2Za413Q05hQvGUe8pZicikTemzgjwfW5/rzjrXT2iB9M
L3kcWs5qD9mpLlkjefvjH1wtO/mHC1cnX5ILTMuHYm0AoGYJKH5aauB3uKiHsL/uF9Qc
Q8sgwxnNx6U6IzmwnWdEg9oboXTouUJGFYhJQ=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1767815148; x=1768419948;
h=list-unsubscribe:list-archive:list-help:list-post
:x-spam-checked-in-group:list-id:mailing-list:precedence
:x-original-authentication-results:x-original-sender:mime-version
:message-id:date:subject:cc:to:from:x-gm-gg:x-beenthere
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=hy0Abwvt1hhfrZjP0JFv9EMkp54mQZOF8NBGixPOBQI=;
b=FSPPqMpPSbS86opM/wkcdniUiFJ2+FjIHKYTGcd9ekLezFK9c7op5xR/JqSzjYCMgS
43zioxEXm8IOGVELAH3mrmQQgAFx4ZULK69Rc5mm9VpB5AbSHbAvYtRXcFuI/32yiwfo
q8orAmjLbojmHG8sTy9YHPfwftAAZeAYgsYdRH38Cc9Kz8Kw0feO7eRJdDlCdKr5WmfJ
R5fjaUmRZmQXqrt9InQOFFWrlXE2OtEuihrwf20jfxAhHZA7b3Tr3Juzkag6hEhEQo6S
vwrsIc82n59zRMgY4KYl1QLhg8HJIA2fr188hxgDx/SmTY9MITa35k4ovHLGPuobu4tB
F+hQ==
X-Forwarded-Encrypted: i=2;
AJvYcCVYekUZ3m9opJ1HGutKg0ivSzQGmza3hxI2oDNmokMLuqDQaWG9zPDtL9TGrBYkoVWtfFtoZ51g9kG9xJC9@patchwork.amarulasolutions.com
X-Gm-Message-State: AOJu0Yzqa77vJaVTCB0OQ3uyJk5+/ratY6Z2ihGTee3hlIo+BfPavrs7
s9wnG7jfpN5LyCqzA8hjPRh+5JyQOzfq/7u+7x0PZbg9hQgPtVI9be8YjwBUK/vHXdHAGFJH/gl
d3Q==
X-Google-Smtp-Source:
AGHT+IFPgZc1iEbiuis/42W1ine6CG1iefMJ1O/qTk6mAs7XzBWhTMV11sgBI8gQEsHLVfKKKs/lkA==
X-Received: by 2002:a05:6402:50cb:b0:650:863d:3df0 with SMTP id
4fb4d7f45d1cf-65097e720a3mr3322895a12.33.1767815148336;
Wed, 07 Jan 2026 11:45:48 -0800 (PST)
X-BeenThere: linux-amarula@amarulasolutions.com;
h="AWVwgWYjS+oizfPGUeSdE5oME8G/o8YfekX4B/DHPtQrzUcP4w=="
Received: by 2002:a05:6402:3048:20b0:641:6168:4680 with SMTP id
4fb4d7f45d1cf-65074213c30ls2157574a12.0.-pod-prod-02-eu; Wed, 07 Jan 2026
11:45:46 -0800 (PST)
X-Received: by 2002:a17:907:7b99:b0:b7c:e3ad:cd17 with SMTP id
a640c23a62f3a-b844532ae68mr346756566b.32.1767815146304;
Wed, 07 Jan 2026 11:45:46 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1767815146; cv=none;
d=google.com; s=arc-20240605;
b=YEFGHwEllLOsus/zouyfFQqDai3UrRt3Ppq9XY4+SC5wgXJKOqoJQc9DX3HmvvEaQF
j+jFDWKVnpcq2wZqWx30LvUYsnxed/6zazbTh8UJGV1e3E6GIdQctN8fxtlOz3SJ1nI1
2nGWan75SKJhUIewKcIOnAVRLW2l6JEr4dntBNCbhwsMjrjvxdefeHQ/D5gU0zyENNi1
MFYBaqdllVkWlAgIlFODj9EizXiVRIzCuufK3RluxWi9DaZ1KylLW49luBdsrl3j4nKz
DEunxvCd9fsYhphYPkeeDqaUsfie9PhtFP/WjBQzkMacs03SGGxuBJMgyy3XZptfGfJf
am+Q==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20240605;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:dkim-signature;
bh=quK5ciOPGpJvzJstcVp2ODwhOQdezz2oTPhzvAyikRU=;
fh=rwuOavHCRWg9+tbL+YBAmdaNurd/3P1qc4b3/W7/ha4=;
b=LU2aqgaCqwE7z0+PeVh/8YI1319H8qYtDlrBInx2i/OyhTH0rHUuLL/DM57kOA6tku
GbQHTIsffdBIBamIGD1JBOXQnz4KLy0AUHgzIbiqmgAnaiVCTwlmwWnj3Q2hUjctuLPn
s02i7/+tDRTENYyOXcHUbWR/+vHPMs/FSLnDZA+PJ4oXnmXic859klNrYPmnCoS8vfU3
3qmmM2afs3s770qNLc4ziYghE7d0hTyzyYm0NGjuNJ3qCeg9kJ1TA+tI+CXzXGC/DBtI
B+6NrJiyJuaDYmsqFVfuxq0/s66N5a+TdUWsxbC5jZ4IwtT0uDnlQntOUnAwH+YuP9up
CPBA==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=J5yI5QGz;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=neutral header.i=@amarulasolutions.com
Received: from mail-sor-f41.google.com (mail-sor-f41.google.com.
[209.85.220.41])
by mx.google.com with SMTPS id
a640c23a62f3a-b842a21026bsor153136566b.5.2026.01.07.11.45.46
for <linux-amarula@amarulasolutions.com>
(Google Transport Security);
Wed, 07 Jan 2026 11:45:46 -0800 (PST)
Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Gm-Gg: AY/fxX7Js09zt5XsuW5QS4nhSIBP+6sUhinjhMkdtMAnpXq/eSzJ/BNX0QXP0PZDzQP
OHqCLnvtQ60HHIAasTuy9AF18p+6sVKa4Nd3IAsrER1WUZbwj/TH/hxQiI1sQj3vRR138T6ikt0
I8ItJ61qhukLGN2j3A3U0tZBDqlk+Y1RFza88q3/OjXZGH8pzVVmAC/zLVUUKebjbGc2Cxe0gbp
kLGwCUHWvXK8eitPuM3xv1B04tPCkqkEav4IgokmOBQaQP2+6yQ3aCKIKKGyM/9mDdKKL8azGJr
CBCa/nvQHEtDi2EIr2tl7aW8VVfzKk5/RDCx1Mxu+Z3fgeQ5rmnQVH4wAkJQDa7x9o77RuPTM/n
4TKOj9NOJy7lNXb6lYVngye3ZvABuLAfv+FT0Ff91oTmtfN88oNOBfvaW0FYUO5pPk9Ep5ResyN
2p6UqxBVKsHQOHgil1JqTWQGRXo9wBTFO/qMRqvjomqwICmKkq14zg5PtOVoUcRkTw8H8GVe1wb
dg2m03iPuCYnSeTZ4l7xrPJD0/m8THVwk0=
X-Received: by 2002:a17:907:1b21:b0:b73:6f8c:6127 with SMTP id
a640c23a62f3a-b8445031bf9mr384207966b.12.1767815145741;
Wed, 07 Jan 2026 11:45:45 -0800 (PST)
Received: from dario-ThinkPad-P14s-Gen-5.amarulasolutions.com ([2.196.41.122])
by smtp.gmail.com with ESMTPSA id
a640c23a62f3a-b842a233fb3sm591201066b.12.2026.01.07.11.45.44
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Wed, 07 Jan 2026 11:45:45 -0800 (PST)
From: Dario Binacchi <dario.binacchi@amarulasolutions.com>
To: linux-kernel@vger.kernel.org
Cc: linux-amarula@amarulasolutions.com,
Dario Binacchi <dario.binacchi@amarulasolutions.com>,
Alexandre Torgue <alexandre.torgue@foss.st.com>,
Conor Dooley <conor+dt@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Maxime Coquelin <mcoquelin.stm32@gmail.com>,
Rob Herring <robh@kernel.org>,
Srinivas Kandagatla <srini@kernel.org>,
devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-stm32@st-md-mailman.stormreply.com
Subject: [PATCH 1/2] dt-bindings: nvmem: add STM32 TAMP NVRAM
Date: Wed, 7 Jan 2026 20:45:32 +0100
Message-ID: <20260107194541.1843999-1-dario.binacchi@amarulasolutions.com>
X-Mailer: git-send-email 2.43.0
MIME-Version: 1.0
X-Original-Sender: dario.binacchi@amarulasolutions.com
X-Original-Authentication-Results: mx.google.com; dkim=pass
header.i=@amarulasolutions.com header.s=google header.b=J5yI5QGz;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=neutral header.i=@amarulasolutions.com
Content-Type: text/plain; charset="UTF-8"
Precedence: list
Mailing-list: list linux-amarula@amarulasolutions.com;
contact linux-amarula+owners@amarulasolutions.com
List-ID: <linux-amarula.amarulasolutions.com>
X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com
X-Google-Group-Id: 476853432473
List-Post:
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>,
<mailto:linux-amarula@amarulasolutions.com>
List-Help:
<https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>,
<mailto:linux-amarula+help@amarulasolutions.com>
List-Archive:
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/>
List-Unsubscribe:
<mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>,
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe>
|
| Series |
[1/2] dt-bindings: nvmem: add STM32 TAMP NVRAM
|
|
Commit Message
Dario Binacchi
Jan. 7, 2026, 7:45 p.m. UTC
Add devicetree bindings for TAMP backup registers. These 32-bit
registers are retained in all low-power modes and in VBAT mode. As a
result, they can also be used to store sensitive data because their
content is protected by a tamper detection circuit.
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---
.../bindings/nvmem/st,stm32-tamp-nvram.yaml | 55 +++++++++++++++++++
1 file changed, 55 insertions(+)
create mode 100644 Documentation/devicetree/bindings/nvmem/st,stm32-tamp-nvram.yaml
Comments
On Wed, 07 Jan 2026 20:45:32 +0100, Dario Binacchi wrote: > Add devicetree bindings for TAMP backup registers. These 32-bit > registers are retained in all low-power modes and in VBAT mode. As a > result, they can also be used to store sensitive data because their > content is protected by a tamper detection circuit. > > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > --- > > .../bindings/nvmem/st,stm32-tamp-nvram.yaml | 55 +++++++++++++++++++ > 1 file changed, 55 insertions(+) > create mode 100644 Documentation/devicetree/bindings/nvmem/st,stm32-tamp-nvram.yaml > My bot found new DTB warnings on the .dts files added or changed in this series. Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings are fixed by another series. Ultimately, it is up to the platform maintainer whether these warnings are acceptable or not. No need to reply unless the platform maintainer has comments. If you already ran DT checks and didn't see these error(s), then make sure dt-schema is up to date: pip3 install dtschema --upgrade This patch series was applied (using b4) to base: Base: f0b9d8eb98dfee8d00419aa07543bdc2c1a44fb1 (use --merge-base to override) If this is not the correct base, please add 'base-commit' tag (or use b4 which does this automatically) New warnings running 'make CHECK_DTBS=y for arch/arm64/boot/dts/st/' for 20260107194541.1843999-1-dario.binacchi@amarulasolutions.com: arch/arm64/boot/dts/st/stm32mp257f-dk.dtb: tamp@46010000 (st,stm32-tamp): '#address-cells', '#size-cells', 'nvram@46010100', 'ranges' do not match any of the regexes: '^pinctrl-[0-9]+$' from schema $id: http://devicetree.org/schemas/arm/stm32/st,stm32-syscon.yaml arch/arm64/boot/dts/st/stm32mp257f-ev1.dtb: tamp@46010000 (st,stm32-tamp): '#address-cells', '#size-cells', 'nvram@46010100', 'ranges' do not match any of the regexes: '^pinctrl-[0-9]+$' from schema $id: http://devicetree.org/schemas/arm/stm32/st,stm32-syscon.yaml To unsubscribe from this group and stop receiving emails from it, send an email to linux-amarula+unsubscribe@amarulasolutions.com.
On Wed, Jan 07, 2026 at 08:45:32PM +0100, Dario Binacchi wrote: > Add devicetree bindings for TAMP backup registers. These 32-bit > registers are retained in all low-power modes and in VBAT mode. As a > result, they can also be used to store sensitive data because their > content is protected by a tamper detection circuit. > > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > --- > > .../bindings/nvmem/st,stm32-tamp-nvram.yaml | 55 +++++++++++++++++++ > 1 file changed, 55 insertions(+) > create mode 100644 Documentation/devicetree/bindings/nvmem/st,stm32-tamp-nvram.yaml > > diff --git a/Documentation/devicetree/bindings/nvmem/st,stm32-tamp-nvram.yaml b/Documentation/devicetree/bindings/nvmem/st,stm32-tamp-nvram.yaml > new file mode 100644 > index 000000000000..e03469fbe436 > --- /dev/null > +++ b/Documentation/devicetree/bindings/nvmem/st,stm32-tamp-nvram.yaml > @@ -0,0 +1,55 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/nvmem/st,stm32-tamp-nvram.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: STMicroelectronics STM32 TAMP's NVRAM > + > +description: | Don't need '|' if no formatting. > + The TAMP peripheral integrates, amongst others, Non Volatile RAM What others? Are you saying this binding is incomplete? > + (NVRAM) with 32/128 32-bit backup registers which can be used by > + software to store information or communicate with a boot loader. Wrap lines at 80 char. > + > +maintainers: > + - Dario Binacchi <dario.binacchi@amarulasolutions.com> > + > +allOf: > + - $ref: nvmem.yaml# > + > +properties: > + compatible: > + enum: > + - st,stm32mp15-tamp-nvram > + - st,stm32mp25-tamp-nvram > + > + reg: > + maxItems: 1 > + > +required: > + - compatible > + - reg > + > +unevaluatedProperties: false > + > +examples: > + - | > + nvram: nvram@46010100 { > + compatible = "st,stm32mp25-tamp-nvram"; > + reg = <0x46010100 0x200>; > + > + nvmem-layout { > + compatible = "fixed-layout"; > + #address-cells = <1>; > + #size-cells = <1>; > + > + fwu_info: tamp-bkp@c0 { > + reg = <0xc0 0x4>; > + }; > + > + boot_mode: tamp-bkp@180 { > + reg = <0x180 0x4>; > + }; > + }; > + }; > +... > -- > 2.43.0 > > base-commit: f0b9d8eb98dfee8d00419aa07543bdc2c1a44fb1 > branch: stm32-tamp-nvram To unsubscribe from this group and stop receiving emails from it, send an email to linux-amarula+unsubscribe@amarulasolutions.com.
diff --git a/Documentation/devicetree/bindings/nvmem/st,stm32-tamp-nvram.yaml b/Documentation/devicetree/bindings/nvmem/st,stm32-tamp-nvram.yaml new file mode 100644 index 000000000000..e03469fbe436 --- /dev/null +++ b/Documentation/devicetree/bindings/nvmem/st,stm32-tamp-nvram.yaml @@ -0,0 +1,55 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/nvmem/st,stm32-tamp-nvram.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: STMicroelectronics STM32 TAMP's NVRAM + +description: | + The TAMP peripheral integrates, amongst others, Non Volatile RAM + (NVRAM) with 32/128 32-bit backup registers which can be used by + software to store information or communicate with a boot loader. + +maintainers: + - Dario Binacchi <dario.binacchi@amarulasolutions.com> + +allOf: + - $ref: nvmem.yaml# + +properties: + compatible: + enum: + - st,stm32mp15-tamp-nvram + - st,stm32mp25-tamp-nvram + + reg: + maxItems: 1 + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + nvram: nvram@46010100 { + compatible = "st,stm32mp25-tamp-nvram"; + reg = <0x46010100 0x200>; + + nvmem-layout { + compatible = "fixed-layout"; + #address-cells = <1>; + #size-cells = <1>; + + fwu_info: tamp-bkp@c0 { + reg = <0xc0 0x4>; + }; + + boot_mode: tamp-bkp@180 { + reg = <0x180 0x4>; + }; + }; + }; +...