Skip to content

Commit 1cf62e5

Browse files
FROMLIST: arm64: dts: qcom: monaco: Add EL2 overlay
All the Monaco IOT variants boards are using Gunyah hypervisor which means that, so far, Linux-based OS could only boot in EL1 on those devices. However, it is possible for us to boot Linux at EL2 on these devices [1]. When running under Gunyah, the remote processor firmware IOMMU streams are controlled by Gunyah. However, without Gunyah, the IOMMU is managed by the consumer of this DeviceTree. Therefore, describe the firmware streams for each remote processor. Add a EL2-specific DT overlay and apply it to Monaco IOT variant devices to create -el2.dtb for each of them alongside "normal" dtb. [1] https://docs.qualcomm.com/bundle/publicresource/topics/80-70020-4/boot-developer-touchpoints.html#uefi Link: https://lore.kernel.org/lkml/20260127-talos-el2-overlay-v2-2-b6a2266532c4@oss.qualcomm.com/ Signed-off-by: Mukesh Ojha <mukesh.ojha@oss.qualcomm.com>
1 parent 5efb88f commit 1cf62e5

2 files changed

Lines changed: 37 additions & 0 deletions

File tree

arch/arm64/boot/dts/qcom/Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ dtb-$(CONFIG_ARCH_QCOM) += lemans-evk-camx.dtb
4646

4747
dtb-$(CONFIG_ARCH_QCOM) += monaco-evk.dtb
4848

49+
monaco-evk-el2-dtbs := monaco-evk.dtb monaco-el2.dtbo
50+
51+
dtb-$(CONFIG_ARCH_QCOM) += monaco-evk-el2.dtb
52+
4953
monaco-evk-camera-imx577-dtbs := monaco-evk.dtb monaco-evk-camera-imx577.dtbo
5054
dtb-$(CONFIG_ARCH_QCOM) += monaco-evk-camera-imx577.dtb
5155
monaco-evk-camx-dtbs := monaco-evk.dtb monaco-evk-camx.dtbo
@@ -157,6 +161,10 @@ dtb-$(CONFIG_ARCH_QCOM) += qcs6490-rb3gen2-vision-mezzanine-camx.dtb
157161

158162
dtb-$(CONFIG_ARCH_QCOM) += qcs8300-ride.dtb
159163

164+
qcs8300-ride-el2-dtbs := qcs8300-ride.dtb monaco-el2.dtbo
165+
166+
dtb-$(CONFIG_ARCH_QCOM) += qcs8300-ride-el2.dtb
167+
160168
qcs8300-ride-camx-dtbs:= qcs8300-ride.dtb qcs8300-ride-camx.dtbo
161169

162170
dtb-$(CONFIG_ARCH_QCOM) += qcs8300-ride-camx.dtb
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// SPDX-License-Identifier: BSD-3-Clause
2+
/*
3+
* Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
4+
*
5+
* Monaco specific modifications required to boot in EL2.
6+
*/
7+
8+
/dts-v1/;
9+
/plugin/;
10+
11+
&gpu_zap_shader {
12+
status = "disabled";
13+
};
14+
15+
&iris {
16+
status = "disabled";
17+
};
18+
19+
&remoteproc_adsp {
20+
iommus = <&apps_smmu 0x2000 0x0>;
21+
};
22+
23+
&remoteproc_cdsp {
24+
iommus = <&apps_smmu 0x19c0 0x0400>;
25+
};
26+
27+
&remoteproc_gpdsp {
28+
iommus = <&apps_smmu 0x28a0 0x0>;
29+
};

0 commit comments

Comments
 (0)