arm64: dts: renesas: beacon: Increase sdhi speeds
Subsystems (2)
PATCH 1/1 arm64: dts: renesas: beacon: Increase sdhi speeds
From: Adam Ford <[email protected]>
The eMMC can run at hs400 and the WiFi chip can run at sdr104. Set the respective flags to push the sdhi faster.
---
Okay, the original patch is really old, from around 2021 [1]. I found it while looking for SDHI improvements and it is still easy enough to do the requested changes and add these additional capabilities, so why not?
[1] https://patchwork.kernel.org/project/linux-renesas-soc/patch/[email protected]/
arch/arm64/boot/dts/renesas/beacon-renesom-som.dtsi | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/renesas/beacon-renesom-som.dtsi +5 -1
@@ -288,8 +288,9 @@ &scif2 { }; &sdhi2 { - pinctrl-names = "default"; pinctrl-0 = <&sdhi2_pins>; + pinctrl-1 = <&sdhi2_pins>; + pinctrl-names = "default", "state_uhs"; bus-width = <4>; vmmc-supply = <®_3p3v>; vqmmc-supply = <®_1p8v>;
@@ -297,6 +298,8 @@ &sdhi2 { cap-power-off-card; keep-power-in-suspend; mmc-pwrseq = <&wlan_pwrseq>; + sd-uhs-sdr50; + sd-uhs-sdr104; status = "okay"; #address-cells = <1>; #size-cells = <0>;
@@ -317,6 +320,7 @@ &sdhi3 { vqmmc-supply = <®_1p8v>; bus-width = <8>; mmc-hs200-1_8v; + mmc-hs400-1_8v; no-sd; no-sdio; non-removable;
Signature · 1 line
2.53.0
[email protected]
AI reviewThank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [High] arm64: dts: renesas: beacon: HS400 enabled on r8a774a1 without SDHI quirks --
Thank you for your contribution! Sashiko AI review found 1 potential issue to consider:
- [High] arm64: dts: renesas: beacon: HS400 enabled on r8a774a1 without SDHI quirks
--
commit b89b68011d07b5d887c10ae098b7d13e972848a1
Author: Adam Ford <[email protected]>
arm64: dts: renesas: beacon: Increase sdhi speeds
This commit enables UHS SDR50/SDR104 modes on sdhi2 for WiFi and HS400 mode on sdhi3 for the eMMC in the shared Beacon Renesom SOM device tree.
Quoted 4 lines
arch/arm64/boot/dts/renesas/beacon-renesom-som.dtsi +0
-0
[ ... ]
arch/arm64/boot/dts/renesas/beacon-renesom-som.dtsi &sdhi3 { · line 326
Quoted 8 lines
arch/arm64/boot/dts/renesas/beacon-renesom-som.dtsi +1
-0@@ -317,6 +320,7 @@ &sdhi3 { vqmmc-supply = <®_1p8v>; bus-width = <8>; mmc-hs200-1_8v; + mmc-hs400-1_8v; no-sd; no-sdio; non-removable;
[Severity: High]
Does enabling mmc-hs400-1_8v here break eMMC HS400 transfers on r8a774a1-beacon-rzg2m-kit with RZ/G2M ES1.3 or ES3.0?
beacon-renesom-som.dtsi is included by r8a774a1-beacon-rzg2m-kit.dts, where sdhi3 has compatible "renesas,sdhi-r8a774a1", "renesas,rcar-gen3-sdhi". Unlike renesas,sdhi-r8a774b1 and renesas,sdhi-r8a774e1, renesas_sdhi_internal_dmac_of_match[] has no entry for renesas,sdhi-r8a774a1, so it falls back to of_rcar_gen3_compatible with quirks set to NULL. In sdhi_quirks_match[], r8a774a1 only matches ES1.[012]:
drivers/mmc/host/renesas_sdhi_internal_dmac.c:
{ .soc_id = "r8a774a1", .revision = "ES1.[012]", .data = &sdhi_quirks_4tap_nohs400 },
{ .soc_id = "r8a7795", .revision = "ES2.0", .data = &sdhi_quirks_4tap },
{ .soc_id = "r8a7796", .revision = "ES1.0", .data = &sdhi_quirks_4tap_nohs400_one_rx },
{ .soc_id = "r8a7796", .revision = "ES1.[12]", .data = &sdhi_quirks_4tap_nohs400 },
{ .soc_id = "r8a7796", .revision = "ES1.*", .data = &sdhi_quirks_r8a7796_es13 },On r8a774a1 ES1.3 or ES3.0, HS400 is therefore enabled with quirks == NULL, which programs 8-tap clock and SCC settings in renesas_sdhi_clk_update() instead of 4-tap and skips bad-tap avoidance, manual tap correction, and HS400 calibration table lookup for the onboard eMMC.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
Quoted 4 lines
[Severity: High]
Does enabling mmc-hs400-1_8v here break eMMC HS400 transfers on r8a774a1-beacon-rzg2m-kit with RZ/G2M ES1.3 or ES3.0?
Dunno which ES versions this SoM can carry. I will drop the relevant hunk and leave the addition for a party really having the HW.