[PATCH] ARM: dts: stm32: Reinstate card detect behavior on DHSOM
Marek Vasut
marex at denx.de
Wed Oct 28 21:49:22 CET 2020
On 10/28/20 11:20 AM, Patrick DELAUNAY wrote:
> Hi Marek,
Hello Patrick,
[...]
>>> But after investigation the internall pull-up is not configurated in
>>> stm32 pinctrol (cheked with pinmux command) even it is requested in device-
>> tree of EV1/DK2.
>>>
>>> It is clearly a bug (I isolate the issue) and I am working on a patch
>>> (it should be sent to u-boot mailing liste next week).
>>>
>>>> btw it is bugged in SPL.
>>>
>>> Ah, what is the issue.
>>>
>>> In the stm32 driver or in the framework ?
>>>
>>> I will cross-check it also on EV1/DK2.
>>
>> The card is not detected in SPL again, same fail mode as before.
>> Now that I think about it, note to self, I should check whether the CD GPIO
>> controller node is u-boot,dm-spl
>
> I found a big issue in stm32 pincontrol: the bias configuration was only managed for ouput pin.
>
> With this serie [1], I checked the pull-up configuration (including in SPL by adding a debug trace).
>
> With [2], the bias configuration is now correct in DK2 / EV1 boards (even if the pull-up configuration is not mandatory,
> because I don't see cart detection issue on ST board).
>
> I expect this patch correct the DHSOM issue.
It does not, but the following does:
[PATCH] ARM: dts: stm32: Fix uSD card-detect GPIO on DHCOM
So it's a bug on both ends, good thing we found them.
Thanks!
More information about the U-Boot
mailing list