]> git.baikalelectronics.ru Git - uboot.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)
commit35a3f24dae9b6699e137a4b35e5b6b99a2abd832
tree67d960f91e12044d3fceb0c243e30267d2c41450
parentadc0716b2c19f069b2b952e0def2ed65d52b387c
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