Hi everyone.
Has anyone been able to put the luckfox pico ultra W into the sleep mode to consume less power? I've found PMU_PWR_CON register in RV1106 documentation, but I'm unable to write to it and I get segmentation fault everytime.
If anyone could share an example code how to put the board to low-power mode I'd be very grateful!
Sleep mode
Hello, sleep-related operations can be referred to viewtopic.php?t=1395&hilit=%E4%BC%91%E7%9C%A0, direct operation of registers to control the PMU should not be able to achieve sleep wake-up, the state before the system sleep is not saved, which may cause the wake-up failure
Thank you for the reply.
I've now been able to put my RV1106 to sleep following that forum.
However the board won't wake when I connect the GND and the GPIO1_A0 pin. I've appended the following to my .dts file:
I've had to reset the board to gain access to it, but that is not a viable solution to my problem.
I've been stuck on this step for way too long now. Do you maybe see anything that could be problematic?
I've now been able to put my RV1106 to sleep following that forum.
However the board won't wake when I connect the GND and the GPIO1_A0 pin. I've appended the following to my .dts file:
Code: Select all
/ {
gpio-keys {
compatible = "gpio-keys";
autorepeat;
pinctrl-names = "default";
pinctrl-0 = <&pwr_key>;
power-key {
gpios = <&gpio1 RK_PA0 GPIO_ACTIVE_HIGH>;
linux,code = <KEY_POWER>;
label ="GPIO Key Power";
debounce-interval = <100>;
wakeup-source;
};
};
};
&pinctrl {
buttons {
pwr_key:pwr-key{
rockchip,pins = <1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
};
I've been stuck on this step for way too long now. Do you maybe see anything that could be problematic?
There is no issue with your device tree configuration. Please check whether GPIO1 PA0 has been multiplexed for another function. Also, check the corresponding nodes under /proc/device-tree to see if they have been successfully registered.