Hi,
I wanna enter the system on sleep to save the power up to 10uA(about tens of A). I am using nrf52840-dk with SPI LCD and some GPIOs in zephyr. Also I want to do DEVICE_POWER_MANAGEMENT. I can turn off the power of LCD when calls device_set_power_state with DEVICE_PM_SUSPEND_STATE, but if I call the device_set_power_state(data->spi_dev, DEVICE_PM_SUSPEND_STATE, NULL, NULL) in lcd driver, i got the os error. Is there any special way to enter/wake system on sleep safely?