Skip to content

Commit 93f2a11

Browse files
committed
arm64: dts: qcom: sdm845: Reserve LPASS clocks in gcc
The GCC_LPASS_Q6_AXI_CLK and GCC_LPASS_SWAY_CLK clocks may not be touched on a typical UEFI based SDM845 device, but when the kernel is built with CONFIG_SDM_LPASSCC_845 this happens, unless they are marked as protected-clocks in the DT. This was done for the MTP and the Pocophone, but not for DB845c and the Lenovo Yoga C630 - causing these to fail to boot if the LPASS clock controller is enabled (which it typically isn't). Tested-by: Vinod Koul <vkoul@kernel.org> #on db845c Reviewed-by: Vinod Koul <vkoul@kernel.org> Link: https://lore.kernel.org/r/20201222001103.3112306-1-bjorn.andersson@linaro.org Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
1 parent a916491 commit 93f2a11

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

arch/arm64/boot/dts/qcom/sdm845-db845c.dts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,9 @@
415415
&gcc {
416416
protected-clocks = <GCC_QSPI_CORE_CLK>,
417417
<GCC_QSPI_CORE_CLK_SRC>,
418-
<GCC_QSPI_CNOC_PERIPH_AHB_CLK>;
418+
<GCC_QSPI_CNOC_PERIPH_AHB_CLK>,
419+
<GCC_LPASS_Q6_AXI_CLK>,
420+
<GCC_LPASS_SWAY_CLK>;
419421
};
420422

421423
&gpu {

arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,9 @@
302302
&gcc {
303303
protected-clocks = <GCC_QSPI_CORE_CLK>,
304304
<GCC_QSPI_CORE_CLK_SRC>,
305-
<GCC_QSPI_CNOC_PERIPH_AHB_CLK>;
305+
<GCC_QSPI_CNOC_PERIPH_AHB_CLK>,
306+
<GCC_LPASS_Q6_AXI_CLK>,
307+
<GCC_LPASS_SWAY_CLK>;
306308
};
307309

308310
&gpu {

0 commit comments

Comments
 (0)