arm64: dts: qcom: bullhead: Fix sdcard1 overclocking
PATCH 1/1 arm64: dts: qcom: bullhead: Fix sdcard1 overclocking
rev 1.01 (msm8992-lg-bullhead-rev-101.dts) has overclocking warnings:
[ 1.997606] mmc0: Card appears overclocked; req 200000000 Hz, actual 343999999 Hz [ 1.997681] mmc0: Card appears overclocked; req 200000000 Hz, actual 343999999 Hz [ 2.010904] mmc0: Card appears overclocked; req 400000000 Hz, actual 687999999 Hz [ 2.012961] mmc0: Card appears overclocked; req 200000000 Hz, actual 343999999 Hz [ 2.027497] mmc0: Card appears overclocked; req 400000000 Hz, actual 687999999 Hz [ 2.027607] mmc0: Card appears overclocked; req 400000000 Hz, actual 687999999 Hz [ 2.039699] mmc0: new HS400 MMC card at address 0001
Similarly to angler use gcc GPLL4_EARLY to get rid of the warnings. Not tested on 1.0, but should work here as well.
Signed-off-by Petr Vorel <[email protected]>
---
@Jean: could you please test it on your rev 1.0?
Thanks!
Kind regards,
Petr
arch/arm64/boot/dts/qcom/msm8992-lg-bullhead.dtsi | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/msm8992-lg-bullhead.dtsi +5 -1
@@ -1,7 +1,7 @@ // SPDX-License-Identifier: GPL-2.0-only /* Copyright (c) 2015, LGE Inc. All rights reserved. * Copyright (c) 2016, The Linux Foundation. All rights reserved. - * Copyright (c) 2021, Petr Vorel <[email protected]> + * Copyright (c) 2021-2022, Petr Vorel <[email protected]> */ /dts-v1/;
@@ -299,4 +299,8 @@ &sdhc1 { status = "okay"; mmc-hs400-1_8v; + + /* avoid overclocking warnings */ + assigned-clocks = <&gcc GPLL4_EARLY>; + assigned-clock-rates = <384000000>; };
Signature · 1 line
2.35.1
Hi,
Quoted 11 lines
rev 1.01 (
msm8992-lg-bullhead-rev-101.dts) has overclocking warnings:[ 1.997606] mmc0: Card appears overclocked; req 200000000 Hz, actual 343999999 Hz [ 1.997681] mmc0: Card appears overclocked; req 200000000 Hz, actual 343999999 Hz [ 2.010904] mmc0: Card appears overclocked; req 400000000 Hz, actual 687999999 Hz [ 2.012961] mmc0: Card appears overclocked; req 200000000 Hz, actual 343999999 Hz [ 2.027497] mmc0: Card appears overclocked; req 400000000 Hz, actual 687999999 Hz [ 2.027607] mmc0: Card appears overclocked; req 400000000 Hz, actual 687999999 Hz [ 2.039699] mmc0: new HS400 MMC card at address 0001Similarly to angler use gcc
GPLL4_EARLYto get rid of the warnings. Not tested on 1.0, but should work here as well.
As I wrote at Konrad's patch "clk: qcom: gcc-msm8994: Fix gpll4 width" [1] with that fix this workaround is not needed if Konrad's patch applied.
Kind regards,
Petr
[1] https://lore.kernel.org/linux-arm-msm/YjuE+cgGXCLihPIa@pevik/T/#t