1/ { 2 sram0@20007000 { 3 compatible = "zephyr,memory-region", "mmio-sram"; 4 reg = <0x20007000 DT_SIZE_K(4)>; 5 zephyr,memory-region = "RetainedMem"; 6 status = "okay"; 7 8 retainedmem0: retainedmem { 9 compatible = "zephyr,retained-ram"; 10 status = "okay"; 11 }; 12 }; 13 14 aliases { 15 retainedmemdevice = &retainedmem0; 16 }; 17}; 18 19&sram0 { 20 /* Shrink SRAM size to avoid overlap with retained memory region */ 21 reg = <0x20000000 DT_SIZE_K(28)>; 22}; 23