MLK-12675 ARM: dts: imx: keep RTC enabled for software poweroff
authorAnson Huang <Anson.Huang@nxp.com>
Mon, 18 Apr 2016 10:00:11 +0000 (18:00 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:31:07 +0000 (02:31 +0300)
SRTC needs to be kept enabled during system poweroff,
SNVS_LP control register bit 0 SRTC_ENV must be set
to enable RTC, for software poweroff, kernel just
read the register offset and value from dtb and write
to SNVS_LP control register to poweroff system, need
to make sure bit 0 SRTC_ENV is set to enable RTC during
system poweroff.

Previous setting did NOT enable it which will cause
RTC stop running if using software poweroff.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
[Arul: Fix merge conflicts]
Signed-off-by: Arulpandiyan Vadivel <arulpandiyan_vadivel@mentor.com>
Signed-off-by: Srikanth Krishnakar <Srikanth_Krishnakar@mentor.com>
arch/arm/boot/dts/imx6qdl.dtsi
arch/arm/boot/dts/imx6sl.dtsi
arch/arm/boot/dts/imx6sx.dtsi
arch/arm/boot/dts/imx6ul.dtsi
arch/arm/boot/dts/imx6ull.dtsi
arch/arm/boot/dts/imx7s.dtsi

index f3a4847..8142902 100644 (file)
                                        compatible = "syscon-poweroff";
                                        regmap = <&snvs>;
                                        offset = <0x38>;
-                                       value = <0x60>;
-                                       mask = <0x60>;
+                                       value = <0x61>;
+                                       mask = <0x61>;
                                        status = "disabled";
                                };
 
index 435eadc..93da24e 100644 (file)
                                        compatible = "syscon-poweroff";
                                        regmap = <&snvs>;
                                        offset = <0x38>;
-                                       value = <0x60>;
-                                       mask = <0x60>;
+                                       value = <0x61>;
+                                       mask = <0x61>;
                                        status = "disabled";
                                };
                        };
index ba8a506..66c2c7b 100644 (file)
                                        compatible = "syscon-poweroff";
                                        regmap = <&snvs>;
                                        offset = <0x38>;
-                                       value = <0x60>;
-                                       mask = <0x60>;
+                                       value = <0x61>;
+                                       mask = <0x61>;
                                        status = "disabled";
                                };
 
index 63be11a..f3cc12e 100644 (file)
                                        compatible = "syscon-poweroff";
                                        regmap = <&snvs>;
                                        offset = <0x38>;
-                                       value = <0x60>;
-                                       mask = <0x60>;
+                                       value = <0x61>;
+                                       mask = <0x61>;
                                        status = "disabled";
                                };
 
index 49d6423..2544e4b 100644 (file)
                                        compatible = "syscon-poweroff";
                                        regmap = <&snvs>;
                                        offset = <0x38>;
-                                       mask = <0x60>;
+                                       mask = <0x61>;
                                };
 
                                snvs_pwrkey: snvs-powerkey {
index 2cdc8ae..a5db91b 100644 (file)
                                        compatible = "syscon-poweroff";
                                        regmap = <&snvs>;
                                        offset = <0x38>;
-                                       value = <0x60>;
-                                       mask = <0x60>;
+                                       value = <0x61>;
+                                       mask = <0x61>;
                                };
 
                                snvs_pwrkey: snvs-powerkey {