arm64: dts: imx8mp-tqma8mpql: fix LDO5 power off
authorMarkus Niebel <Markus.Niebel@ew.tq-group.com>
Thu, 31 Jul 2025 09:16:52 +0000 (11:16 +0200)
committerShawn Guo <shawnguo@kernel.org>
Fri, 22 Aug 2025 08:19:14 +0000 (16:19 +0800)
commit5245dc5ff9b1f6c02ef948f623432805ea148fca
tree3ff84d5008f29ec4f4e06b89e1a5d7eec0116f43
parent8f5ae30d69d7543eee0d70083daf4de8fe15d585
arm64: dts: imx8mp-tqma8mpql: fix LDO5 power off

Fix SD card removal caused by automatic LDO5 power off after boot:

LDO5: disabling
mmc1: card 59b4 removed
EXT4-fs (mmcblk1p2): shut down requested (2)
Aborting journal on device mmcblk1p2-8.
JBD2: I/O error when updating journal superblock for mmcblk1p2-8.

To prevent this, add vqmmc regulator for USDHC, using a GPIO-controlled
regulator that is supplied by LDO5. Since this is implemented on SoM but
used on baseboards with SD-card interface, implement the functionality
on SoM part and optionally enable it on baseboards if needed.

Fixes: 418d1d840e42 ("arm64: dts: freescale: add initial device tree for TQMa8MPQL with i.MX8MP")
Signed-off-by: Markus Niebel <Markus.Niebel@ew.tq-group.com>
Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mp-tqma8mpql-mba8mp-ras314.dts
arch/arm64/boot/dts/freescale/imx8mp-tqma8mpql-mba8mpxl.dts
arch/arm64/boot/dts/freescale/imx8mp-tqma8mpql.dtsi