* [PATCH] dts64: mt7622: fix slow sd card access
@ 2021-01-09 19:09 Frank Wunderlich
2021-01-10 8:35 ` Frank Wunderlich
0 siblings, 1 reply; 2+ messages in thread
From: Frank Wunderlich @ 2021-01-09 19:09 UTC (permalink / raw)
To: linux-mediatek
Cc: devicetree, Ryder Lee, Wenbin.Mei, sin_wenjiehu, Frank Wunderlich,
Sean Wang, linux-kernel, Rob Herring, linux-arm-kernel,
Matthias Brugger, Jimin Wang
From: Frank Wunderlich <frank-w@public-files.de>
- change sdcard (mmc1) to uhs by change vqmmc-supply to 1V8 because driver
maps pinctrl depending on this
- add reset-control for mmc1 like it's done for mmc0/emmc
Fixes: 2c002a3049f7 ("arm64: dts: mt7622: add mmc related device nodes")
Fixes: 0b6286dd96c0 ("arm64: dts: mt7622: add bananapi BPI-R64 board")
Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
---
arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts | 3 ++-
arch/arm64/boot/dts/mediatek/mt7622.dtsi | 2 ++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
index 2f77dc40b9b8..916ca89ab8eb 100644
--- a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
+++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
@@ -232,10 +232,11 @@ &mmc1 {
bus-width = <4>;
max-frequency = <50000000>;
cap-sd-highspeed;
+ mmc-hs200-1_8v;
r_smpl = <1>;
cd-gpios = <&pio 81 GPIO_ACTIVE_LOW>;
vmmc-supply = <®_3p3v>;
- vqmmc-supply = <®_3p3v>;
+ vqmmc-supply = <®_1p8v>;
assigned-clocks = <&topckgen CLK_TOP_MSDC30_1_SEL>;
assigned-clock-parents = <&topckgen CLK_TOP_UNIV48M>;
};
diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi b/arch/arm64/boot/dts/mediatek/mt7622.dtsi
index 5b9ec032ce8d..7c6d871538a6 100644
--- a/arch/arm64/boot/dts/mediatek/mt7622.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt7622.dtsi
@@ -698,6 +698,8 @@ mmc1: mmc@11240000 {
clocks = <&pericfg CLK_PERI_MSDC30_1_PD>,
<&topckgen CLK_TOP_AXI_SEL>;
clock-names = "source", "hclk";
+ resets = <&pericfg MT7622_PERI_MSDC1_SW_RST>;
+ reset-names = "hrst";
status = "disabled";
};
--
2.25.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] dts64: mt7622: fix slow sd card access
2021-01-09 19:09 [PATCH] dts64: mt7622: fix slow sd card access Frank Wunderlich
@ 2021-01-10 8:35 ` Frank Wunderlich
0 siblings, 0 replies; 2+ messages in thread
From: Frank Wunderlich @ 2021-01-10 8:35 UTC (permalink / raw)
To: linux-mediatek, Frank Wunderlich
Cc: devicetree, Ryder Lee, Wenbin.Mei, sin_wenjiehu, Sean Wang,
linux-kernel, Rob Herring, Jimin Wang, Matthias Brugger,
linux-arm-kernel
I guess issue is caused by incompatible setting in uboot,but have not found which exactly so i handled it like emmc.
If patch is ready to be applied please add
Cc: stable@vger.kernel.org
because all kernel versions are affected (tested at least in 5.4 and 5.9). If i need to create a v2,i will add it
@sean/ryder/wenbin can you tell me if sd on mt7622/bpi-r64 is maybe capable of hs400?
regards Frank
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-01-10 8:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-09 19:09 [PATCH] dts64: mt7622: fix slow sd card access Frank Wunderlich
2021-01-10 8:35 ` Frank Wunderlich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).