diff mbox

ARM: dts: rockchip: increase SD clock frequency on Radxa Rock

Message ID 1490110822-3310-1-git-send-email-al.kochet@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Alexander Kochetkov March 21, 2017, 3:40 p.m. UTC
The patch set SD clock frequency to maximum possible to SD-card
(50MHz). This change actual clock frequency from 32MHz to 48MHz
(speedup 1.5X).

Banner line before patch: 'mmc_host mmc0: Bus speed (slot 0) = 32000000Hz
(slot req 50000000Hz, actual 32000000HZ div = 0)'.
Banner line after patch: 'mmc_host mmc0: Bus speed (slot 0) = 96000000Hz
(slot req 50000000Hz, actual 48000000HZ div = 1)'

Signed-off-by: Alexander Kochetkov <al.kochet@gmail.com>
---
 arch/arm/boot/dts/rk3188-radxarock.dts |    1 +
 1 file changed, 1 insertion(+)

Comments

Heiko Stübner March 22, 2017, 4:47 p.m. UTC | #1
Hi,

Am Dienstag, 21. März 2017, 18:40:22 CET schrieb Alexander Kochetkov:
> The patch set SD clock frequency to maximum possible to SD-card
> (50MHz). This change actual clock frequency from 32MHz to 48MHz
> (speedup 1.5X).
> 
> Banner line before patch: 'mmc_host mmc0: Bus speed (slot 0) = 32000000Hz
> (slot req 50000000Hz, actual 32000000HZ div = 0)'.
> Banner line after patch: 'mmc_host mmc0: Bus speed (slot 0) = 96000000Hz
> (slot req 50000000Hz, actual 48000000HZ div = 1)'
> 
> Signed-off-by: Alexander Kochetkov <al.kochet@gmail.com>

sorry, but I will not apply this patch at this time.

When testing on my radxarock with the card I always use upon entering the 
rootfs everything explodes with -110 errors, while without that patch the card 
runs stable as far as I can tell.

I also don't have the time to investigate further right now though.


Heiko
Alexander Kochetkov March 22, 2017, 5:04 p.m. UTC | #2
> 22 марта 2017 г., в 19:47, Heiko Stuebner <heiko@sntech.de> написал(а):
> 
> sorry, but I will not apply this patch at this time.

> When testing on my radxarock with the card I always use upon entering the 
> rootfs everything explodes with -110 errors, while without that patch the card 
> runs stable as far as I can tell.

> I also don't have the time to investigate further right now though.

Ok. Let leave as is for now.

My radxa worked stable for a year with this settings.
And my custom rk3188 based board also has this setting. Kernel 4.8.
And I saw -110 errors only then I disconnect SD-card from board.
Alexander Kochetkov March 22, 2017, 5:14 p.m. UTC | #3
> 22 марта 2017 г., в 20:04, Alexander Kochetkov <al.kochet@gmail.com> написал(а):
> 
> Ok. Let leave as is for now.
> 
> My radxa worked stable for a year with this settings.

Ok, I not sure what my radxa worked stable with this settings.
Hieko, thanks for catching that.

Sorry for your time.
Heiko Stübner March 22, 2017, 5:19 p.m. UTC | #4
Am Mittwoch, 22. März 2017, 20:14:36 CET schrieb Alexander Kochetkov:
> 
> > 22 марта 2017 г., в 20:04, Alexander Kochetkov <al.kochet@gmail.com> написал(а):
> > 
> > Ok. Let leave as is for now.
> > 
> > My radxa worked stable for a year with this settings.
> 
> Ok, I not sure what my radxa worked stable with this settings.
> Hieko, thanks for catching that.
> 
> Sorry for your time.

no problem :-)
Hopefully some time in the future we'll be able to figure out where
the instability on my rock came from.
diff mbox

Patch

diff --git a/arch/arm/boot/dts/rk3188-radxarock.dts b/arch/arm/boot/dts/rk3188-radxarock.dts
index 1da46d1..5b7daa4 100644
--- a/arch/arm/boot/dts/rk3188-radxarock.dts
+++ b/arch/arm/boot/dts/rk3188-radxarock.dts
@@ -302,6 +302,7 @@ 
 	pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
 	vmmc-supply = <&vcc_sd0>;
 
+	clock-frequency = <50000000>;
 	bus-width = <4>;
 	cap-mmc-highspeed;
 	cap-sd-highspeed;