Skip to contentSkip to conversation

arm64: dts: qcom: msm8994-huawei-angler: Add sdhc{1,2} definitions

PATCH Superseded Petr Vorel 1 participant 1 message Jan 31, 2022

Subsystems (3)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Petr Vorel

author
#0 lore raw

PATCH v2 3/3 arm64: dts: qcom: msm8994-huawei-angler: Add sdhc{1,2} definitions

Although downstream supports HS400, there are overclocking warnings when using mmc-hs400-1_8v:

mmc0: Card appears overclocked; req 200000000 Hz, actual 384000000 Hz
mmc0: Card appears overclocked; req 200000000 Hz, actual 384000000 Hz
mmc0: Card appears overclocked; req 200000000 Hz, actual 384000000 Hz
mmc0: Card appears overclocked; req 400000000 Hz, actual 768000000 Hz
mmc0: Card appears overclocked; req 400000000 Hz, actual 768000000 Hz
mmc0: new HS400 MMC card at address 0001

Using HS200 (i.e. mmc-hs200-1_8v or mmc-ddr-1_8v) would reduce them:

mmc0: Card appears overclocked; req 200000000 Hz, actual 384000000 Hz
mmc0: Card appears overclocked; req 200000000 Hz, actual 384000000 Hz
mmc0: new HS200 MMC card at address 0001

But as the problem is probably elsewhere (bullhead behaves the same), keep mmc-hs400-1_8v.

Angler does not have SD card, thus sdhc2 kept disabled.

---
Changes v1->v2:
* remove sdhc2 explicit disablement (Bjorn)

NOTE: I also set state "rejected" for similar patch for bullhead
https://patchwork.kernel.org/project/linux-arm-msm/patch/[email protected]/

Kind regards,
Petr

 .../boot/dts/qcom/msm8994-huawei-angler-rev-101.dts   | 11 +++++++++++
 1 file changed, 11 insertions(+)
arch/arm64/boot/dts/qcom/msm8994-huawei-angler-rev-101.dts +11 -0
index 0e3dd48f0dbf..a0930902494b 100644
@@ -7,6 +7,7 @@
 /dts-v1/;
 
 #include "msm8994.dtsi"
+#include <dt-bindings/gpio/gpio.h>
 
 /* Angler's firmware does not report where the memory is allocated */
 /delete-node/ &cont_splash_mem;
@@ -41,3 +42,13 @@ serial@f991e000 {
 &tlmm {
 	gpio-reserved-ranges = <85 4>;
 };
+
+/*
+ * Although downstream supports also HS400 there are fewer overclocking
+ * warnings when used DDR, also LK bootloader reports DDR mode.
+ */
+&sdhc1 {
+	status = "okay";
+
+	mmc-hs400-1_8v;
+};
Signature · 1 line
2.34.1