aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMatti Lehtimäki <matti.lehtimaki@gmail.com>2023-05-20 15:19:33 +0300
committerBjorn Andersson <andersson@kernel.org>2023-05-30 07:54:19 -0700
commit9cf9832d4f5f7659159a036ccae2e10f6eeadf5d (patch)
tree1e8064fff22feb2fe0c1e3769c0703af961750a8
parentARM: dts: qcom: msm8226: Add rpm-stats device node (diff)
downloadwireguard-linux-9cf9832d4f5f7659159a036ccae2e10f6eeadf5d.tar.xz
wireguard-linux-9cf9832d4f5f7659159a036ccae2e10f6eeadf5d.zip
ARM: dts: qcom: msm8226: Add IMEM node
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). Signed-off-by: Matti Lehtimäki <matti.lehtimaki@gmail.com> Reviewed-by: Luca Weiss <luca@z3ntu.xyz> Signed-off-by: Bjorn Andersson <andersson@kernel.org> Link: https://lore.kernel.org/r/20230520121933.15533-5-matti.lehtimaki@gmail.com
-rw-r--r--arch/arm/boot/dts/qcom-msm8226.dtsi14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/qcom-msm8226.dtsi b/arch/arm/boot/dts/qcom-msm8226.dtsi
index dc706d5b185c..a3a9162e9c28 100644
--- a/arch/arm/boot/dts/qcom-msm8226.dtsi
+++ b/arch/arm/boot/dts/qcom-msm8226.dtsi
@@ -647,6 +647,20 @@
label = "lpass";
};
};
+
+ sram@fe805000 {
+ compatible = "qcom,msm8226-imem", "syscon", "simple-mfd";
+ reg = <0xfe805000 0x1000>;
+
+ reboot-mode {
+ compatible = "syscon-reboot-mode";
+ offset = <0x65c>;
+
+ mode-bootloader = <0x77665500>;
+ mode-normal = <0x77665501>;
+ mode-recovery = <0x77665502>;
+ };
+ };
};
timer {