Re: [PATCH v2 3/3] ARM: dts: qcom-msm8916-samsung-fortuna: Include dts from arm64

From: Konrad Dybcio
Date: Sat Aug 26 2023 - 08:04:25 EST


On 1.08.2023 13:22, Lin, Meng-Bo wrote:
> After adding all necessary support for MSM8916 SMP/cpuidle without PSCI
> on ARM32, build fortunaltezt and heatqlte device trees from the arm64
> tree together with the ARM32 include to allow booting this device on ARM32.
>
> The approach to include device tree files from other architectures is
> inspired from e.g. the Raspberry Pi (bcm2711-rpi-4-b.dts) where this is
> used to build the device tree for both ARM32 and ARM64.
>
> [Add workaround to TSENS problem]
> Co-developed-by: Stephan Gerhold <stephan@xxxxxxxxxxx>
> Signed-off-by: Stephan Gerhold <stephan@xxxxxxxxxxx>
> [Add heatqlte]
> Co-developed-by: Gareth Peoples <mail@xxxxxxxxx>
> Signed-off-by: Gareth Peoples <mail@xxxxxxxxx>
> Signed-off-by: Lin, Meng-Bo <linmengbo0689@xxxxxxxxxxxxxx>
> ---
> arch/arm/boot/dts/qcom-msm8916-samsung-fortunaltezt.dts | 8 ++++++++
> arch/arm/boot/dts/qcom-msm8916-samsung-heatqlte.dts | 8 ++++++++
> arch/arm/boot/dts/qcom/Makefile | 2 ++
> 3 files changed, 18 insertions(+)
> create mode 100644 arch/arm/boot/dts/qcom-msm8916-samsung-fortunaltezt.dts
> create mode 100644 arch/arm/boot/dts/qcom-msm8916-samsung-heatqlte.dts
>
> diff --git a/arch/arm/boot/dts/qcom-msm8916-samsung-fortunaltezt.dts b/arch/arm/boot/dts/qcom-msm8916-samsung-fortunaltezt.dts
> new file mode 100644
> index 000000000000..b9704fea7029
> --- /dev/null
> +++ b/arch/arm/boot/dts/qcom-msm8916-samsung-fortunaltezt.dts
> @@ -0,0 +1,8 @@
> +// SPDX-License-Identifier: GPL-2.0-only
> +#include "arm64/qcom/msm8916-samsung-fortunaltezt.dts"
> +#include "qcom-msm8916-smp.dtsi"
> +
> +&tsens {
> + /* FIXME: The device crashes when accessing the SROT region for some reason */
> + status = "disabled";
All of SROT, or just e.g. TSENS_EN?

If only the headswitch is inaccessible, you may still reach
the hardware if it's been turned on from bl

Konrad