Message ID | 20230520121933.15533-5-matti.lehtimaki@gmail.com |
---|---|
State | Accepted |
Commit | 9cf9832d4f5f7659159a036ccae2e10f6eeadf5d |
Headers | show |
Series | [v2,1/4] dt-bindings: sram: qcom,imem: Document MSM8226 | expand |
diff --git a/arch/arm/boot/dts/qcom-msm8226.dtsi b/arch/arm/boot/dts/qcom-msm8226.dtsi index 8644540f5aae..284b7c666fea 100644 --- a/arch/arm/boot/dts/qcom-msm8226.dtsi +++ b/arch/arm/boot/dts/qcom-msm8226.dtsi @@ -641,6 +641,20 @@ smd-edge { 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 {
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> --- Changes in v2: - Always enable IMEM node - Move reboot-mode magic numbers to platform, those should be always the same --- arch/arm/boot/dts/qcom-msm8226.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+)