<?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: SPI Chip Select Toggling Problem on imx8mplus in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/SPI-Chip-Select-Toggling-Problem-on-imx8mplus/m-p/2146592#M239846</link>
    <description>After I applied this structure to my dts, CS stayed stay low for the entire transaction.&lt;BR /&gt;Thanks..</description>
    <pubDate>Tue, 05 Aug 2025 06:05:05 GMT</pubDate>
    <dc:creator>Baha_Yenioglu</dc:creator>
    <dc:date>2025-08-05T06:05:05Z</dc:date>
    <item>
      <title>SPI Chip Select Toggling Problem on imx8mplus</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SPI-Chip-Select-Toggling-Problem-on-imx8mplus/m-p/2146245#M239829</link>
      <description>&lt;P&gt;Greetings,&lt;BR /&gt;I’m currently trying to communicate between the i.MX 8M Plus and some module via SPI. However, I’m seeing that the chip-select line toggles on each byte transfer, when it should stay low for the entire transaction for the command and its arguments. Is this the default behavior? If so, how can I keep CS asserted throughout the whole communication? Also, what's the default SPI_MODE in terms of phase and polarity of the clock ?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Baha_Yenioglu_0-1754317519462.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/350826i4E5E49604FC712A9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Baha_Yenioglu_0-1754317519462.png" alt="Baha_Yenioglu_0-1754317519462.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2025 14:29:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SPI-Chip-Select-Toggling-Problem-on-imx8mplus/m-p/2146245#M239829</guid>
      <dc:creator>Baha_Yenioglu</dc:creator>
      <dc:date>2025-08-04T14:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Chip Select Toggling Problem on imx8mplus</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SPI-Chip-Select-Toggling-Problem-on-imx8mplus/m-p/2146314#M239835</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/251546"&gt;@Baha_Yenioglu&lt;/a&gt;!&lt;/P&gt;
&lt;P&gt;Thank you for reaching out to NXP Support!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please share your device tree configuration?&lt;BR /&gt;I've encountered similar behavior before when the configuration doesn't follow the structure shown in the example below:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;amp;ecspi2 {
    #address-cells = &amp;lt;1&amp;gt;;
    #size-cells = &amp;lt;0&amp;gt;;
    fsl,spi-num-chipselects = &amp;lt;1&amp;gt;;
    pinctrl-names = "default";
    pinctrl-0 = &amp;lt;&amp;amp;pinctrl_ecspi2 &amp;amp;pinctrl_ecspi2_cs&amp;gt;;
    cs-gpios = &amp;lt;&amp;amp;gpio5 13 GPIO_ACTIVE_LOW&amp;gt;;
    status = "okay";

    spidev1: spi@0 {
        reg = &amp;lt;0&amp;gt;;
        compatible = "rohm,dh2228fv";
        spi-max-frequency = &amp;lt;500000&amp;gt;;
    };
};

...

pinctrl_ecspi2: ecspi2grp {
    fsl,pins = &amp;lt;
        MX8MP_IOMUXC_ECSPI2_SCLK__ECSPI2_SCLK      0x82
        MX8MP_IOMUXC_ECSPI2_MOSI__ECSPI2_MOSI      0x82
        MX8MP_IOMUXC_ECSPI2_MISO__ECSPI2_MISO      0x82
    &amp;gt;;
};

pinctrl_ecspi2_cs: ecspi2cs {
    fsl,pins_SS0__GPIO5_IO13        0x40000
    &amp;gt;;
};
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if your configuration differs or if you need help adapting it.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Chavira&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2025 17:00:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SPI-Chip-Select-Toggling-Problem-on-imx8mplus/m-p/2146314#M239835</guid>
      <dc:creator>Chavira</dc:creator>
      <dc:date>2025-08-04T17:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Chip Select Toggling Problem on imx8mplus</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SPI-Chip-Select-Toggling-Problem-on-imx8mplus/m-p/2146592#M239846</link>
      <description>After I applied this structure to my dts, CS stayed stay low for the entire transaction.&lt;BR /&gt;Thanks..</description>
      <pubDate>Tue, 05 Aug 2025 06:05:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SPI-Chip-Select-Toggling-Problem-on-imx8mplus/m-p/2146592#M239846</guid>
      <dc:creator>Baha_Yenioglu</dc:creator>
      <dc:date>2025-08-05T06:05:05Z</dc:date>
    </item>
  </channel>
</rss>

