]> git.itanic.dy.fi Git - linux-stable/commitdiff
arm64: dts: qcom: sc7280: only enable IPA for boards with a modem
authorAlex Elder <elder@linaro.org>
Sat, 24 Dec 2022 00:21:26 +0000 (18:21 -0600)
committerBjorn Andersson <andersson@kernel.org>
Thu, 29 Dec 2022 16:52:18 +0000 (10:52 -0600)
IPA is only needed on a platform if it includes a modem, and not all
SC7280 SoC variants do.  The file "sc7280-herobrine-lte-sku.dtsi" is
used to encapsulate definitions related to Chrome OS SC7280 devices
where a modem is present, and that's the proper place for the IPA
node to be enabled.

Currently IPA is enabled in "sc7280-idp.dtsi", which is included by
DTS files for Qualcomm reference platforms (all of which include the
modem).  That also includes "sc7280-herobrine-lte-sku.dtsi", so
enabling IPA there would make it unnecessary for "sc7280-idp.dtsi"
to enable it.

The only other place IPA is enabled is "sc7280-qcard.dtsi".
That file is included only by "sc7280-herobrine.dtsi", which
is (eventually) included only by these top-level DTS files:
  sc7280-herobrine-crd.dts
  sc7280-herobrine-herobrine-r1.dts
  sc7280-herobrine-evoker.dts
  sc7280-herobrine-evoker-lte.dts
  sc7280-herobrine-villager-r0.dts
  sc7280-herobrine-villager-r1.dts
  sc7280-herobrine-villager-r1-lte.dts
All of but two of these include "sc7280-herobrine-lte-sku.dtsi", and
for those cases, enabling IPA there means there is no need for it to
be enabled in "sc7280-qcard.dtsi".

The two remaining cases will no longer enable IPA as a result of
this change:
  sc7280-herobrine-evoker.dts
  sc7280-herobrine-villager-r1.dts
Both of these have "lte" counterparts, and are meant to represent
board variants that do *not* have a modem.

This is exactly the desired configuration.

Signed-off-by: Alex Elder <elder@linaro.org>
Reviewed-by: Sibi Sankar <quic_sibis@quicinc.com>
Tested-by: Sibi Sankar <quic_sibis@quicinc.com>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221224002126.1518552-1-elder@linaro.org
arch/arm64/boot/dts/qcom/sc7280-herobrine-lte-sku.dtsi
arch/arm64/boot/dts/qcom/sc7280-idp.dtsi
arch/arm64/boot/dts/qcom/sc7280-qcard.dtsi

index bf522a64b172475aac3a7a4fd4c6a9749c0f698b..efd5131645017cdeaaf1f2d7498d351ecbb95b42 100644 (file)
@@ -20,6 +20,11 @@ mba_mem: memory@9c700000 {
        };
 };
 
+&ipa {
+       modem-init;
+       status = "okay";
+};
+
 &remoteproc_mpss {
        compatible = "qcom,sc7280-mss-pil";
 
index deac91205831a3e46a92893f095387e3ae2c67d4..fa10dddadbb0ce80e85b427a1467a842acc4e91c 100644 (file)
@@ -377,11 +377,6 @@ &gpi_dma1 {
        status = "okay";
 };
 
-&ipa {
-       status = "okay";
-       modem-init;
-};
-
 &lpass_cpu {
        status = "okay";
 
index df49564ae6dc110d688854c799d810e614efa526..cd6ee84b36fd47d0715025427ef2143444df4968 100644 (file)
@@ -336,11 +336,6 @@ vreg_bob: bob {
 
 /* ADDITIONS TO NODES DEFINED IN PARENT DEVICE TREE FILES */
 
-&ipa {
-       status = "okay";
-       modem-init;
-};
-
 &lpass_va_macro {
        vdd-micb-supply = <&vreg_bob>;
 };