Incorporating External Spi Flash vin-supply/supply-gpio

Hi

I'm currently trying to set up an external flash (s25FL064L) that is power controlled by a GPIO pin switching a generic Mosfet to power the flash only when needed. I'm using a NRF9160 as the MCU. 

While there is either the SUPPLY node in the compatible Jedec SPI-NOR flash resulting in a supply-gpio attribute in the devicetree, which doesn't seem to be be turning the gpio pin on itself. There is also a vin-supply attribute that only accepts a regulator node which I was not able to correctly configure to just switch the corresponding gpio pin. 

Has anyone of you any experience in a related problem or can help me finding out how to properly solve my problem ? 

Parents Reply Children
No Data
Related