rockchip: rk356x: Enable poweroff command
v2 cover rockchip: rk356x: Enable poweroff command
This series enable CMD_POWEROFF on a few RK356x boards that have a power button wired to PMIC pwron.
The poweroff command is useful for testing and make it possible to poweroff the device from U-Boot and have it turn back on when the power button is pressed.
First patch ensure sysreset poweroff implementation is used. Second patch enable poweroff cmd on a few RK356x boards.
Changes in v2:
- Split patch
- Collect r-b tag
Jonas Karlman (2):
power: pmic: rk8xx: Use sysreset implementation of the poweroff
command
rockchip: rk356x: Enable poweroff command
configs/quartz64-a-rk3566_defconfig | 1 + configs/quartz64-b-rk3566_defconfig | 1 + configs/rock-3a-rk3568_defconfig | 1 + configs/soquartz-model-a-rk3566_defconfig | 1 + drivers/power/pmic/Kconfig | 1 + 5 files changed, 5 insertions(+)
Signature · 1 line
2.41.0
PATCH v2 1/2 power: pmic: rk8xx: Use sysreset implementation of the poweroff command
Select SYSRESET_CMD_POWEROFF to use the sysreset implementation of the poweroff command when PMIC_RK8XX is enabled.
---
v2:
- Split patch
- Collect r-b tag
drivers/power/pmic/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/power/pmic/Kconfig +1 -0
@@ -233,6 +233,7 @@ config PMIC_QCOM config PMIC_RK8XX bool "Enable support for Rockchip PMIC RK8XX" + select SYSRESET_CMD_POWEROFF if SYSRESET && CMD_POWEROFF ---help--- The Rockchip RK808 PMIC provides four buck DC-DC convertors, 8 LDOs, an RTC and two low Rds (resistance (drain to source)) switches. It is
Signature · 1 line
2.41.0
Re: [PATCH v2 1/2] power: pmic: rk8xx: Use sysreset implementation of the poweroff command
Quoted 5 lines · Jonas Karlman
Select
SYSRESET_CMD_POWEROFFto use the sysreset implementation of the poweroff command whenPMIC_RK8XXis enabled.Signed-off-by Jonas Karlman <[email protected]>Reviewed-by Simon Glass <[email protected]>
Thanks,
- Kever
Quoted 20 lines
---
v2:
- Split patch
- Collect r-b tagdrivers/power/pmic/Kconfig | 1 + 1 file changed, 1 insertion(+)drivers/power/pmic/Kconfig +1
-0@@ -233,6 +233,7 @@ config PMIC_QCOM config PMIC_RK8XX bool "Enable support for Rockchip PMIC RK8XX" + select SYSRESET_CMD_POWEROFF if SYSRESET && CMD_POWEROFF ---help--- The Rockchip RK808 PMIC provides four buck DC-DC convertors, 8 LDOs, an RTC and two low Rds (resistance (drain to source)) switches. It is
PATCH v2 2/2 rockchip: rk356x: Enable poweroff command
In reply to Jonas KarlmanWith PMIC_RK8XX, SYSRESET and CMD_POWEROFF options enabled it is possible to power down a board using the poweroff command and turn the board back on using a power button.
Enable the poweroff command on RK356x boards that have a button wired to PMIC pwron.
---
v2:
- Split patch
- Collect r-b tag
configs/quartz64-a-rk3566_defconfig | 1 + configs/quartz64-b-rk3566_defconfig | 1 + configs/rock-3a-rk3568_defconfig | 1 + configs/soquartz-model-a-rk3566_defconfig | 1 + 4 files changed, 4 insertions(+)
configs/quartz64-a-rk3566_defconfig +1 -0
@@ -52,6 +52,7 @@ CONFIG_CMD_GPT=y CONFIG_CMD_I2C=y CONFIG_CMD_MMC=y CONFIG_CMD_PCI=y +CONFIG_CMD_POWEROFF=y CONFIG_CMD_USB=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_PMIC=y
configs/quartz64-b-rk3566_defconfig +1 -0
@@ -50,6 +50,7 @@ CONFIG_CMD_GPT=y CONFIG_CMD_I2C=y CONFIG_CMD_MMC=y CONFIG_CMD_PCI=y +CONFIG_CMD_POWEROFF=y CONFIG_CMD_USB=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_PMIC=y
configs/rock-3a-rk3568_defconfig +1 -0
@@ -49,6 +49,7 @@ CONFIG_CMD_GPT=y CONFIG_CMD_I2C=y CONFIG_CMD_MMC=y CONFIG_CMD_PCI=y +CONFIG_CMD_POWEROFF=y CONFIG_CMD_USB=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_PMIC=y
configs/soquartz-model-a-rk3566_defconfig +1 -0
@@ -43,6 +43,7 @@ CONFIG_CMD_GPT=y CONFIG_CMD_I2C=y CONFIG_CMD_MMC=y CONFIG_CMD_PCI=y +CONFIG_CMD_POWEROFF=y CONFIG_CMD_USB=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_PMIC=y
Signature · 1 line
2.41.0
Quoted 9 lines · Jonas Karlman
With
PMIC_RK8XX, SYSRESET andCMD_POWEROFFoptions enabled it is possible to power down a board using the poweroff command and turn the board back on using a power button.Enable the poweroff command on RK356x boards that have a button wired to PMIC pwron.
Signed-off-by Jonas Karlman <[email protected]>Reviewed-by Simon Glass <[email protected]>
Thanks,
- Kever
Quoted 59 lines
---
v2:
- Split patch
- Collect r-b tagconfigs/quartz64-a-rk3566_defconfig | 1 + configs/quartz64-b-rk3566_defconfig | 1 + configs/rock-3a-rk3568_defconfig | 1 + configs/soquartz-model-a-rk3566_defconfig | 1 + 4 files changed, 4 insertions(+)configs/quartz64-a-rk3566_defconfig +1
-0@@ -52,6 +52,7 @@ CONFIG_CMD_GPT=y CONFIG_CMD_I2C=y CONFIG_CMD_MMC=y CONFIG_CMD_PCI=y +CONFIG_CMD_POWEROFF=y CONFIG_CMD_USB=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_PMIC=yconfigs/quartz64-b-rk3566_defconfig +1
-0@@ -50,6 +50,7 @@ CONFIG_CMD_GPT=y CONFIG_CMD_I2C=y CONFIG_CMD_MMC=y CONFIG_CMD_PCI=y +CONFIG_CMD_POWEROFF=y CONFIG_CMD_USB=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_PMIC=yconfigs/rock-3a-rk3568_defconfig +1
-0@@ -49,6 +49,7 @@ CONFIG_CMD_GPT=y CONFIG_CMD_I2C=y CONFIG_CMD_MMC=y CONFIG_CMD_PCI=y +CONFIG_CMD_POWEROFF=y CONFIG_CMD_USB=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_PMIC=yconfigs/soquartz-model-a-rk3566_defconfig +1
-0@@ -43,6 +43,7 @@ CONFIG_CMD_GPT=y CONFIG_CMD_I2C=y CONFIG_CMD_MMC=y CONFIG_CMD_PCI=y +CONFIG_CMD_POWEROFF=y CONFIG_CMD_USB=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_PMIC=y