summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShawn Guo <shawn.guo@linaro.org>2021-08-24 04:19:18 +0200
committerBjorn Andersson <bjorn.andersson@linaro.org>2021-09-25 00:56:33 +0200
commit36730a8f5f4561d4c3682dd3f310a2dbe6cf23f8 (patch)
treecce73e4dad1533a74b630dcc4bf61ec41194ce93
parentarm64: dts: qcom: sc7280: Add aliases for I2C and SPI (diff)
downloadlinux-36730a8f5f4561d4c3682dd3f310a2dbe6cf23f8.tar.xz
linux-36730a8f5f4561d4c3682dd3f310a2dbe6cf23f8.zip
arm64: dts: qcom: pm660: Add reboot mode support
It turns out that the pm660 PON is a GEN2 device. Update the compatible to "qcom,pm8998-pon" and add reboot mode support, so that devices can be rebooted into bootloader and recovery mode. Tested on Xiaomi Redmi Note 7 phone. While at it, drop the unnecessary newline between 'compatible' and 'reg' property. Signed-off-by: Shawn Guo <shawn.guo@linaro.org> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> Link: https://lore.kernel.org/r/20210824021918.17271-1-shawn.guo@linaro.org
-rw-r--r--arch/arm64/boot/dts/qcom/pm660.dtsi5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm64/boot/dts/qcom/pm660.dtsi b/arch/arm64/boot/dts/qcom/pm660.dtsi
index e847d7209afc..d0ef8a1675e2 100644
--- a/arch/arm64/boot/dts/qcom/pm660.dtsi
+++ b/arch/arm64/boot/dts/qcom/pm660.dtsi
@@ -49,9 +49,10 @@
};
pon: pon@800 {
- compatible = "qcom,pm8916-pon";
-
+ compatible = "qcom,pm8998-pon";
reg = <0x800>;
+ mode-bootloader = <0x2>;
+ mode-recovery = <0x1>;
pwrkey {
compatible = "qcom,pm8941-pwrkey";