]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: qcom: kodiak: Add missing clock votes for lpass_tlmm
authorLuca Weiss <luca.weiss@fairphone.com>
Fri, 9 Jan 2026 15:14:34 +0000 (16:14 +0100)
committerBjorn Andersson <andersson@kernel.org>
Fri, 9 Jan 2026 15:52:13 +0000 (09:52 -0600)
Without the correct clock votes set, we may be hitting a synchronous
external abort error when touching the lpi registers.

  Internal error: synchronous external abort: 0000000096000010 [#1]  SMP
  <...>
  Call trace:
   lpi_gpio_read.isra.0+0x2c/0x58 (P)
   pinmux_enable_setting+0x218/0x300
   pinctrl_commit_state+0xb0/0x280
   pinctrl_select_state+0x28/0x48
   pinctrl_bind_pins+0x1f4/0x2a0
   really_probe+0x64/0x3a8

Add the clocks to fix that.

Platforms with this SoC using AudioReach won't be impacted due to
qcs6490-audioreach.dtsi already setting clocks & clock-names for
q6prmcc. The sc7280-chrome-common.dtsi has also been adjusted to keep
the behavior the same as they also do not use Elite with q6afecc.

Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
Tested-by: Bhushan Shah <bhushan.shah@machinesoul.in> # On fairphone-fp5
Link: https://lore.kernel.org/r/20260109-kodiak-lpass-tlmm-clocks-v1-1-746112687772@fairphone.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/kodiak.dtsi
arch/arm64/boot/dts/qcom/sc7280-chrome-common.dtsi

index 076069f14495632fe881090819adb7c6a4e6cbbc..f478c5e1d2d5f95fb756b037f6c2c38aaf254e83 100644 (file)
                        compatible = "qcom,sc7280-lpass-lpi-pinctrl";
                        reg = <0 0x033c0000 0x0 0x20000>,
                                <0 0x03550000 0x0 0x10000>;
+
+                       clocks = <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
+                                <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>;
+                       clock-names = "core", "audio";
+
                        gpio-controller;
                        #gpio-cells = <2>;
                        gpio-ranges = <&lpass_tlmm 0 0 15>;
index 84c6d662b54f8c87de56c02100e2b491094f90b3..617a39d32488027f436c3b4e417dbf0c043fa2ea 100644 (file)
        status = "okay";
 };
 
+&lpass_tlmm {
+       /delete-property/ clocks;
+       /delete-property/ clock-names;
+};
+
 &lpasscc {
        status = "okay";
 };