arm64: dts: qcom: sc7180: Add EL2 overlay for WoA devices
WoA devices using sc7180 use android firmware to boot, which notably includes QHEE hypervisor. This means that, so far, Linux-based OS could only boot in EL1 on those devices. However Windows can replace QHEE upon boot with it's own hypervisor, and with the use of tools such as "slbounce", it's possible to do the same for Linux-based OS, in which case some modifications to the DT are necessary to facilitate the absence of QHEE services. Add a EL2-specific DT overlay and apply it to sc7180 WoA devices to create -el2.dtb for each of them alongside "normal" dtb. Signed-off-by: Nikita Travkin <nikita@trvn.ru> Link: https://lore.kernel.org/r/20250503-sc-el2-overlays-v2-1-24e9b4572e15@trvn.ru Signed-off-by: Bjorn Andersson <andersson@kernel.org>
This commit is contained in:
committed by
Bjorn Andersson
parent
635d0c8edf
commit
0d95f64be4
@@ -138,7 +138,8 @@ dtb-$(CONFIG_ARCH_QCOM) += sa8295p-adp.dtb
|
||||
dtb-$(CONFIG_ARCH_QCOM) += sa8540p-ride.dtb
|
||||
dtb-$(CONFIG_ARCH_QCOM) += sa8775p-ride.dtb
|
||||
dtb-$(CONFIG_ARCH_QCOM) += sa8775p-ride-r3.dtb
|
||||
dtb-$(CONFIG_ARCH_QCOM) += sc7180-acer-aspire1.dtb
|
||||
sc7180-acer-aspire1-el2-dtbs := sc7180-acer-aspire1.dtb sc7180-el2.dtbo
|
||||
dtb-$(CONFIG_ARCH_QCOM) += sc7180-acer-aspire1.dtb sc7180-acer-aspire1-el2.dtb
|
||||
dtb-$(CONFIG_ARCH_QCOM) += sc7180-idp.dtb
|
||||
dtb-$(CONFIG_ARCH_QCOM) += sc7180-trogdor-coachz-r1.dtb
|
||||
dtb-$(CONFIG_ARCH_QCOM) += sc7180-trogdor-coachz-r1-lte.dtb
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
/*
|
||||
* sc7180 specific modifications required to boot in EL2.
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/* We can't and don't need to use zap shader in EL2 as linux can zap the gpu on it's own. */
|
||||
&gpu {
|
||||
zap-shader {
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
/* Venus can be used in EL2 if booted similarly to ChromeOS devices. */
|
||||
&venus {
|
||||
video-firmware {
|
||||
iommus = <&apps_smmu 0x0c42 0x0>;
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user