<?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: RS485 support on iMX8 ? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/RS485-support-on-iMX8/m-p/964217#M143683</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an IMX8M Mini processor that I would also like to use RS-485 on the linux side.&amp;nbsp; Base on your answer below, RS485 is currently not supported on the IMX8 family chip on Yocto Linux.&amp;nbsp; Is it not possible to enable RS-485 support on the linux kernel for IMX8M? I can see in the reference manual of the IMX8M and IMX8M mini that it does supports RS-485.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Quang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Aug 2019 18:03:53 GMT</pubDate>
    <dc:creator>qphan</dc:creator>
    <dc:date>2019-08-29T18:03:53Z</dc:date>
    <item>
      <title>RS485 support on iMX8 ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RS485-support-on-iMX8/m-p/964215#M143681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i Sir,&lt;/P&gt;&lt;P&gt;We will enable RS-485 function for imx8. I can see tty patch (fsl_lpuart.c) already add support for RD-485.&lt;/P&gt;&lt;P&gt;But lpuart probe not setting rs485 config when "&lt;STRONG&gt;lpuart_is_32(sport)&lt;/STRONG&gt;" always is ture. RS485 support on iMX8 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;// &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;drivers/tty/serial/fsl_lpuart.c&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #00bb00;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #00bb00;"&gt;static&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt;"&gt; &lt;SPAN style="color: #00bb00;"&gt;struct&lt;/SPAN&gt; lpuart_soc_data &lt;STRONG&gt;imx_data&lt;/STRONG&gt; = {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .iotype = &lt;STRONG&gt;UPIO_MEM32&lt;/STRONG&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .reg_off = IMX_REG_OFF,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #00bb00;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;static const struct of_device_id lpuart_dt_ids[] = {&lt;BR /&gt; { .compatible = "fsl,imx8qm-lpuart", .data = &amp;amp;imx_data, },&lt;BR /&gt; { /* sentinel */ }&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;static bool lpuart_is_32(struct lpuart_port *sport)&lt;BR /&gt;{&lt;BR /&gt; return sport-&amp;gt;port.iotype == &lt;STRONG&gt;UPIO_MEM32&lt;/STRONG&gt; ||&lt;BR /&gt; sport-&amp;gt;port.iotype == UPIO_MEM32BE;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;static int lpuart_probe(struct platform_device *pdev)&lt;BR /&gt;{&lt;BR /&gt; if (!&lt;STRONG&gt;lpuart_is_32(sport)&lt;/STRONG&gt;)&lt;BR /&gt; sport-&amp;gt;port.rs485_config = lpuart_config_rs485;&lt;/P&gt;&lt;P&gt;if (!&lt;STRONG&gt;lpuart_is_32(sport)&lt;/STRONG&gt; &amp;amp;&amp;amp;&lt;BR /&gt; of_property_read_bool(np, "linux,rs485-enabled-at-boot-time")) {&lt;BR /&gt; sport-&amp;gt;port.rs485.flags |= SER_RS485_ENABLED;&lt;BR /&gt; sport-&amp;gt;port.rs485.flags |= SER_RS485_RTS_ON_SEND;&lt;BR /&gt; writeb(UARTMODEM_TXRTSE, sport-&amp;gt;port.membase + UARTMODEM);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/linux-imx/commit/?h=imx_4.14.98_2.0.0_ga&amp;amp;id=03895cf41d1890a219679490428c8bf10b17e2b9" target="test_blank"&gt;https://source.codeaurora.org/external/imx/linux-imx/commit/?h=imx_4.14.98_2.0.0_ga&amp;amp;id=03895cf41d1890a219679490428c8bf10b17e2b9&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Aug 2019 07:15:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RS485-support-on-iMX8/m-p/964215#M143681</guid>
      <dc:creator>weikeng-jimmy</dc:creator>
      <dc:date>2019-08-23T07:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: RS485 support on iMX8 ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RS485-support-on-iMX8/m-p/964216#M143682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi JIMMY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you are right, "lpuart_is_32(sport)" is always true in fsl_lpuart.c:&lt;BR /&gt;imx_data = {..&amp;nbsp;&amp;nbsp;&amp;nbsp; .iotype = UPIO_MEM32, &lt;BR /&gt;&lt;A class="link-titled" href="https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/tty/serial/fsl_lpuart.c?h=imx_4.14.98_2.0.0_ga" title="https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/tty/serial/fsl_lpuart.c?h=imx_4.14.98_2.0.0_ga"&gt;fsl_lpuart.c\serial\tty\drivers - linux-imx - i.MX Linux kernel&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;so RS485 not supported on iMX8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Aug 2019 23:02:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RS485-support-on-iMX8/m-p/964216#M143682</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2019-08-23T23:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: RS485 support on iMX8 ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RS485-support-on-iMX8/m-p/964217#M143683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an IMX8M Mini processor that I would also like to use RS-485 on the linux side.&amp;nbsp; Base on your answer below, RS485 is currently not supported on the IMX8 family chip on Yocto Linux.&amp;nbsp; Is it not possible to enable RS-485 support on the linux kernel for IMX8M? I can see in the reference manual of the IMX8M and IMX8M mini that it does supports RS-485.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Quang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2019 18:03:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RS485-support-on-iMX8/m-p/964217#M143683</guid>
      <dc:creator>qphan</dc:creator>
      <dc:date>2019-08-29T18:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: RS485 support on iMX8 ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RS485-support-on-iMX8/m-p/1250804#M171319</link>
      <description>&lt;P&gt;I'm facing the same problem of rs485 support on imx8mm with yocto linux 4.14.98.&lt;/P&gt;&lt;P&gt;Why the imx8 doesn't support rs485?&lt;/P&gt;&lt;P&gt;Where should I patch if I need to enable rs485 ?&amp;nbsp; Just change the iotype to UPIO_PORT or something else ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yao&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 02:50:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RS485-support-on-iMX8/m-p/1250804#M171319</guid>
      <dc:creator>YCYao</dc:creator>
      <dc:date>2021-03-24T02:50:55Z</dc:date>
    </item>
  </channel>
</rss>

