arm64: dts: qcom: msm8998*: Keep MMCC & MMSS_SMMU enabled by default
authorKonrad Dybcio <konrad.dybcio@somainline.org>
Sat, 30 Apr 2022 16:23:48 +0000 (18:23 +0200)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 27 Jun 2022 20:58:45 +0000 (15:58 -0500)
MMCC is a component of the SoC that should always be configured. It was kept
off due to misconfiguration on clamshell machines. Keep it disabled on these
ones and enable it by default on all the others.

Exactly the same story applies to MMSS_SMMU, which directly depends on MMCC.

Do note, that if a platform doesn't use neither EFIFB (only applies to WoA
devices in this case) or simplefb (applies to precisely 2 msm8998 devices
as of this commit), this will not cause any harm.

Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220430162353.607709-10-konrad.dybcio@somainline.org
arch/arm64/boot/dts/qcom/msm8998-clamshell.dtsi
arch/arm64/boot/dts/qcom/msm8998-fxtec-pro1.dts
arch/arm64/boot/dts/qcom/msm8998-sony-xperia-yoshino.dtsi
arch/arm64/boot/dts/qcom/msm8998.dtsi

index a8756bcdad3b00c8966e401d9d04baf9fe8154e1..7928b819747498d5f3e8ceeeb40c00179b3cbde8 100644 (file)
        cpu-idle-states = <&BIG_CPU_SLEEP_1>;
 };
 
+/*
+ * If EFIFB is used, enabling MMCC will cause important MMSS clocks to be cleaned
+ * up, because as far as Linux is concerned - they are unused. Disable it by default
+ * on clamshell devices, as it will break them, unless either simplefb is configured to
+ * hold a vote for these clocks, or panels are brought up properly, using drm/msm.
+ */
+&mmcc {
+       status = "disabled";
+};
+
+&mmss_smmu {
+       status = "disabled";
+};
+
 &pcie0 {
        status = "okay";
 };
index 33f641ca6c94f6732c2292dfedcd57c0ba8b6117..56bcd4a1ddb1676120748cb2a945d75027969e42 100644 (file)
        };
 };
 
-&mmcc {
-       status = "okay";
-};
-
-&mmss_smmu {
-       status = "okay";
-};
-
 &pm8998_gpio {
        vol_up_pin_a: vol-up-active {
                pins = "gpio6";
index fb48c275c53bc44cfe0506d30c6b83fb6eebc55d..aa7932428333c6883ec356b79c11eb2c2a60acbf 100644 (file)
        regulator-soft-start;
 };
 
-&mmcc {
-       status = "ok";
-};
-
-&mmss_smmu {
-       status = "ok";
-};
-
 &pm8005_regulators {
        /* VDD_GFX supply */
        pm8005_s1: s1 {
index 514c203cc47374ac6a1fbc45027cd98be65a1c6c..7d9bf3a01242684af4276c694a9c0cab490c7713 100644 (file)
                        #reset-cells = <1>;
                        #power-domain-cells = <1>;
                        reg = <0xc8c0000 0x40000>;
-                       status = "disabled";
 
                        clock-names = "xo",
                                      "gpll0",
                                 <&mmcc BIMC_SMMU_AXI_CLK>;
                        clock-names = "iface-mm", "iface-smmu",
                                      "bus-mm", "bus-smmu";
-                       status = "disabled";
 
                        #global-interrupts = <0>;
                        interrupts =