linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dts: arm64: qcom: sdm845-oneplus-*: add msm-id and board-id
@ 2021-12-09 22:59 Caleb Connolly
  2021-12-15 22:27 ` (subset) " Bjorn Andersson
  0 siblings, 1 reply; 2+ messages in thread
From: Caleb Connolly @ 2021-12-09 22:59 UTC (permalink / raw)
  To: caleb.connolly, amit.pundir, Andy Gross, Bjorn Andersson,
	Rob Herring, linux-arm-msm, devicetree, phone-devel
  Cc: sumit.semwal, john.stultz

The msm-id and board-id can be used to select the correct dtb when
multiple are provided to the bootloader.

Multiple DTBs can be provided on sdm845 devices using boot image header
v1 by appending them all to the kernel image before creating the boot
image. The bootloader then selects them like this:

Best match DTB tags 321/00000008/0x00000000/20001/20014/20115/20018/0/(offset)0x79998E27/(size)0x000173CD
Using pmic info 0x20014/0x20115/0x20018/0x0 for device 0x20014/0x20115/0x20018/0x0

Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
---
 arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dts | 2 ++
 arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dts    | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dts b/arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dts
index 73493079d13e..5936b47dee5f 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dts
+++ b/arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dts
@@ -11,6 +11,8 @@ / {
 	model = "OnePlus 6";
 	compatible = "oneplus,enchilada", "qcom,sdm845";
 	chassis-type = "handset";
+	qcom,msm-id = <0x141 0x20001>;
+	qcom,board-id = <8 0 17819 22>;
 };
 
 &display_panel {
diff --git a/arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dts b/arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dts
index b63ebc48f62f..78a0b99144e6 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dts
+++ b/arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dts
@@ -11,6 +11,8 @@ / {
 	model = "OnePlus 6T";
 	compatible = "oneplus,fajita", "qcom,sdm845";
 	chassis-type = "handset";
+	qcom,msm-id = <0x141 0x20001>;
+	qcom,board-id = <8 0 18801 41>;
 };
 
 &display_panel {
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: (subset) [PATCH] dts: arm64: qcom: sdm845-oneplus-*: add msm-id and board-id
  2021-12-09 22:59 [PATCH] dts: arm64: qcom: sdm845-oneplus-*: add msm-id and board-id Caleb Connolly
@ 2021-12-15 22:27 ` Bjorn Andersson
  0 siblings, 0 replies; 2+ messages in thread
From: Bjorn Andersson @ 2021-12-15 22:27 UTC (permalink / raw)
  To: amit.pundir, linux-arm-msm, phone-devel, Rob Herring, devicetree,
	Andy Gross, Caleb Connolly
  Cc: sumit.semwal, john.stultz

On Thu, 9 Dec 2021 22:59:38 +0000, Caleb Connolly wrote:
> The msm-id and board-id can be used to select the correct dtb when
> multiple are provided to the bootloader.
> 
> Multiple DTBs can be provided on sdm845 devices using boot image header
> v1 by appending them all to the kernel image before creating the boot
> image. The bootloader then selects them like this:
> 
> [...]

Applied, thanks!

[1/1] dts: arm64: qcom: sdm845-oneplus-*: add msm-id and board-id
      commit: 8e6de09c716f37dbdc8181e803455603c89c4bd2

Best regards,
-- 
Bjorn Andersson <bjorn.andersson@linaro.org>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-12-15 22:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-09 22:59 [PATCH] dts: arm64: qcom: sdm845-oneplus-*: add msm-id and board-id Caleb Connolly
2021-12-15 22:27 ` (subset) " Bjorn Andersson

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).