<?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: Use UART5 instead of SPI2.</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Use-UART5-instead-of-SPI2/m-p/1268901#M173287</link>
    <description>&lt;P&gt;Thanks, Igor,&lt;/P&gt;&lt;P&gt;I've checked everything again and the problem was that:&amp;nbsp;&lt;/P&gt;&lt;P&gt;MX6UL_PAD_CSI_DATA01__UART5_DCE_RX&lt;/P&gt;&lt;P&gt;was defined elsewhere.&lt;/P&gt;&lt;P&gt;I just want to confirm that the rest of the configuration was ok.&lt;/P&gt;</description>
    <pubDate>Tue, 27 Apr 2021 13:10:47 GMT</pubDate>
    <dc:creator>MWolosewicz</dc:creator>
    <dc:date>2021-04-27T13:10:47Z</dc:date>
    <item>
      <title>Use UART5 instead of SPI2.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Use-UART5-instead-of-SPI2/m-p/1268198#M173213</link>
      <description>&lt;P&gt;Hi guys&lt;/P&gt;&lt;P&gt;I want to use UART5 instead of SPI2 (the processor is IMX6G2C (IMXUL):&lt;/P&gt;&lt;DIV&gt;UART5_TX (ALT8) --&amp;gt; CSI_DATA00 (now SPI2_CLK)&lt;BR /&gt;UART5_RX (ALT8) --&amp;gt; CSI_DATA01 (now SPI2_CSn)&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;I've modified the device tree and after connecting with UART-&amp;gt;USB adapter I can see the echo on the terminal (remote, because the local one is disabled) but I can't see the device in /dev directory.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The &lt;FONT face="andale mono,times"&gt;ttymxc3&lt;/FONT&gt;&amp;nbsp;(uart4) is available at &lt;FONT face="andale mono,times"&gt;/dev/ttymxc3,&lt;/FONT&gt;&amp;nbsp;its debug port and it works like charm.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Some important parts of the the device tree (imx6ul-liteboard.dts):&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;/ {
chosen {
        stdout-path = &amp;amp;uart4;
        bootargs = "console=ttymxc3,115200";
    };
    // (...)
};

&amp;amp;iomuxc {
    // (...)
    pinctrl_uart5: uart5grp {
        fsl,pins = &amp;lt;
            MX6UL_PAD_CSI_DATA00__UART5_DCE_TX      0x1b0b1
            MX6UL_PAD_CSI_DATA01__UART5_DCE_RX      0x1b0b1
        &amp;gt;;
    };

    pinctrl_uart4: uart4grp {
        fsl,pins = &amp;lt;
            MX6UL_PAD_UART4_TX_DATA__UART4_DCE_TX   0x1b0b1
            MX6UL_PAD_UART4_RX_DATA__UART4_DCE_RX   0x1b0b1
        &amp;gt;;
    };

    // (...)
};

// (...)

&amp;amp;uart4 {
        pinctrl-names = "default";
        pinctrl-0 = &amp;lt;&amp;amp;pinctrl_uart4&amp;gt;;
        status = "okay";
};

&amp;amp;uart5 {
        pinctrl-names = "default";
        pinctrl-0 = &amp;lt;&amp;amp;pinctrl_uart5&amp;gt;;
        compatible = "fsl,imx21-uart";
        status = "okay";
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Adding or removing "compatible = "fsl,imx21-uart";" from uart5 changes nothing.&lt;/P&gt;&lt;DIV&gt;The dts includes (&lt;A href="https://github.com/torvalds/linux/blob/master/arch/arm/boot/dts/imx6ul-litesom.dtsi" target="_self"&gt;imx6ul-litesom.dtsi&lt;/A&gt;), which includes: (&lt;A href="https://github.com/torvalds/linux/blob/master/arch/arm/boot/dts/imx6ul.dtsi" target="_self"&gt;imx6ul.dtsi&lt;/A&gt;).&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;In the &lt;FONT face="andale mono,times"&gt;imx6ul.dtsi&lt;/FONT&gt; there is defined alias &lt;FONT face="andale mono,times"&gt;&lt;SPAN&gt;serial4 = &amp;amp;uart5; there are /dev/ACM0 to /dev/ACM7 but non of them respond.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Do you have an idea of what is missing?&lt;/DIV&gt;</description>
      <pubDate>Mon, 26 Apr 2021 13:53:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Use-UART5-instead-of-SPI2/m-p/1268198#M173213</guid>
      <dc:creator>MWolosewicz</dc:creator>
      <dc:date>2021-04-26T13:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Use UART5 instead of SPI2.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Use-UART5-instead-of-SPI2/m-p/1268392#M173228</link>
      <description>&lt;P&gt;Hi Maciej&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;one can try to rebuild image from scratch, also look at uart5 examples:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm/boot/dts/imx6ul-tx6ul-mainboard.dts?h=imx_5.4.70_2.3.0" target="_blank"&gt;https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm/boot/dts/imx6ul-tx6ul-mainboard.dts?h=imx_5.4.70_2.3.0&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm/boot/dts/imx6ul-tx6ul.dtsi?h=imx_5.4.70_2.3.0" target="_blank"&gt;https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm/boot/dts/imx6ul-tx6ul.dtsi?h=imx_5.4.70_2.3.0&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>Tue, 27 Apr 2021 00:23:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Use-UART5-instead-of-SPI2/m-p/1268392#M173228</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2021-04-27T00:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Use UART5 instead of SPI2.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Use-UART5-instead-of-SPI2/m-p/1268901#M173287</link>
      <description>&lt;P&gt;Thanks, Igor,&lt;/P&gt;&lt;P&gt;I've checked everything again and the problem was that:&amp;nbsp;&lt;/P&gt;&lt;P&gt;MX6UL_PAD_CSI_DATA01__UART5_DCE_RX&lt;/P&gt;&lt;P&gt;was defined elsewhere.&lt;/P&gt;&lt;P&gt;I just want to confirm that the rest of the configuration was ok.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 13:10:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Use-UART5-instead-of-SPI2/m-p/1268901#M173287</guid>
      <dc:creator>MWolosewicz</dc:creator>
      <dc:date>2021-04-27T13:10:47Z</dc:date>
    </item>
  </channel>
</rss>

