ARM: dts: imx7d-sdb: add syscon-poweroff
authorRobin Gong <yibin.gong@nxp.com>
Fri, 11 Oct 2019 15:50:30 +0000 (23:50 +0800)
committerDong Aisheng <aisheng.dong@nxp.com>
Mon, 14 Dec 2020 03:20:22 +0000 (11:20 +0800)
Add syscon-poweroff device node for i.mx7d.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
arch/arm/boot/dts/imx7d-sdb.dts
arch/arm/boot/dts/imx7s.dtsi

index 711e595..0f6b976 100644 (file)
        status = "okay";
 };
 
+&snvs_poweroff {
+       status = "okay";
+};
+
 &snvs_pwrkey {
        status = "okay";
 };
index 92c8a2c..0e3f225 100644 (file)
                                        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>;