Skip to content

Commit

Permalink
arm64: dts: rk3588: rock5: set sdhci to HS200 at 150M (armbian#130)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
RadxaYuntian authored and RadxaStephen committed Jul 3, 2023
1 parent 5918e28 commit bae181f
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 21 deletions.
7 changes: 2 additions & 5 deletions arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
};

Expand Down
6 changes: 0 additions & 6 deletions arch/arm64/boot/dts/rockchip/rk3588s-radxa-cm5-io.dts
Original file line number Diff line number Diff line change
Expand Up @@ -300,12 +300,6 @@
};

&sdhci {
bus-width = <8>;
no-sdio;
no-sd;
non-removable;
max-frequency = <150000000>;
mmc-hs400-1_8v;
status = "okay";
};

Expand Down
7 changes: 7 additions & 0 deletions arch/arm64/boot/dts/rockchip/rk3588s-radxa-cm5.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
4 changes: 4 additions & 0 deletions arch/arm64/boot/dts/rockchip/rk3588s-radxa-nx5-io.dts
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@
status = "okay";
};

&sdhci {
status = "okay";
};

&hdmi0 {
status = "okay";
};
Expand Down
7 changes: 2 additions & 5 deletions arch/arm64/boot/dts/rockchip/rk3588s-radxa-nx5-module.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
7 changes: 2 additions & 5 deletions arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit bae181f

Please sign in to comment.