diff mbox series

ARM: dts: imx7s: Add snvs-poweroff support

Message ID 20240321143115.1117060-1-festevam@gmail.com (mailing list archive)
State In Next, archived
Headers show
Series ARM: dts: imx7s: Add snvs-poweroff support | expand

Commit Message

Fabio Estevam March 21, 2024, 2:31 p.m. UTC
From: Fabio Estevam <festevam@denx.de>

Just like other i.MX devices, i.MX7 also supports using the SNVS
block to poweroff the chip.

Add an entry for it.

Signed-off-by: Fabio Estevam <festevam@denx.de>
---
 arch/arm/boot/dts/nxp/imx/imx7s.dtsi | 9 +++++++++
 1 file changed, 9 insertions(+)

Comments

Shawn Guo April 2, 2024, 3:16 a.m. UTC | #1
On Thu, Mar 21, 2024 at 11:31:15AM -0300, Fabio Estevam wrote:
> From: Fabio Estevam <festevam@denx.de>
> 
> Just like other i.MX devices, i.MX7 also supports using the SNVS
> block to poweroff the chip.
> 
> Add an entry for it.
> 
> Signed-off-by: Fabio Estevam <festevam@denx.de>

Applied, thanks!
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/nxp/imx/imx7s.dtsi b/arch/arm/boot/dts/nxp/imx/imx7s.dtsi
index 9c81c6baa2d3..22dd72499ef2 100644
--- a/arch/arm/boot/dts/nxp/imx/imx7s.dtsi
+++ b/arch/arm/boot/dts/nxp/imx/imx7s.dtsi
@@ -636,6 +636,15 @@  snvs_rtc: snvs-rtc-lp {
 					clock-names = "snvs-rtc";
 				};
 
+				snvs_poweroff: snvs-poweroff {
+					compatible = "syscon-poweroff";
+					regmap = <&snvs>;
+					offset = <0x38>;
+					value = <0x60>;
+					mask = <0x60>;
+					status = "disabled";
+				};
+
 				snvs_pwrkey: snvs-powerkey {
 					compatible = "fsl,sec-v4.0-pwrkey";
 					regmap = <&snvs>;