Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: msm8974-FP2: add reboot-mode 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).

Reviewed-by: Brian Masney <masneyb@onstation.org>
Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>

authored by

Luca Weiss and committed by
Bjorn Andersson
b5273951 27fe0fc0

+21
+10
arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts
··· 338 338 }; 339 339 }; 340 340 }; 341 + 342 + imem@fe805000 { 343 + status = "okay"; 344 + 345 + reboot-mode { 346 + mode-normal = <0x77665501>; 347 + mode-bootloader = <0x77665500>; 348 + mode-recovery = <0x77665502>; 349 + }; 350 + }; 341 351 }; 342 352 343 353 &spmi_bus {
+11
arch/arm/boot/dts/qcom-msm8974.dtsi
··· 1217 1217 clock-names = "iface"; 1218 1218 }; 1219 1219 }; 1220 + 1221 + imem@fe805000 { 1222 + status = "disabled"; 1223 + compatible = "syscon", "simple-mfd"; 1224 + reg = <0xfe805000 0x1000>; 1225 + 1226 + reboot-mode { 1227 + compatible = "syscon-reboot-mode"; 1228 + offset = <0x65c>; 1229 + }; 1230 + }; 1220 1231 }; 1221 1232 1222 1233 smd {