This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Zephyr power management issues

Dear Nordic, 

As per power management, could you please suggest any thoughts for following:

We have two ICs on the board connected to nRF52840: 6-DOF sensor (over SPI) and flash mem (over QSPI). Both of them are powered from one external LDO regulator controlled by GPIO output, and there is a 'regulator' node has been defined for it. 

1. 'nordic,qspi-nor' device node model doesn't include 'vin-supply' parameter, how we could connect it to regulator to take automatic control over QSPI flash power?

2. When accessing 6-DOF sensor, we need to take manual control over it's powering, and - when it is not in work - it should be disabled completely, including SPI lines. For now, when we turn off the regulator manually, the SPI lines stays active and give parasitic supply to the sensor and increase overall consumption. What approach is preferred to implement here? Something like that? (https://github.com/zephyrproject-rtos/zephyr/blob/main/samples/subsys/pm/device_pm/src/main.c)

Parents
  • Hi Dmitry

    1. I'm not sure I understand the question. It sounds like you don't have a Vin on the QSPI device you're using, but I find that hard to believe. How do you power the QSPI device?

    2. Yes, I think the power managemer in the nRFConnect SDK should be able to handle power management on the chip. You could alternatively set these SPI lines low so they don't draw any current at all during this time.

    Best regards,
    Simon

Reply
  • Hi Dmitry

    1. I'm not sure I understand the question. It sounds like you don't have a Vin on the QSPI device you're using, but I find that hard to believe. How do you power the QSPI device?

    2. Yes, I think the power managemer in the nRFConnect SDK should be able to handle power management on the chip. You could alternatively set these SPI lines low so they don't draw any current at all during this time.

    Best regards,
    Simon

Children
  • Hi Simonr, 

    1. Of course it has power :) We have GPIO-controlled LDO 3.6->1.8V on the board and both QSPI flash and 6-DOF sensor are powered from this LDO. For good battery life it's necessary to turn off LDO when devices are not in use (when disconnected from Bluetooth central). So, for example, 'jedec,spi-nor' device has 'vin-supply' property, why don't the 'nordic,qspi-nor' have? How it can be controlled? 

    2. Could you please suggest proper example / description we shoud consider to control powering of the sensor?

Related