Retained Memory for nrf5340 cpu app

Hello,

We have an nrf522840 board using retained memory feature following this sample and using the NRF_RETENTION setting: 

https://github.com/zephyrproject-rtos/zephyr/tree/191d38dee89dd1e03e525ec2d24a8a1210751517/samples/boards/nordic/system_off

We are upgrading to use the nrf5340 chip and trying to adapt the code. We are setting to use RETAINED_MEM but are having trouble with retainedmemory device not being  defined. 

This is the line throwing an error: const static struct device *retained_mem_device = DEVICE_DT_GET(DT_ALIAS(retainedmemdevice));

The sample has some definitions of the device for the nrf54 boards, but none for the nrf53. 

Appreciate any pointers. We are building using the nrf5340ns.

Related