@@ -159,29 +159,37 @@ To enable S2RAM support for your project, set the following MCUboot Kconfig opti
159159Also ensure that your board DTS file includes the following zephyr nodes for describing linker section used:
160160
161161* a ``zephyr,memory-region `` compatible node with nodelabel ``pm_s2ram `` of 32 B size for placing S2RAM cpu context RAM.
162+ * a ``zephyr,memory-region `` compatible node with nodelabel ``pm_s2ram_stack `` of 32 B size for program stack used during S2RAM resume.
162163* a ``zephyr,memory-region `` compatible node with nodelabel ``mcuboot_s2ram `` of 4 B size for placing MCUboot's S2RAM magic variable.
163164
164165Example DTS snippet:
165166
166167.. code-block :: dts
167168
168- / {
169+ / {
169170 soc {
170- /* run-time common mcuboot S2RAM support section */
171- mcuboot_s2ram: cpuapp_s2ram@22007fdc {
172- compatible = "zephyr,memory-region", "mmio-sram";
173- reg = <0x22007fdc 4>;
174- zephyr,memory-region = "mcuboot_s2ram_context";
175- };
176-
177- /* S2RAM cpu context RAM allocation */
178- pm_s2ram: cpuapp_s2ram@22007fe0 {
179- compatible = "zephyr,memory-region", "mmio-sram";
180- reg = <0x22007fe0 32>;
181- zephyr,memory-region = "pm_s2ram_context";
182- };
171+ /* run-time common mcuboot S2RAM support section */
172+ mcuboot_s2ram: cpuapp_s2ram@22007fdc {
173+ compatible = "zephyr,memory-region", "mmio-sram";
174+ reg = <0x22007fdc 4>;
175+ zephyr,memory-region = "mcuboot_s2ram_context";
176+ };
177+
178+ /* temporary stack for S2RAM resume logic */
179+ pm_s2ram_stack: cpuapp_s2ram_stack@22007fd0 {
180+ compatible = "zephyr,memory-region", "mmio-sram";
181+ reg = <0x22007fd0 16>;
182+ zephyr,memory-region = "pm_s2ram_stack";
183+ };
184+
185+ /* S2RAM cpu context RAM allocation */
186+ pm_s2ram: cpuapp_s2ram@22007fe0 {
187+ compatible = "zephyr,memory-region", "mmio-sram";
188+ reg = <0x22007fe0 32>;
189+ zephyr,memory-region = "pm_s2ram_context";
190+ };
183191 };
184- };
192+ };
185193
186194 Memory and cache optimization recommendations
187195=============================================
0 commit comments