]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: rk356x-u-boot: Set max-frequency prop in sdhci node
authorJonas Karlman <jonas@kwiboo.se>
Fri, 4 Aug 2023 09:34:01 +0000 (09:34 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Sat, 12 Aug 2023 02:35:35 +0000 (10:35 +0800)
Most board device trees for RK356x set max-frequency = <200000000> in
the sdhci node, some boards like Quartz64 do not. This result in an
error message due to sdhci driver trying to set a clock rate of 0
instead of the max-frequency value.

  rockchip_sdhci_probe clk set rate fail!

Fix this by setting a common max-frequency in rk356x-u-boot.dtsi. A
patch to set default max-frequency of sdhci node in linux is planned.

Also remove the forced status = "okay" for the sdhci and sdmmc0 nodes,
boards already set correct state for these nodes.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/dts/rk356x-u-boot.dtsi

index d21b18205220391aab3fabc0b2e406485204fd52..32f687f2924bc241a05e2ca5dd5a0d7e416cb1ec 100644 (file)
 
 &sdhci {
        bootph-pre-ram;
-       status = "okay";
+       max-frequency = <200000000>;
 };
 
 &sdmmc0 {
        bootph-pre-ram;
-       status = "okay";
 };
 
 #ifdef CONFIG_ROCKCHIP_SPI_IMAGE