Hi Jimmychan,
Thanks for your quick reply. I have modified dts, unsucessfully.
It does not matter, i am working on SPI side now instead of UART.
I would like to use SPI2 which is on J1003 connector of IMX8MMEVK-BOARD.
I have found some examples of dts file, but i did not undestand this :
In the IMX 8M Processor Reference manual, i read this (i need ALT0 MUX MODE for ECSPI2_MOSI)
Where is this definition ? in DTS file ?
IOMUXC_SW_MUX_CTL_PAD_ECSPI2_MODI = bits 31-5 reserved, 4 SION, 3 reserved, MUX-MODE 1-3(Alt0 = 000)
So the value shoud be, with bit 4 set to 1 : 000000000 000000000 000000000 00010000 = 0x00000010, am i right ?
I some examples, i see :
+ pinctrl_ecspi2: ecspi2grp {
+ fsl,pins = <
+ MX8MM_IOMUXC_ECSPI2_SCLK_ECSPI2_SCLK 0x82
+ MX8MM_IOMUXC_ECSPI2_MOSI_ECSPI2_MOSI 0x82
+ MX8MM_IOMUXC_ECSPI2_MISO_ECSPI2_MISO 0x82
+ >;
+ };
+
+ pinctrl_ecspi2_cs: ecspi2cs {
+ fsl,pins = <
+ MX8MM_IOMUXC_ECSPI2_SS0_GPIO5_IO13 0x40000
+ >;
+ };
+
What is the 0x82 ?
Best regards,
Baptiste