Skip to content

Commit 22fbdae

Browse files
committed
arm64: dts: rk3399: improve rock pi 4 emmc config
The issue is that the eMMC reading and writing speeds on Rock Pi 4B is found to be slow. When testing with a 32G SEC 401 eMMC module, the reading and writing speeds are 88.9 MB/s and 78.2 MB/s. According to [0], we can just use the maximum supported frequency value. According to [1], RK3399 eMMC interface supported HS400, so the option is added in this change. After applying this change, testing with a 32G SEC 401 eMMC module on a Rock Pi 4B: ``` radxa@rock-pi-4b:~$ sudo dd of=/dev/null if=/dev/mmcblk0 status=progress count=6 bs=512M 3221225472 bytes (3.2 GB, 3.0 GiB) copied, 11 s, 295 MB/s 6+0 records in 6+0 records out 3221225472 bytes (3.2 GB, 3.0 GiB) copied, 11.5173 s, 280 MB/s radxa@rock-pi-4b:~$ sudo dd if=/dev/zero of=/dev/mmcblk0 oflag=direct status=progress count=6 bs=512M 3221225472 bytes (3.2 GB, 3.0 GiB) copied, 30 s, 107 MB/s 6+0 records in 6+0 records out 3221225472 bytes (3.2 GB, 3.0 GiB) copied, 30.1302 s, 107 MB/s ``` [0]: https://github.com/radxa/kernel/blob/3f671654064b5efa8538748356d2c9bd3b754462/Documentation/devicetree/bindings/mmc/mmc-controller.yaml#L90-L98 [1]: https://opensource.rock-chips.com/images/d/d7/Rockchip_RK3399_Datasheet_V2.1-20200323.pdf Signed-off-by: Zhaoming Luo <[email protected]>
1 parent 3f67165 commit 22fbdae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,9 +711,10 @@
711711
};
712712

713713
&sdhci {
714-
max-frequency = <150000000>;
714+
max-frequency = <384000000>;
715715
bus-width = <8>;
716716
mmc-hs200-1_8v;
717+
mmc-hs400-1_8v;
717718
non-removable;
718719
status = "okay";
719720
};

0 commit comments

Comments
 (0)