From bae181ffead03ff03a4f19507b0edc51baa92bfc Mon Sep 17 00:00:00 2001 From: ZHANG Yuntian Date: Tue, 6 Jun 2023 17:45:39 +0800 Subject: [PATCH] arm64: dts: rk3588: rock5: set sdhci to HS200 at 150M (#130) HS200 fixes some compatibility issues when using Foresee eMMC. 150MHz improves compatibility with some eMMC. Related forum post: https://forum.radxa.com/t/5a-corrupts-emmc-was-5a-does-not-boot/16930/32 Signed-off-by: Yuntian Zhang --- arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts | 7 ++----- arch/arm64/boot/dts/rockchip/rk3588s-radxa-cm5-io.dts | 6 ------ arch/arm64/boot/dts/rockchip/rk3588s-radxa-cm5.dtsi | 7 +++++++ arch/arm64/boot/dts/rockchip/rk3588s-radxa-nx5-io.dts | 4 ++++ arch/arm64/boot/dts/rockchip/rk3588s-radxa-nx5-module.dtsi | 7 ++----- arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts | 7 ++----- 6 files changed, 17 insertions(+), 21 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts b/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts index d9a3966af85f6..5edf60c77bb9b 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts @@ -487,12 +487,9 @@ &sdhci { bus-width = <8>; - no-sdio; - no-sd; non-removable; - max-frequency = <200000000>; - mmc-hs400-1_8v; - //mmc-hs400-enhanced-strobe; + max-frequency = <150000000>; + mmc-hs200-1_8v; status = "okay"; }; diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-radxa-cm5-io.dts b/arch/arm64/boot/dts/rockchip/rk3588s-radxa-cm5-io.dts index fc7ce14766e90..9819164eeb7dc 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-radxa-cm5-io.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588s-radxa-cm5-io.dts @@ -300,12 +300,6 @@ }; &sdhci { - bus-width = <8>; - no-sdio; - no-sd; - non-removable; - max-frequency = <150000000>; - mmc-hs400-1_8v; status = "okay"; }; diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-radxa-cm5.dtsi b/arch/arm64/boot/dts/rockchip/rk3588s-radxa-cm5.dtsi index 21b10a492e00c..c39a69d07d1fd 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-radxa-cm5.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3588s-radxa-cm5.dtsi @@ -248,6 +248,13 @@ status = "okay"; }; +&sdhci { + bus-width = <8>; + non-removable; + max-frequency = <150000000>; + mmc-hs200-1_8v; +}; + &mdio1 { rgmii_phy1: phy@1 { compatible = "ethernet-phy-ieee802.3-c22"; diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-radxa-nx5-io.dts b/arch/arm64/boot/dts/rockchip/rk3588s-radxa-nx5-io.dts index 33e638a855604..b408a2d18f665 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-radxa-nx5-io.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588s-radxa-nx5-io.dts @@ -148,6 +148,10 @@ status = "okay"; }; +&sdhci { + status = "okay"; +}; + &hdmi0 { status = "okay"; }; diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-radxa-nx5-module.dtsi b/arch/arm64/boot/dts/rockchip/rk3588s-radxa-nx5-module.dtsi index 0cdcf5c769a41..c6730abc83a4c 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-radxa-nx5-module.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3588s-radxa-nx5-module.dtsi @@ -281,12 +281,9 @@ &sdhci { bus-width = <8>; - no-sdio; - no-sd; non-removable; - max-frequency = <200000000>; - mmc-hs400-1_8v; - status = "okay"; + max-frequency = <150000000>; + mmc-hs200-1_8v; }; &mdio1 { diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts index 10e6556a034fd..f52310f7f533d 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts @@ -405,12 +405,9 @@ &sdhci { bus-width = <8>; - no-sdio; - no-sd; non-removable; - max-frequency = <200000000>; - mmc-hs400-1_8v; - /delete-property/ mmc-hs400-enhanced-strobe; + max-frequency = <150000000>; + mmc-hs200-1_8v; pinctrl-names = "default"; pinctrl-0 = <&emmc_rstnout &emmc_bus8 &emmc_clk &emmc_cmd &emmc_data_strobe>; status = "okay";