On Sun, Jan 26, 2025 at 09:57:26PM +0100, Luca Weiss wrote: > Add a node for the modem remoteproc found on MSM8226. > > For the apq8026 smartwatches, delete the modem reserved-memory again > since they have very little RAM in the first place anyways, and all of > these devices don't have functional modem firmware anyways - these > watches don't even have GPS. > > Co-developed-by: Matti Lehtimäki <matti.lehtimaki@xxxxxxxxx> > Signed-off-by: Matti Lehtimäki <matti.lehtimaki@xxxxxxxxx> > Signed-off-by: Luca Weiss <luca@xxxxxxxxxxxx> > --- > .../boot/dts/qcom/qcom-apq8026-asus-sparrow.dts | 7 ++ > .../boot/dts/qcom/qcom-apq8026-huawei-sturgeon.dts | 7 ++ > arch/arm/boot/dts/qcom/qcom-apq8026-lg-lenok.dts | 7 ++ > .../dts/qcom/qcom-apq8026-samsung-milletwifi.dts | 2 + > .../qcom/qcom-msm8226-samsung-matisse-common.dtsi | 6 +- > arch/arm/boot/dts/qcom/qcom-msm8226.dtsi | 80 ++++++++++++++++++++++ > arch/arm/boot/dts/qcom/qcom-msm8926-htc-memul.dts | 2 + > 7 files changed, 109 insertions(+), 2 deletions(-) > > diff --git a/arch/arm/boot/dts/qcom/qcom-apq8026-asus-sparrow.dts b/arch/arm/boot/dts/qcom/qcom-apq8026-asus-sparrow.dts > index a2ca456012f1a070afc2805ae71ddbf6f5aac607..816b61ea504ee80d86dd4ccd1a15db687f6a91ff 100644 > --- a/arch/arm/boot/dts/qcom/qcom-apq8026-asus-sparrow.dts > +++ b/arch/arm/boot/dts/qcom/qcom-apq8026-asus-sparrow.dts > @@ -9,6 +9,8 @@ > #include "pm8226.dtsi" > > /delete-node/ &adsp_region; > +/delete-node/ &mba_region; > +/delete-node/ &mpss_region; > > / { > model = "ASUS ZenWatch 2"; > @@ -82,6 +84,11 @@ bluetooth { > }; > }; > > +/* No (useful) modem on this device */ > +&modem { > + /delete-property/ memory-region; > +}; Rather than putting /delete-node/ and /delete-property/ on all devices that do not need/use the modem, I think it would be cleaner if you make the remoteproc related reserved-memory status = "disabled" by default and enable it only where necessary together with the modem. The &modem itself is status = "disabled" by default, so it makes sense to use the same for the reserved memory as well. See e.g. the existing usage of this pattern for &mpss_mem/&wcnss_mem/&venus_mem/&mba_mem in msm8916.dtsi. Then you can drop the /delete-property/ here. It would be even nicer to use the dynamic allocation (size/alignment/alloc-ranges instead of reg), but I'm skeptical if this will work properly on such an old platform... Thanks, Stephan