]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: dts: qcom: sc8280xp: fix UFS reference clocks
authorJohan Hovold <johan+linaro@kernel.org>
Fri, 4 Nov 2022 09:20:44 +0000 (10:20 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Jan 2023 10:11:37 +0000 (11:11 +0100)
commit03f4e04c9b30384e1928769be9078329bdcf4a60
treedea87a10ed6fdcc7bacb58cfa42f9837a152d0d0
parent43c77cf853c216cb2208cc465275a2f9fff9a4ac
arm64: dts: qcom: sc8280xp: fix UFS reference clocks

commit f446022b932aff1d6a308ca5d537ec2b512debdc upstream.

There are three UFS reference clocks on SC8280XP which are used as
follows:

 - The GCC_UFS_REF_CLKREF_CLK clock is fed to any UFS device connected
   to either controller.

 - The GCC_UFS_1_CARD_CLKREF_CLK and GCC_UFS_CARD_CLKREF_CLK clocks
   provide reference clocks to the two PHYs.

Note that this depends on first updating the clock driver to reflect
that all three clocks are sourced from CXO. Specifically, the UFS
controller driver expects the device reference clock to have a valid
frequency:

ufshcd-qcom 1d84000.ufs: invalid ref_clk setting = 0

Fixes: 199bdb9eaef1 ("arm64: dts: qcom: add SC8280XP platform")
Fixes: 1390d0b4ec89 ("arm64: dts: qcom: sc8280xp: fix ufs_card_phy ref clock")
Fixes: 17ecfca35b35 ("arm64: dts: qcom: sc8280xp: correct ref clock for ufs_mem_phy")
Link: https://lore.kernel.org/lkml/Y2OEjNAPXg5BfOxH@hovoldconsulting.com/
Cc: stable@vger.kernel.org # 5.20
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Reviewed-by: Brian Masney <bmasney@redhat.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221104092045.17410-2-johan+linaro@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/boot/dts/qcom/sc8280xp.dtsi