]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ARM: dts: msm8974-FP2: add reboot-mode node
authorLuca Weiss <luca@z3ntu.xyz>
Sat, 13 Jul 2019 15:48:06 +0000 (17:48 +0200)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Sat, 5 Oct 2019 06:10:15 +0000 (23:10 -0700)
This enables userspace to signal the bootloader to go into the
bootloader or recovery mode.

The magic values can be found in both the downstream kernel and the LK
kernel (bootloader).

Reviewed-by: Brian Masney <masneyb@onstation.org>
Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts
arch/arm/boot/dts/qcom-msm8974.dtsi

index dfab2518df603f56ecb96019f3b8cfeddd3fded0..26160394d717a1f84ee32e7cd589047ba2ed700a 100644 (file)
                        };
                };
        };
+
+       imem@fe805000 {
+               status = "okay";
+
+               reboot-mode {
+                       mode-normal     = <0x77665501>;
+                       mode-bootloader = <0x77665500>;
+                       mode-recovery   = <0x77665502>;
+               };
+       };
 };
 
 &spmi_bus {
index 369e58f64145da6bd1b011007a13af336fd8a496..39a3a1d638895717ecabf6969621c0e735606e7d 100644 (file)
                                clock-names = "iface";
                        };
                };
+
+               imem@fe805000 {
+                       status = "disabled";
+                       compatible = "syscon", "simple-mfd";
+                       reg = <0xfe805000 0x1000>;
+
+                       reboot-mode {
+                               compatible = "syscon-reboot-mode";
+                               offset = <0x65c>;
+                       };
+               };
        };
 
        smd {