]> git.dujemihanovic.xyz Git - u-boot.git/commit
ARM: dts: stm32: Auto-detect DHSOM with uSD level translator
authorMarek Vasut <marex@denx.de>
Sat, 13 Nov 2021 02:29:44 +0000 (03:29 +0100)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Tue, 30 Nov 2021 15:43:28 +0000 (16:43 +0100)
commit77d043cac66965d48381cfec8f227799202a0a30
tree67d960f91e12044d3fceb0c243e30267d2c41450
parent8e5266eefdd0fcc139113214a75f287168c006ec
ARM: dts: stm32: Auto-detect DHSOM with uSD level translator

The uSD level translator on DHSOM and Avenger96 are optional, however it
is possible to auto-detect it. This is done by setting SD CMD line high,
and then testing whether signal level on CK line matches the signal level
on CKIN line. If so, the uSD level translator is present, otherwise it is
not populated.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Patrice Chotard <patrice.chotard@foss.st.com>
Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
arch/arm/dts/stm32mp15xx-dhcom-u-boot.dtsi
arch/arm/dts/stm32mp15xx-dhcor-avenger96-u-boot.dtsi