mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* Re: [PATCH 0/6] mci: rockchip-dwcmshc: add HS200 support
@ 2026-05-07  8:03 Sascha Hauer
  0 siblings, 0 replies; 3+ messages in thread
From: Sascha Hauer @ 2026-05-07  8:03 UTC (permalink / raw)
  To: Ahmad Fatoum; +Cc: BAREBOX, Claude Opus 4.7, Sascha Hauer

On 2026-05-07 09:47, Ahmad Fatoum wrote:
> Hi,
> 
> On 5/7/26 9:02 AM, Sascha Hauer wrote:
> > At least on RK3588 the dwcmshc core doesn't have an internal clock
> > divider, we fully rely on the clock tree to configure the MMC clock.
> > By default the clock comes from the 24MHz oscillator. For higher MMC
> > clocks we have to reparent to a PLL clock, but if we do this once the
> > 6bit divider iss not enough to scale down to the 400kHz MMC
> > initialization clock. This means we must dynamically reparent the clock.
> > This series adds support for finding the best divider/mux combination
> > for composite clocks.
> > 
> > This series also adds some fixes to the dwcmshc driver which used to
> > timeout on writing sometimes.
> 
> \o/
> 
> How much faster was the reading now in your testing?

I now reach 120MB/s compared to 20MB/s before.

Sascha

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



^ permalink raw reply	[flat|nested] 3+ messages in thread
* [PATCH 0/6] mci: rockchip-dwcmshc: add HS200 support
@ 2026-05-07  7:02 Sascha Hauer
  2026-05-07  7:47 ` Ahmad Fatoum
  0 siblings, 1 reply; 3+ messages in thread
From: Sascha Hauer @ 2026-05-07  7:02 UTC (permalink / raw)
  To: BAREBOX; +Cc: Sascha Hauer, Claude Opus 4.7

At least on RK3588 the dwcmshc core doesn't have an internal clock
divider, we fully rely on the clock tree to configure the MMC clock.
By default the clock comes from the 24MHz oscillator. For higher MMC
clocks we have to reparent to a PLL clock, but if we do this once the
6bit divider iss not enough to scale down to the 400kHz MMC
initialization clock. This means we must dynamically reparent the clock.
This series adds support for finding the best divider/mux combination
for composite clocks.

This series also adds some fixes to the dwcmshc driver which used to
timeout on writing sometimes.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
Sascha Hauer (6):
      mci: sdhci: rockchip: set hidspd before re-enabling the clock
      mci: sdhci: rockchip: disable clock while setting DLL
      mci: sdhci: rockchip: Wait for transfer complete interrupt with MMC_RSP_BUSY cmd
      mci: sdhci: rockchip: Update pre-change delay for rockchip platform
      clk: composite: pick best parent for round_rate / set_rate
      mci: sdhci: rockchip: officially support HS200

 drivers/clk/clk-composite.c          | 110 ++++++++++++++++++++++++++++++-----
 drivers/mci/rockchip-dwcmshc-sdhci.c |  51 ++++++++++------
 2 files changed, 128 insertions(+), 33 deletions(-)
---
base-commit: 019d102038a64e6b6e8f445cbfd2d15e68d0ec3f
change-id: 20260507-rockchip-emmc-0e8c5097cf33

Best regards,
-- 
Sascha Hauer <s.hauer@pengutronix.de>




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-05-07  8:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-07  8:03 [PATCH 0/6] mci: rockchip-dwcmshc: add HS200 support Sascha Hauer
  -- strict thread matches above, loose matches on Subject: below --
2026-05-07  7:02 Sascha Hauer
2026-05-07  7:47 ` Ahmad Fatoum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox