Hello,
I have added a flash to my project. Unfortunately it is consuming a rather large amount of current (600uA). I am looking into setting the chip to dpd mode.
&spi1 { compatible = "nordic,nrf-spi"; status = "okay"; cs-gpios = < &gpio0 16 GPIO_ACTIVE_LOW >; pinctrl-0 = <&spi1_default>; pinctrl-1 = <&spi1_sleep>; pinctrl-names = "default", "sleep"; mx25v2033fzui: mx25v2033fzui@0 { compatible = "jedec,spi-nor"; label = "MX25V2033FZUI"; jedec-id = [c2 23 14]; reg = <0>; spi-max-frequency = <1000000>; wp-gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; size = <0x1000000>; has-dpd; t-enter-dpd = <10000>; t-exit-dpd = <35000>; }; }; &mx25v2033fzui{ partitions{ compatible="fixed-partitions"; #address-cells=<1>; #size-cells=<1>; slot1_partition: partition@0 { label = "image-1"; reg = <0x00000000 DT_SIZE_K(440)>; }; /** 6e000 == 440K */ lfs1_part: partition@6e000 { label = "storage"; reg = <0x6e000 DT_SIZE_K(584)>; }; }; };
Flash related KCONFIGs:
CONFIG_FLASH=y
CONFIG_FLASH_MAP=y
CONFIG_SPI_NOR_IDLE_IN_DPD=y
CONFIG_SPI=y
CONFIG_SPI_NOR=y
CONFIG_SPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096
Note: The flash IC is working no issues, just looking into low power.
Unfortunately, setting "CONFIG_SPI_NOR_IDLE_IN_DPD" did not work. Any other suggestions to look into?