* [PATCH] ARM: dts: stm32: declare device tree syscon node for TAMP peripheral
@ 2020-09-16 14:22 Ahmad Fatoum
2020-09-16 14:25 ` Ahmad Fatoum
0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2020-09-16 14:22 UTC (permalink / raw)
To: Rob Herring, Maxime Coquelin, Alexandre Torgue
Cc: Ahmad Fatoum, devicetree, linux-stm32, linux-arm-kernel,
linux-kernel
The stm32mp1 TAMP (Tamper and backup registers) does tamper detection
and features 32 backup registers that, being in the RTC domain, may
survive even with Vdd switched off.
We don't have a driver for the peripheral, but handling it as syscon
allows using it with existing drivers that work with them, in particular
a syscon-reboot-mode child node can be defined in board.dts (or fixed up
by the bootloader) to exchange reboot mode information with the bootloader.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
arch/arm/boot/dts/stm32mp151.dtsi | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/arm/boot/dts/stm32mp151.dtsi b/arch/arm/boot/dts/stm32mp151.dtsi
index bfe29023fbd5..fa4eb96c95af 100644
--- a/arch/arm/boot/dts/stm32mp151.dtsi
+++ b/arch/arm/boot/dts/stm32mp151.dtsi
@@ -1144,6 +1144,11 @@ syscfg: syscon@50020000 {
clocks = <&rcc SYSCFG>;
};
+ tamp: tamp@5c00a000 {
+ compatible = "simple-bus", "syscon", "simple-mfd";
+ reg = <0x5c00a000 0x400>;
+ };
+
lptimer2: timer@50021000 {
#address-cells = <1>;
#size-cells = <0>;
--
2.28.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ARM: dts: stm32: declare device tree syscon node for TAMP peripheral
2020-09-16 14:22 [PATCH] ARM: dts: stm32: declare device tree syscon node for TAMP peripheral Ahmad Fatoum
@ 2020-09-16 14:25 ` Ahmad Fatoum
0 siblings, 0 replies; 2+ messages in thread
From: Ahmad Fatoum @ 2020-09-16 14:25 UTC (permalink / raw)
To: Rob Herring, Maxime Coquelin, Alexandre Torgue
Cc: devicetree, linux-stm32, linux-arm-kernel, linux-kernel
On 9/16/20 4:22 PM, Ahmad Fatoum wrote:
> The stm32mp1 TAMP (Tamper and backup registers) does tamper detection
> and features 32 backup registers that, being in the RTC domain, may
> survive even with Vdd switched off.
>
> We don't have a driver for the peripheral, but handling it as syscon
> allows using it with existing drivers that work with them, in particular
> a syscon-reboot-mode child node can be defined in board.dts (or fixed up
> by the bootloader) to exchange reboot mode information with the bootloader.
>
Looking at the title, I see now that there is nothing stm32mp specific in it.
I will rename the patch to
"ARM: dts: stm32: declare syscon node for TAMP peripheral in stm32mp151.dtsi"
when I send out v2.
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> ---
> arch/arm/boot/dts/stm32mp151.dtsi | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/arch/arm/boot/dts/stm32mp151.dtsi b/arch/arm/boot/dts/stm32mp151.dtsi
> index bfe29023fbd5..fa4eb96c95af 100644
> --- a/arch/arm/boot/dts/stm32mp151.dtsi
> +++ b/arch/arm/boot/dts/stm32mp151.dtsi
> @@ -1144,6 +1144,11 @@ syscfg: syscon@50020000 {
> clocks = <&rcc SYSCFG>;
> };
>
> + tamp: tamp@5c00a000 {
> + compatible = "simple-bus", "syscon", "simple-mfd";
> + reg = <0x5c00a000 0x400>;
> + };
> +
> lptimer2: timer@50021000 {
> #address-cells = <1>;
> #size-cells = <0>;
>
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-09-16 21:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-16 14:22 [PATCH] ARM: dts: stm32: declare device tree syscon node for TAMP peripheral Ahmad Fatoum
2020-09-16 14:25 ` Ahmad Fatoum
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).