I wonder if there's an error in ref manual "i.MX 8M Mini Applications Processor Reference Manual, Rev. 2, 08/2019" regarding the ALT mode to connect some of the signals of the USDHC port to phyiscal pads.
I've tried to provide the exact references in the documentation to make it easier to review my question, and have hopefully managed to explain my reasoning clearly enough.
Page 805, table 6-22, lists the IOMUX pin configuration for the 3 USDHC ports states the following:
RESET_B | SD1_RESET_B.alt5 | SD2_RESET_B.alt5 | SD3_RESET_B.alt5
This implies that physical pad SD2_RESET_B connects to signal RESET_B of USDHC2 when its IOMUX register is set to mode ALT5.
Page 1254, table 8-1, states the following: "GPIO2_IO19 | SD2_RESET_B | ALT5".
This implies that physical pad SD2_RESET_B connects to signal IO19 of GPIO2 when its IOMUX register is set to mode ALT5. This is in direct contradiction with table 6-22.
Page 1264, table 8-1, states the following: "USDHC2_RESET_B | SD2_RESET_B | ALT0
| GPIO1_IO08 | ALT5"
This implies that physical pad SD2_RESET_B connects to signal RESET_B of USDHC2 when SD2_RESET_B's IOMUX register is set to mode ALT0. This is in direct contradiction with table 6-22.
Page 1373, section 8.2.5.55 Pad Mux Register "IOMUXC_SW_MUX_CTL_PAD_SD2_RESET_B", states the following:
000 ALT0 — Select signal USDHC2_RESET_B
101 ALT5 — Select signal GPIO2_IO19
And that ALT5 is the default value.
This is in direct contradiction with table 6-22.
So given this, I'm intend on concluding that there is an error in table 6-22.
Except that I don't think the default value of IOMUXC_SW_MUX_CTL_PAD_SD2_RESET_B makes sense. Indeed, if the i.MX is to boot from USDHC2, then its signal RESET_B needs to be connected to pad SD2_RESET_B as no user software would have run to configure it.
So what ALT mode actuall connects SD2_RESET_B to USDHC2 RESET_B? And what is the default value of IOMUXC_SW_MUX_CTL_PAD_SD2_RESET_B?
I think the default value of IOMUXC_SW_MUX_CTL_PAD_SD2_RESET_B must connect SD2_RESET_B to USDHC2 signal RESET_B somehow (my understanding is that the i.MX relies on the default values of the IOMUX when booting, since no user software can run at this stage, only the boot ROM).
The same error appears to exist for other signals and all of the USDHC ports.
In addition, page 1262, table 8-1, states the following: "SRC_SYSTEM_RESET | SD2_RESET_B | ALT6", but this configuration is not described in IOMUXC_SW_MUX_CTL_PAD_SD2_RESET_B. This also seems like an omission / error.