Dear, I'm developing on nordic 52840 with ncs2.6.1.
I found that the Current will reach to 600+uA in k_sleep state by enable SPI in device_tree and if i disable the spi, the current will increase to 100uA.
I have try to enable CONFIG_PM_DEVICE(As far as i know that CONFIG_PM is not support by nrf52840 in ncs2.6.1) and call the function
pm_device_action_run(spi1_dev, PM_DEVICE_ACTION_SUSPEND)
&spi1 {
compatible = "nordic,nrf-spim";
status = "okay";
pinctrl-0 = <&spi1_default>;
pinctrl-1 = <&spi1_sleep>;
pinctrl-names = "default", "sleep";
cs-gpios = <&gpio0 14 GPIO_ACTIVE_LOW>, <&gpio0 17 GPIO_ACTIVE_LOW>;
imu: imu@0 {
compatible = "imu";
lable = "imu";
reg = <0>;
};
sdcard: sdcard@1 {
compatible = "sdcard";
reg = <1>;
lable = "sdcard";
};
status = "okay";
};