<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX ProcessorsのトピックRe: IMX8mini EVK Using UART2 directly</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/IMX8mini-EVK-Using-UART2-directly/m-p/1420594#M187592</link>
    <description>&lt;P&gt;Hi Jimmychan,&lt;BR /&gt;Thanks for your quick reply. I have modified dts, unsucessfully.&lt;BR /&gt;It does not matter, i am working on SPI side now instead of UART.&lt;BR /&gt;I would like to use SPI2 which is on J1003 connector of IMX8MMEVK-BOARD.&lt;/P&gt;&lt;P&gt;I have found some examples of dts file, but i did not undestand this :&lt;/P&gt;&lt;P&gt;In the IMX 8M Processor Reference manual, i read this (i need ALT0 MUX MODE for ECSPI2_MOSI)&lt;BR /&gt;Where is this definition ? in DTS file ?&lt;BR /&gt;IOMUXC_SW_MUX_CTL_PAD_ECSPI2_MODI = bits 31-5 reserved, 4 SION, 3 reserved, MUX-MODE 1-3(Alt0 = 000)&lt;BR /&gt;So the value shoud be, with bit 4 set to 1 : 000000000&amp;nbsp;000000000&amp;nbsp;000000000&amp;nbsp;00010000 = 0x00000010, am i right ?&lt;/P&gt;&lt;P&gt;I some examples, i see :&lt;/P&gt;&lt;P&gt;+ pinctrl_ecspi2: ecspi2grp {&lt;BR /&gt;+ fsl,pins = &amp;lt;&lt;BR /&gt;+ MX8MM_IOMUXC_ECSPI2_SCLK_ECSPI2_SCLK 0x82&lt;BR /&gt;+ MX8MM_IOMUXC_ECSPI2_MOSI_ECSPI2_MOSI 0x82&lt;BR /&gt;+ MX8MM_IOMUXC_ECSPI2_MISO_ECSPI2_MISO 0x82&lt;BR /&gt;+ &amp;gt;;&lt;BR /&gt;+ };&lt;BR /&gt;+&lt;BR /&gt;+ pinctrl_ecspi2_cs: ecspi2cs {&lt;BR /&gt;+ fsl,pins = &amp;lt;&lt;BR /&gt;+ MX8MM_IOMUXC_ECSPI2_SS0_GPIO5_IO13 0x40000&lt;BR /&gt;+ &amp;gt;;&lt;BR /&gt;+ };&lt;BR /&gt;+&lt;/P&gt;&lt;P&gt;What is the 0x82 ?&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Baptiste&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Feb 2022 13:56:22 GMT</pubDate>
    <dc:creator>baptiste</dc:creator>
    <dc:date>2022-02-28T13:56:22Z</dc:date>
    <item>
      <title>IMX8mini EVK Using UART2 directly</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8mini-EVK-Using-UART2-directly/m-p/1416934#M187288</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I use an IMX8MINI EVK Board with an Azur SOM.&lt;BR /&gt;I want to use UART2 directly in Linux.&lt;BR /&gt;As far as i understand, i have soldered two wires in TP905 (TX2) and TP906 (RX2).&lt;BR /&gt;For now,&amp;nbsp; i have strapped the two wires to test, but it does not work.&lt;/P&gt;&lt;P&gt;I have read than A53 debug goes to Uart2. How to disable that ? I have also disabled DMA on uart2 and my dmesg console looks like that :&lt;/P&gt;&lt;P&gt;[ 0.148499] 30860000.serial: ttymxc0 at MMIO 0x30860000 (irq = 41, base_baud = 5000000) is a IMX&lt;BR /&gt;[ 0.149107] 30880000.serial: ttymxc2 at MMIO 0x30880000 (irq = 42, base_baud = 5000000) is a IMX&lt;BR /&gt;[ 0.149607] 30890000.serial: ttymxc1 at MMIO 0x30890000 (irq = 43, base_baud = 1500000) is a IMX&lt;/P&gt;&lt;P&gt;What should i do ?&lt;/P&gt;&lt;P&gt;For example, i try with a raspberry pi 4 and it is OK on GPIO 8-10.&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Baptiste&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Feb 2022 17:42:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8mini-EVK-Using-UART2-directly/m-p/1416934#M187288</guid>
      <dc:creator>baptiste</dc:creator>
      <dc:date>2022-02-21T17:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8mini EVK Using UART2 directly</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8mini-EVK-Using-UART2-directly/m-p/1418106#M187409</link>
      <description>&lt;P&gt;There is device tree file. Have you try to modify it?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/imx8mm-evk.dts?h=imx_5.4.47_2.2.0" target="_blank"&gt;https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/imx8mm-evk.dts?h=imx_5.4.47_2.2.0&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 09:13:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8mini-EVK-Using-UART2-directly/m-p/1418106#M187409</guid>
      <dc:creator>jimmychan</dc:creator>
      <dc:date>2022-02-23T09:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8mini EVK Using UART2 directly</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8mini-EVK-Using-UART2-directly/m-p/1420594#M187592</link>
      <description>&lt;P&gt;Hi Jimmychan,&lt;BR /&gt;Thanks for your quick reply. I have modified dts, unsucessfully.&lt;BR /&gt;It does not matter, i am working on SPI side now instead of UART.&lt;BR /&gt;I would like to use SPI2 which is on J1003 connector of IMX8MMEVK-BOARD.&lt;/P&gt;&lt;P&gt;I have found some examples of dts file, but i did not undestand this :&lt;/P&gt;&lt;P&gt;In the IMX 8M Processor Reference manual, i read this (i need ALT0 MUX MODE for ECSPI2_MOSI)&lt;BR /&gt;Where is this definition ? in DTS file ?&lt;BR /&gt;IOMUXC_SW_MUX_CTL_PAD_ECSPI2_MODI = bits 31-5 reserved, 4 SION, 3 reserved, MUX-MODE 1-3(Alt0 = 000)&lt;BR /&gt;So the value shoud be, with bit 4 set to 1 : 000000000&amp;nbsp;000000000&amp;nbsp;000000000&amp;nbsp;00010000 = 0x00000010, am i right ?&lt;/P&gt;&lt;P&gt;I some examples, i see :&lt;/P&gt;&lt;P&gt;+ pinctrl_ecspi2: ecspi2grp {&lt;BR /&gt;+ fsl,pins = &amp;lt;&lt;BR /&gt;+ MX8MM_IOMUXC_ECSPI2_SCLK_ECSPI2_SCLK 0x82&lt;BR /&gt;+ MX8MM_IOMUXC_ECSPI2_MOSI_ECSPI2_MOSI 0x82&lt;BR /&gt;+ MX8MM_IOMUXC_ECSPI2_MISO_ECSPI2_MISO 0x82&lt;BR /&gt;+ &amp;gt;;&lt;BR /&gt;+ };&lt;BR /&gt;+&lt;BR /&gt;+ pinctrl_ecspi2_cs: ecspi2cs {&lt;BR /&gt;+ fsl,pins = &amp;lt;&lt;BR /&gt;+ MX8MM_IOMUXC_ECSPI2_SS0_GPIO5_IO13 0x40000&lt;BR /&gt;+ &amp;gt;;&lt;BR /&gt;+ };&lt;BR /&gt;+&lt;/P&gt;&lt;P&gt;What is the 0x82 ?&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Baptiste&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 13:56:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8mini-EVK-Using-UART2-directly/m-p/1420594#M187592</guid>
      <dc:creator>baptiste</dc:creator>
      <dc:date>2022-02-28T13:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8mini EVK Using UART2 directly</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8mini-EVK-Using-UART2-directly/m-p/1421113#M187643</link>
      <description>&lt;P&gt;The pinmux definition of each pin can be found in the imx8mm-pinfunc.h.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/imx8mm-pinfunc.h?h=imx_5.4.47_2.2.0" target="_blank"&gt;https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/imx8mm-pinfunc.h?h=imx_5.4.47_2.2.0&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;0x82 is the value for PAD control register. (setting for PE, HYS, PUS, ODE, FSEL and DSE)&lt;/P&gt;
&lt;P&gt;for example : please read the chapter 8.2.5.280 Pad Control Register (IOMUXC_SW_PAD_CTL_PAD_ECSPI2_MOSI) in the i.MX8MM RM.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 09:16:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8mini-EVK-Using-UART2-directly/m-p/1421113#M187643</guid>
      <dc:creator>jimmychan</dc:creator>
      <dc:date>2022-03-01T09:16:04Z</dc:date>
    </item>
  </channel>
</rss>

