From: Robin Murphy <robin.murphy@arm.com>
To: Soeren Moch <smoch@web.de>, Shawn Lin <shawn.lin@rock-chips.com>,
Heiko Stuebner <heiko@sntech.de>
Cc: linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 3/3] arm64: dts: rockchip: fix RockPro64 sdmmc settings【请注意,邮件由linux-rockchip-bounces+shawn.lin=rock-chips.com@lists.infradead.org代发】
Date: Fri, 4 Oct 2019 15:20:01 +0100 [thread overview]
Message-ID: <fc7dce53-ad39-26e3-7c19-ab60ff4cc332@arm.com> (raw)
In-Reply-To: <1c452b8b-853f-8f58-5f3a-0bbecbe20557@web.de>
On 04/10/2019 04:39, Soeren Moch wrote:
>
>
> On 04.10.19 04:13, Shawn Lin wrote:
>> On 2019/10/4 8:53, Soeren Moch wrote:
>>>
>>>
>>> On 04.10.19 02:01, Robin Murphy wrote:
>>>> On 2019-10-03 10:50 pm, Soeren Moch wrote:
>>>>> According to the RockPro64 schematic [1] the rk3399 sdmmc
>>>>> controller is
>>>>> connected to a microSD (TF card) slot, which cannot be switched to
>>>>> 1.8V.
>>>>
>>>> Really? AFAICS the SDMMC0 wiring looks pretty much identical to the
>>>> NanoPC-T4 schematic (it's the same reference design, after all), and I
>>>> know that board can happily drive a UHS-I microSD card with 1.8v I/Os,
>>>> because mine's doing so right now.
>>>>
>>>> Robin.
>>> OK, the RockPro64 does not allow a card reset (power cycle) since
>>> VCC3V0_SD is directly connected to VCC3V3_SYS (via R89555), the
>>> SDMMC0_PWH_H signal is not connected. So the card fails to identify
>>> itself after suspend or reboot when switched to 1.8V operation.
Ah, thanks for clarifying - I did overlook the subtlety that U12 and
friends have "NC" as alternative part numbers, even though they aren't
actually marked as DNP. So it's still not so much "cannot be switched"
as "switching can lead to other problems".
>>
>> I believe we addressed this issue long time ago, please check:
>>
>> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6a11fc47f175c8d87018e89cb58e2d36c66534cb
>>
> Thanks for the pointer.
> In this case I guess I should use following patch instead:
>
> --- rk3399-rockpro64.dts.bak 2019-10-03 22:14:00.067745799 +0200
> +++ rk3399-rockpro64.dts 2019-10-04 00:02:50.047892366 +0200
> @@ -619,6 +619,8 @@
> max-frequency = <150000000>;
> pinctrl-names = "default";
> pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_bus4>;
> + sd-uhs-sdr104;
> + vqmmc-supply = <&vcc_sdio>;
> status = "okay";
> };
>
> When I do so, the sd card is detected as SDR104, but a reboot hangs:
>
> Boot1: 2018-06-26, version: 1.14
> CPUId = 0x0
> ChipType = 0x10, 286
> Spi_ChipId = c84018
> no find rkpartition
> SpiBootInit:ffffffff
> mmc: ERROR: SDHCI ERR:cmd:0x102,stat:0x18000
> mmc: ERROR: Card did not respond to voltage select!
> emmc reinit
> mmc: ERROR: SDHCI ERR:cmd:0x102,stat:0x18000
> mmc: ERROR: Card did not respond to voltage select!
> emmc reinit
> mmc: ERROR: SDHCI ERR:cmd:0x102,stat:0x18000
> mmc: ERROR: Card did not respond to voltage select!
> SdmmcInit=2 1
> mmc0:cmd5,32
> mmc0:cmd7,32
> mmc0:cmd5,32
> mmc0:cmd7,32
> mmc0:cmd5,32
> mmc0:cmd7,32
> SdmmcInit=0 1
>
> So I guess I should use a different miniloader for this reboot to work!?
> Or what else could be wrong here?
Hmm, I guess this is "the Tinkerboard problem" again - the patch above
would be OK if we could get as far as the kernel, but can't help if the
offending card is itself the boot medium. There was a proposal here:
https://patchwork.kernel.org/patch/10817217/
although I'm not sure what if any progress has been made since then.
Robin.
next prev parent reply other threads:[~2019-10-04 14:20 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-03 21:50 [PATCH 1/3] arm64: dts: rockchip: fix RockPro64 vdd-log regulator settings Soeren Moch
2019-10-03 21:50 ` [PATCH 2/3] arm64: dts: rockchip: fix RockPro64 sdhci settings Soeren Moch
2019-10-04 20:05 ` Heiko Stuebner
2019-10-03 21:50 ` [PATCH 3/3] arm64: dts: rockchip: fix RockPro64 sdmmc settings Soeren Moch
2019-10-04 0:01 ` Robin Murphy
2019-10-04 0:53 ` Soeren Moch
[not found] ` <a8b20c45-0426-ee42-4efc-52e56ea6bb20-S0/GAf8tV78@public.gmane.org>
2019-10-04 2:13 ` [PATCH 3/3] arm64: dts: rockchip: fix RockPro64 sdmmc settings【请注意,邮件由linux-rockchip-bounces+shawn.lin=rock-chips.com@lists.infradead.org代发】 Shawn Lin
2019-10-04 3:39 ` Soeren Moch
2019-10-04 14:20 ` Robin Murphy [this message]
2019-10-04 14:42 ` Jonas Karlman
[not found] ` <fc7dce53-ad39-26e3-7c19-ab60ff4cc332-5wv7dgnIgG8@public.gmane.org>
2019-10-04 15:33 ` Shawn Lin
2019-10-04 17:24 ` Sören Moch
2019-10-04 20:15 ` Soeren Moch
2019-10-04 20:18 ` Heiko Stuebner
2019-10-04 20:39 ` Sören Moch
2019-10-11 8:22 ` Jonas Karlman
2019-10-11 11:40 ` [PATCH 3/3] arm64: dts: rockchip: fix RockPro64 sdmmc settings Soeren Moch
2019-10-11 13:00 ` Robin Murphy
2019-10-11 14:16 ` Soeren Moch
2019-10-12 4:09 ` Shawn Lin
[not found] ` <971537f8-2fe5-9ebe-3f04-9e3d99c915a9-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2019-10-12 12:45 ` Soeren Moch
2019-10-04 16:39 ` [PATCH 3/3] arm64: dts: rockchip: fix RockPro64 sdmmc settings【请注意,邮件由linux-rockchip-bounces+shawn.lin=rock-chips.com@lists.infradead.org代发】 Soeren Moch
2019-10-04 20:04 ` [PATCH 1/3] arm64: dts: rockchip: fix RockPro64 vdd-log regulator settings Heiko Stuebner
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=fc7dce53-ad39-26e3-7c19-ab60ff4cc332@arm.com \
--to=robin.murphy@arm.com \
--cc=heiko@sntech.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=shawn.lin@rock-chips.com \
--cc=smoch@web.de \
/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;
as well as URLs for NNTP newsgroup(s).