Re: [Linux-stm32] [PATCH 2/4] mmc: mmci: Add support for probing bus voltage level translator

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 1/16/21 7:04 PM, Marek Vasut wrote:
Add support for testing whether bus voltage level translator is present
and operational. This is useful on systems where the bus voltage level
translator is optional, as the translator can be auto-detected by the
driver and the feedback clock functionality can be disabled if it is
not present.

This requires additional pinmux state, "init", where the CMD, CK, CKIN
lines are not configured, so they can be claimed as GPIOs early on in
probe(). The translator test sets CMD high to avoid interfering with a
card, and then verifies whether signal set on CK is detected on CKIN.
If the signal is detected, translator is present, otherwise the CKIN
feedback clock are disabled.

Signed-off-by: Marek Vasut<marex@xxxxxxx>
Cc: Alexandre Torgue<alexandre.torgue@xxxxxx>
Cc: Linus Walleij<linus.walleij@xxxxxxxxxx>
Cc: Ludovic Barre<ludovic.barre@xxxxxx>
Cc: Ulf Hansson<ulf.hansson@xxxxxxxxxx>
Cc:linux-stm32@xxxxxxxxxxxxxxxxxxxxxxxxxxxx

Hi Marek,

I've tested it on STM32MP157C-EV1 (which uses st,use-ckin) and STM32MP157C-DK2 (which doesn't). The mmc_test sessions are OK on both boards.
Feel free to add my:
Tested-by: Yann Gautier <yann.gautier@xxxxxxxxxxx>


Regards,
Yann



[Index of Archives]     [Linux Memonry Technology]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux