<?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>topic Re: Can't enable UART4 on imx8mm using Device Tree in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Can-t-enable-UART4-on-imx8mm-using-Device-Tree/m-p/1377152#M183546</link>
    <description>&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;Thank you for good example about UART.&lt;BR /&gt;I think I made the same changes as in the example, but it does not work and I don't understand why.&lt;/P&gt;&lt;P&gt;Vitali&lt;/P&gt;</description>
    <pubDate>Thu, 25 Nov 2021 14:51:09 GMT</pubDate>
    <dc:creator>Vitali_K</dc:creator>
    <dc:date>2021-11-25T14:51:09Z</dc:date>
    <item>
      <title>Can't enable UART4 on imx8mm using Device Tree</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Can-t-enable-UART4-on-imx8mm-using-Device-Tree/m-p/1376568#M183506</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to connect a modem chip on the board, which design is based on imx8mm.&lt;BR /&gt;The modem is connected to pins X1_4 (UART4_TXD) and X2_67 (UART4_RXD)&lt;/P&gt;&lt;P&gt;I made the following changes in the device tree:&lt;/P&gt;&lt;P&gt;&amp;amp;uart4 {&lt;BR /&gt;pinctrl-names = "default";&lt;BR /&gt;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_uart4&amp;gt;;&lt;BR /&gt;assigned-clocks = &amp;lt;&amp;amp;clk IMX8MM_CLK_UART4&amp;gt;;&lt;BR /&gt;assigned-clock-parents = &amp;lt;&amp;amp;clk IMX8MM_SYS_PLL1_80M&amp;gt;;&lt;BR /&gt;/delete-property/ dmas;&lt;BR /&gt;/delete-property/ dma-names;&lt;BR /&gt;fsl,dte_mode;&lt;BR /&gt;status = "okay";&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;pinctrl_uart4: uart4grp {&lt;BR /&gt;fsl,pins = &amp;lt;&lt;BR /&gt;// reverted TX /RX in DTE mode&lt;BR /&gt;MX8MM_IOMUXC_UART4_RXD_UART4_DTE_TX 0x140&lt;BR /&gt;MX8MM_IOMUXC_UART4_TXD_UART4_DTE_RX 0x140&lt;BR /&gt;&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;Even if ttymxc3 created, the bit UARTEN of UART4_UCR1 shows that the UART4 is disabled. Why?&lt;/P&gt;&lt;P&gt;[ 1.037192] 30a60000.serial: ttymxc3 at MMIO 0x30a60000 (irq = 39, base_baud = 5000000) is a IMX&lt;/P&gt;&lt;P&gt;~# devmem2 0x30a60080&lt;BR /&gt;/dev/mem opened.&lt;BR /&gt;Memory mapped at address 0xffffb460a000.&lt;BR /&gt;Read at address 0x30A60080 (0xffffb460a080): 0x00000000&lt;/P&gt;&lt;P&gt;The bit DCEDTE in UARTx_UFCR also is not set - meaning that DTE is not configured:&lt;/P&gt;&lt;P&gt;# devmem2 0x30a60090&lt;BR /&gt;/dev/mem opened.&lt;BR /&gt;Memory mapped at address 0xffff90e96000.&lt;BR /&gt;Read at address 0x30A60090 (0xffff90e96090): 0x00000801&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How do I enable UART4 correctly?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Vitali&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 22:12:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Can-t-enable-UART4-on-imx8mm-using-Device-Tree/m-p/1376568#M183506</guid>
      <dc:creator>Vitali_K</dc:creator>
      <dc:date>2021-11-24T22:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Can't enable UART4 on imx8mm using Device Tree</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Can-t-enable-UART4-on-imx8mm-using-Device-Tree/m-p/1376598#M183510</link>
      <description>&lt;P&gt;Hi Vitali&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for uart4 one can look at below example&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/boundarydevices/linux-imx6/blob/boundary-imx_5.4.x_2.3.0/arch/arm64/boot/dts/freescale/imx8mm-kea.dts" target="_blank"&gt;https://github.com/boundarydevices/linux-imx6/blob/boundary-imx_5.4.x_2.3.0/arch/arm64/boot/dts/freescale/imx8mm-kea.dts&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;In nxp releases uart4 can be used by M4 SDK&amp;nbsp;&amp;nbsp; &lt;A href="https://mcuxpresso.nxp.com/en/welcome" target="_blank"&gt;https://mcuxpresso.nxp.com/en/welcome&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;</description>
      <pubDate>Thu, 25 Nov 2021 00:24:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Can-t-enable-UART4-on-imx8mm-using-Device-Tree/m-p/1376598#M183510</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2021-11-25T00:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Can't enable UART4 on imx8mm using Device Tree</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Can-t-enable-UART4-on-imx8mm-using-Device-Tree/m-p/1377152#M183546</link>
      <description>&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;Thank you for good example about UART.&lt;BR /&gt;I think I made the same changes as in the example, but it does not work and I don't understand why.&lt;/P&gt;&lt;P&gt;Vitali&lt;/P&gt;</description>
      <pubDate>Thu, 25 Nov 2021 14:51:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Can-t-enable-UART4-on-imx8mm-using-Device-Tree/m-p/1377152#M183546</guid>
      <dc:creator>Vitali_K</dc:creator>
      <dc:date>2021-11-25T14:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Can't enable UART4 on imx8mm using Device Tree</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Can-t-enable-UART4-on-imx8mm-using-Device-Tree/m-p/1377963#M183631</link>
      <description>&lt;P&gt;because you haven't used the uart4.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;here is the test, use the uart4 as second login/debug console.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled1.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/163402iA1FCAF44DC2D301A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled1.png" alt="Untitled1.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 06:30:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Can-t-enable-UART4-on-imx8mm-using-Device-Tree/m-p/1377963#M183631</guid>
      <dc:creator>BiyongSUN</dc:creator>
      <dc:date>2021-11-29T06:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: Can't enable UART4 on imx8mm using Device Tree</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Can-t-enable-UART4-on-imx8mm-using-Device-Tree/m-p/1378028#M183637</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;BiyongSUN&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;, thank you for the reply.&lt;/P&gt;&lt;P&gt;You're absolutely right - I checked the UARTEN bit on the wrong point of time. After using the UART it is set: "Read at address 0x30A60080 (0xffffb460a080): 0x00000201"&lt;/P&gt;&lt;P&gt;I've found the error related to DTE mode too: it must be "fsl,dt&lt;STRONG&gt;e-m&lt;/STRONG&gt;ode", not "fsl,dt&lt;STRONG&gt;e_m&lt;/STRONG&gt;ode" (shame on me!)&lt;/P&gt;&lt;P&gt;Vitali&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 07:53:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Can-t-enable-UART4-on-imx8mm-using-Device-Tree/m-p/1378028#M183637</guid>
      <dc:creator>Vitali_K</dc:creator>
      <dc:date>2021-11-29T07:53:46Z</dc:date>
    </item>
  </channel>
</rss>

