From: Dragan Simic <dsimic@manjaro.org>
To: Jonas Karlman <jonas@kwiboo.se>
Cc: Kever Yang <kever.yang@rock-chips.com>,
Simon Glass <sjg@chromium.org>, Jagan Teki <jagan@edgeble.ai>,
Philipp Tomsich <philipp.tomsich@vrull.eu>,
Tom Rini <trini@konsulko.com>, John Clark <inindev@gmail.com>,
Tom Fitzhenry <tom@tom-fitzhenry.me.uk>,
Elon Zhang <zhangzj@rock-chips.com>,
Quentin Schulz <quentin.schulz@theobroma-systems.com>,
u-boot@lists.denx.de
Subject: Re: [PATCH v2 23/23] rockchip: rk3588: Enable use of eMMC HS200 mode on a few missed boards
Date: Mon, 15 Apr 2024 10:36:10 +0200 [thread overview]
Message-ID: <a9d04ab75010f358b759eac00acbdef0@manjaro.org> (raw)
In-Reply-To: <05c12e28-c24e-495a-9cdb-d97752cbe6d9@kwiboo.se>
On 2024-04-15 10:23, Jonas Karlman wrote:
> On 2024-04-15 09:00, Dragan Simic wrote:
>> Please see my comments below.
>>
>> On 2024-04-13 20:13, Jonas Karlman wrote:
>>> A few RK3588 boards are missing a mmc-hs200 prop to signal that HS200
>>> mode is supported in addition to HS400, this lead to bad performance
>>> reading FIT in SPL and broken MMC write.
>>>
>>> Add cap-mmc-highspeed and mmc-hs200-1_8v to affected boards to enable
>>> use of eMMC HS200 mode.
>>>
>>> Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
>>
>> Shouldn't it be better to follow the Linux kernel's logic in
>> the MMC driver, and enable the HS200 mode when the DT indicates
>> that the HS400 mode is suported? In other words, exactly what
>> you already submitted to the mailing list. [1]
>
> Yes, this is somewhat what I tried to make aware of with the note and
> link under "v2: New patch" :-)
Wow, I totally missed that paragraph. :) Though, that also means
that we're on the same page. :)
>> That would allow a significant cleanup of the U-Boot dtsi files
>> to be performed.
>>
>> Until that's resolved, the patch is looking good to me.
>
> Fully agree, this will fix the bad performance in SPL and fix MMC write
> for existing boards making them work same as other RK3588 boards until
> the MMC maintainer can weigh in on the linked patch.
That will be nice.
>> Reviewed-by: Dragan Simic <dsimic@manjaro.org>
>
> Thanks!
Thank you for all these nice cleanup patches!
>> [1]
>> https://lore.kernel.org/u-boot/20240408210619.3749231-1-jonas@kwiboo.se/
>>
>>> ---
>>> v2: New patch
>>>
>>> All these mmc-hs200 prop overrides may not be needed if the patch
>>> "mmc:
>>> Imply HS200 cap with mmc-hs400 prop to match linux" [1] gets applied,
>>> until such time this matches what has been done for all other RK35xx
>>> boards.
>>>
>>> [1] https://patchwork.ozlabs.org/patch/1921039/
>>> ---
>>> arch/arm/dts/rk3588-edgeble-neu6a-io-u-boot.dtsi | 5 +++++
>>> arch/arm/dts/rk3588-edgeble-neu6b-io-u-boot.dtsi | 5 +++++
>>> arch/arm/dts/rk3588-evb1-v10-u-boot.dtsi | 5 +++++
>>> arch/arm/dts/rk3588-nanopc-t6-u-boot.dtsi | 5 +++++
>>> arch/arm/dts/rk3588-quartzpro64-u-boot.dtsi | 5 +++++
>>> arch/arm/dts/rk3588-toybrick-x0-u-boot.dtsi | 5 +++++
>>> 6 files changed, 30 insertions(+)
>>>
>>> diff --git a/arch/arm/dts/rk3588-edgeble-neu6a-io-u-boot.dtsi
>>> b/arch/arm/dts/rk3588-edgeble-neu6a-io-u-boot.dtsi
>>> index dd0058262b7f..fc4b13628b30 100644
>>> --- a/arch/arm/dts/rk3588-edgeble-neu6a-io-u-boot.dtsi
>>> +++ b/arch/arm/dts/rk3588-edgeble-neu6a-io-u-boot.dtsi
>>> @@ -15,6 +15,11 @@
>>> };
>>> };
>>>
>>> +&sdhci {
>>> + cap-mmc-highspeed;
>>> + mmc-hs200-1_8v;
>>> +};
>>> +
>>> &sdmmc {
>>> bus-width = <4>;
>>> status = "okay";
>>> diff --git a/arch/arm/dts/rk3588-edgeble-neu6b-io-u-boot.dtsi
>>> b/arch/arm/dts/rk3588-edgeble-neu6b-io-u-boot.dtsi
>>> index a45b3f5e86ad..a0c62072c34e 100644
>>> --- a/arch/arm/dts/rk3588-edgeble-neu6b-io-u-boot.dtsi
>>> +++ b/arch/arm/dts/rk3588-edgeble-neu6b-io-u-boot.dtsi
>>> @@ -14,3 +14,8 @@
>>> u-boot,spl-boot-order = &sdmmc;
>>> };
>>> };
>>> +
>>> +&sdhci {
>>> + cap-mmc-highspeed;
>>> + mmc-hs200-1_8v;
>>> +};
>>> diff --git a/arch/arm/dts/rk3588-evb1-v10-u-boot.dtsi
>>> b/arch/arm/dts/rk3588-evb1-v10-u-boot.dtsi
>>> index e8566785e965..354e4a8d39e3 100644
>>> --- a/arch/arm/dts/rk3588-evb1-v10-u-boot.dtsi
>>> +++ b/arch/arm/dts/rk3588-evb1-v10-u-boot.dtsi
>>> @@ -10,3 +10,8 @@
>>> u-boot,spl-boot-order = "same-as-spl", &sdhci;
>>> };
>>> };
>>> +
>>> +&sdhci {
>>> + cap-mmc-highspeed;
>>> + mmc-hs200-1_8v;
>>> +};
>>> diff --git a/arch/arm/dts/rk3588-nanopc-t6-u-boot.dtsi
>>> b/arch/arm/dts/rk3588-nanopc-t6-u-boot.dtsi
>>> index 968385622fa5..7948464ac85f 100644
>>> --- a/arch/arm/dts/rk3588-nanopc-t6-u-boot.dtsi
>>> +++ b/arch/arm/dts/rk3588-nanopc-t6-u-boot.dtsi
>>> @@ -11,6 +11,11 @@
>>> bootph-some-ram;
>>> };
>>>
>>> +&sdhci {
>>> + cap-mmc-highspeed;
>>> + mmc-hs200-1_8v;
>>> +};
>>> +
>>> &sfc {
>>> pinctrl-names = "default";
>>> pinctrl-0 = <&fspim1_pins>;
>>> diff --git a/arch/arm/dts/rk3588-quartzpro64-u-boot.dtsi
>>> b/arch/arm/dts/rk3588-quartzpro64-u-boot.dtsi
>>> index 7b937943a53c..d764135ab661 100644
>>> --- a/arch/arm/dts/rk3588-quartzpro64-u-boot.dtsi
>>> +++ b/arch/arm/dts/rk3588-quartzpro64-u-boot.dtsi
>>> @@ -4,3 +4,8 @@
>>> */
>>>
>>> #include "rk3588-u-boot.dtsi"
>>> +
>>> +&sdhci {
>>> + cap-mmc-highspeed;
>>> + mmc-hs200-1_8v;
>>> +};
>>> diff --git a/arch/arm/dts/rk3588-toybrick-x0-u-boot.dtsi
>>> b/arch/arm/dts/rk3588-toybrick-x0-u-boot.dtsi
>>> index 1aeb5410e43e..c5c94b421d1e 100644
>>> --- a/arch/arm/dts/rk3588-toybrick-x0-u-boot.dtsi
>>> +++ b/arch/arm/dts/rk3588-toybrick-x0-u-boot.dtsi
>>> @@ -10,3 +10,8 @@
>>> u-boot,spl-boot-order = "same-as-spl", &sdhci;
>>> };
>>> };
>>> +
>>> +&sdhci {
>>> + cap-mmc-highspeed;
>>> + mmc-hs200-1_8v;
>>> +};
next prev parent reply other threads:[~2024-04-15 8:36 UTC|newest]
Thread overview: 50+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-13 18:13 [PATCH v2 00/23] rockchip: rk35xx: Miscellaneous fixes and updates Jonas Karlman
2024-04-13 18:13 ` [PATCH v2 01/23] clk: rockchip: rk356x: Add CLK_USB3OTGx_REF support Jonas Karlman
2024-04-19 2:44 ` Sean Anderson
2024-04-13 18:13 ` [PATCH v2 02/23] clk: rockchip: rk3588: Add REF_CLK_USB3OTGx support Jonas Karlman
2024-04-19 2:44 ` Sean Anderson
2024-04-13 18:13 ` [PATCH v2 03/23] rockchip: rk35xx: Drop USB_GADGET_PRODUCT_NUM Kconfig option Jonas Karlman
2024-04-15 6:25 ` Dragan Simic
2024-04-13 18:13 ` [PATCH v2 04/23] rockchip: rk3588: Drop REGULATOR_PWM " Jonas Karlman
2024-04-15 6:28 ` Dragan Simic
2024-04-13 18:13 ` [PATCH v2 05/23] rockchip: rk3566-anbernic-rgxx3: Remove SPL_ROCKCHIP_BACK_TO_BROM option Jonas Karlman
2024-04-13 18:13 ` [PATCH v2 06/23] rockchip: rk35xx: Sort imply statements alphabetically Jonas Karlman
2024-04-15 6:29 ` Dragan Simic
2024-04-13 18:13 ` [PATCH v2 07/23] rockchip: rk35xx: Enable random generator Jonas Karlman
2024-04-15 6:37 ` Dragan Simic
2024-04-15 8:03 ` Jonas Karlman
2024-04-15 8:21 ` Dragan Simic
2024-04-13 18:13 ` [PATCH v2 08/23] rockchip: rk35xx: Imply support for GbE PHY Jonas Karlman
2024-04-15 6:41 ` Dragan Simic
2024-04-13 18:13 ` [PATCH v2 09/23] rockchip: rk356x: Imply enhanced features for standard boot Jonas Karlman
2024-04-15 6:43 ` Dragan Simic
2024-04-13 18:13 ` [PATCH v2 10/23] rockchip: rk35xx: Sort soc u-boot.dtsi alphabetically Jonas Karlman
2024-04-15 8:46 ` Quentin Schulz
2024-04-15 10:50 ` Jonas Karlman
2024-04-13 18:13 ` [PATCH v2 11/23] rockchip: rk356x: Update bootph props Jonas Karlman
2024-04-13 18:13 ` [PATCH v2 12/23] rockchip: rk3588: " Jonas Karlman
2024-04-15 8:55 ` Quentin Schulz
2024-04-15 12:40 ` Jonas Karlman
2024-04-13 18:13 ` [PATCH v2 13/23] rockchip: rk3566-pinetab2: Fix reading FIT from SPI flash Jonas Karlman
2024-04-13 18:13 ` [PATCH v2 14/23] rockchip: rk3588-coolpi: Add boards to documentation Jonas Karlman
2024-04-15 6:47 ` Dragan Simic
2024-04-15 8:56 ` Quentin Schulz
2024-04-15 8:58 ` Dragan Simic
2024-04-15 14:11 ` Jonas Karlman
2024-04-13 18:13 ` [PATCH v2 15/23] rockchip: rk3588-toybrick: Add missing Kconfig options Jonas Karlman
2024-04-15 8:58 ` Quentin Schulz
2024-04-15 9:04 ` Dragan Simic
2024-04-15 9:10 ` Quentin Schulz
2024-04-15 14:17 ` Jonas Karlman
2024-04-13 18:13 ` [PATCH v2 16/23] rockchip: rk3588-turing-rk1: Use dwc3-generic driver Jonas Karlman
2024-04-13 18:13 ` [PATCH v2 17/23] rockchip: rk3588-edgeble-neu6: Enable FIT checksum validation Jonas Karlman
2024-04-13 18:13 ` [PATCH v2 18/23] rockchip: rk356x-generic: Fix eMMC and SD-card pinctrl Jonas Karlman
2024-04-13 18:13 ` [PATCH v2 19/23] rockchip: rk356x-generic: Add support for SPI flash Jonas Karlman
2024-04-13 18:13 ` [PATCH v2 20/23] rockchip: rk356x-generic: Add support for USB OTG Jonas Karlman
2024-04-13 18:13 ` [PATCH v2 21/23] rockchip: rk3588-generic: " Jonas Karlman
2024-04-13 18:13 ` [PATCH v2 22/23] rockchip: rk35xx-generic: Disable unused features Jonas Karlman
2024-04-13 18:13 ` [PATCH v2 23/23] rockchip: rk3588: Enable use of eMMC HS200 mode on a few missed boards Jonas Karlman
2024-04-15 7:00 ` Dragan Simic
2024-04-15 8:23 ` Jonas Karlman
2024-04-15 8:36 ` Dragan Simic [this message]
2024-04-15 9:02 ` Quentin Schulz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a9d04ab75010f358b759eac00acbdef0@manjaro.org \
--to=dsimic@manjaro.org \
--cc=inindev@gmail.com \
--cc=jagan@edgeble.ai \
--cc=jonas@kwiboo.se \
--cc=kever.yang@rock-chips.com \
--cc=philipp.tomsich@vrull.eu \
--cc=quentin.schulz@theobroma-systems.com \
--cc=sjg@chromium.org \
--cc=tom@tom-fitzhenry.me.uk \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=zhangzj@rock-chips.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox