...
MikroBus Pin | Pad Name (SOM side) | GPIO name | Linux GPIO number |
J8 [pin 2] | SAI3_RXD | GPIO4_IO30 | 126 |
J8 [pin 3] | ECSPI2_SS0 | GPIO5_IO13 | 141 |
J8 [pin 4] | ECSPI2_SCLK | GPIO5_IO10 | 138 |
J8 [pin 5] | ECSPI2_MISO | GPIO5_IO12 | 140 |
J8 [pin 6] | ECSPI2_MOSI | GPIO5_IO11 | 139 |
J10 [pin 1] | UART3_CTS -> ECSPI1_MISO | GPIO5_IO08 | 136 |
J10 [pin 2] | UART3_RTS -> ECSPI1_SS0 | GPIO5_IO09 | 137 |
J10 [pin 3] | UART3_RXD -> ECSPI1_SCLK | GPIO5_IO06 | 134 |
J10 [pin 4] | UART3_TXD -> ECSPI1_MOSI | GPIO5_IO07 | 135 |
J10 [pin 5] | I2C3_SCL (reserved) | GPIO5_IO18 | 146 |
J10 [pin 6] | I2C3_SDA (reserved) | GPIO5_IO19 | 147 |
Note: from here pins-imx8mp.h can find the all supported functions of the pin (IOMUX options), from the Define names of same PAD name
for example, this pad ECSPI2_SS0 can support 5 functions (UART RTC, UART CTS, SPI SS, GPIO, TPSMP_HDATA)
...
You can use this repo to generate the kerenl -
https://github.com/SolidRun/linux-stable/tree/linuxlf-5.4.y15-sr-imx8
Here can find the imx8mp device tree
https://github.com/SolidRun/linux-stable/blob/linux-5.4.y-imx8/arch/arm64/boot/dts/freescale/imx8mp-hummingboard-pulse.dts