From: "Matti Lehtimäki" <matti.lehtimaki@gmail.com>
To: linux-arm-msm@vger.kernel.org
Cc: ~postmarketos/upstreaming@lists.sr.ht,
phone-devel@vger.kernel.org,
"Matti Lehtimäki" <matti.lehtimaki@gmail.com>,
"Andy Gross" <agross@kernel.org>,
"Bjorn Andersson" <andersson@kernel.org>,
"Konrad Dybcio" <konrad.dybcio@linaro.org>,
"Rob Herring" <robh+dt@kernel.org>,
"Krzysztof Kozlowski" <krzysztof.kozlowski+dt@linaro.org>,
"Conor Dooley" <conor+dt@kernel.org>,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH 5/5] ARM: dts: qcom: apq8026-samsung-matisse-wifi: Add reboot-mode node
Date: Sat, 20 May 2023 00:09:02 +0300 [thread overview]
Message-ID: <20230519210903.117030-6-matti.lehtimaki@gmail.com> (raw)
In-Reply-To: <20230519210903.117030-1-matti.lehtimaki@gmail.com>
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>
---
.../arm/boot/dts/qcom-apq8026-samsung-matisse-wifi.dts | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/arch/arm/boot/dts/qcom-apq8026-samsung-matisse-wifi.dts b/arch/arm/boot/dts/qcom-apq8026-samsung-matisse-wifi.dts
index 91b860e24681..a05c41191efd 100644
--- a/arch/arm/boot/dts/qcom-apq8026-samsung-matisse-wifi.dts
+++ b/arch/arm/boot/dts/qcom-apq8026-samsung-matisse-wifi.dts
@@ -279,6 +279,16 @@ touchscreen@4a {
};
};
+&imem {
+ status = "okay";
+
+ reboot-mode {
+ mode-bootloader = <0x77665500>;
+ mode-normal = <0x77665501>;
+ mode-recovery = <0x77665502>;
+ };
+};
+
&rpm_requests {
regulators {
compatible = "qcom,rpm-pm8226-regulators";
--
2.34.1
next prev parent reply other threads:[~2023-05-19 21:09 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-19 21:08 [PATCH 0/5] PMU, rpm-stats and IMEM for MSM8226 Matti Lehtimäki
2023-05-19 21:08 ` [PATCH 1/5] dt-bindings: sram: qcom,imem: Document MSM8226 Matti Lehtimäki
2023-05-20 9:59 ` Conor Dooley
2023-05-19 21:08 ` [PATCH 2/5] ARM: dts: qcom: msm8226: Add PMU node Matti Lehtimäki
2023-05-19 23:22 ` Konrad Dybcio
2023-05-19 21:09 ` [PATCH 3/5] ARM: dts: qcom: msm8226: Add rpm-stats device node Matti Lehtimäki
2023-05-19 23:24 ` Konrad Dybcio
2023-05-19 21:09 ` [PATCH 4/5] ARM: dts: qcom: msm8226: Add IMEM node Matti Lehtimäki
2023-05-19 23:25 ` Konrad Dybcio
2023-05-19 23:26 ` Konrad Dybcio
2023-05-19 21:09 ` Matti Lehtimäki [this message]
2023-05-19 23:27 ` [PATCH 5/5] ARM: dts: qcom: apq8026-samsung-matisse-wifi: Add reboot-mode node Konrad Dybcio
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230519210903.117030-6-matti.lehtimaki@gmail.com \
--to=matti.lehtimaki@gmail.com \
--cc=agross@kernel.org \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=konrad.dybcio@linaro.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=phone-devel@vger.kernel.org \
--cc=robh+dt@kernel.org \
--cc=~postmarketos/upstreaming@lists.sr.ht \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).