<?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 Using the two LPSPI ports on the FRDM-MCXW71 with Zephyr? in Zephyr Project</title>
    <link>https://community.nxp.com/t5/Zephyr-Project/Using-the-two-LPSPI-ports-on-the-FRDM-MCXW71-with-Zephyr/m-p/2411208#M751</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We want to use the two LPSPI ports on the FRDM-MCXW71 in a Zephyr application.&lt;/P&gt;&lt;P&gt;However when I check in Zephyr 4.4.0, under&lt;/P&gt;&lt;P&gt;zephyrproject/zephyr/boards/nxp/frdm_mcxw71&lt;/P&gt;&lt;P&gt;I find the following files:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;frdm_mcxw_71.dts file.&lt;BR /&gt;It only has an entry for &amp;amp;lpspi1. (used in the spi flash demo)&lt;BR /&gt;The entry for &amp;amp;lpspi0 is not present?&lt;/LI&gt;&lt;LI&gt;frdm_mcxw71-pinctrl.dtsi&lt;BR /&gt;Also only an entry for &amp;amp;lpspi1&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Is there an example on how to use lpspi0 as well?&lt;/P&gt;&lt;P&gt;Which files outside of the regular zephyr project files (.overlay and prj.conf) need to be modified?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Fri, 04 Sep 2026 07:05:19 GMT</pubDate>
    <dc:creator>gja</dc:creator>
    <dc:date>2026-09-04T07:05:19Z</dc:date>
    <item>
      <title>Using the two LPSPI ports on the FRDM-MCXW71 with Zephyr?</title>
      <link>https://community.nxp.com/t5/Zephyr-Project/Using-the-two-LPSPI-ports-on-the-FRDM-MCXW71-with-Zephyr/m-p/2411208#M751</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We want to use the two LPSPI ports on the FRDM-MCXW71 in a Zephyr application.&lt;/P&gt;&lt;P&gt;However when I check in Zephyr 4.4.0, under&lt;/P&gt;&lt;P&gt;zephyrproject/zephyr/boards/nxp/frdm_mcxw71&lt;/P&gt;&lt;P&gt;I find the following files:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;frdm_mcxw_71.dts file.&lt;BR /&gt;It only has an entry for &amp;amp;lpspi1. (used in the spi flash demo)&lt;BR /&gt;The entry for &amp;amp;lpspi0 is not present?&lt;/LI&gt;&lt;LI&gt;frdm_mcxw71-pinctrl.dtsi&lt;BR /&gt;Also only an entry for &amp;amp;lpspi1&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Is there an example on how to use lpspi0 as well?&lt;/P&gt;&lt;P&gt;Which files outside of the regular zephyr project files (.overlay and prj.conf) need to be modified?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2026 07:05:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Zephyr-Project/Using-the-two-LPSPI-ports-on-the-FRDM-MCXW71-with-Zephyr/m-p/2411208#M751</guid>
      <dc:creator>gja</dc:creator>
      <dc:date>2026-09-04T07:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using the two LPSPI ports on the FRDM-MCXW71 with Zephyr?</title>
      <link>https://community.nxp.com/t5/Zephyr-Project/Using-the-two-LPSPI-ports-on-the-FRDM-MCXW71-with-Zephyr/m-p/2411363#M752</link>
      <description>&lt;P&gt;I noticed a specific driver in zephyrproject/zephyr/drivers/spi/spi_nxp_lpspi.&lt;/P&gt;&lt;P&gt;Not sure how this can be used for addressing both lpspi ports though.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2026 12:45:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Zephyr-Project/Using-the-two-LPSPI-ports-on-the-FRDM-MCXW71-with-Zephyr/m-p/2411363#M752</guid>
      <dc:creator>gja</dc:creator>
      <dc:date>2026-09-04T12:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: Using the two LPSPI ports on the FRDM-MCXW71 with Zephyr?</title>
      <link>https://community.nxp.com/t5/Zephyr-Project/Using-the-two-LPSPI-ports-on-the-FRDM-MCXW71-with-Zephyr/m-p/2412855#M754</link>
      <description>&lt;P&gt;Hello, hope you are doing well.&lt;/P&gt;
&lt;P lang="es-419"&gt;Both lpspi0 and lpspi1 are already declared at the SoC level in zephyr/dts/arm/nxp/mcx/nxp_mcxw7x_common.dtsi with all required hardware properties (registers, interrupts, clocks, FIFO sizes), but set to status = "disabled" by default. The board file frdm_mcxw71.dts only enables lpspi1 but lpspi0 can be enabled in the same way through your application overlay file.&lt;/P&gt;
&lt;P lang="es-419"&gt;You can take the existing lpspi1 configuration as reference. The basic overlay would look something like this, which you can then extend with your custom device implementation:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;amp;pinctrl {
    pinmux_lpspi0: pinmux_lpspi0 {
        group0 {
            pinmux = &amp;lt;LPSPI0_SIN_PTA17&amp;gt;,
                     &amp;lt;LPSPI0_SCK_PTA19&amp;gt;,
                     &amp;lt;LPSPI0_SOUT_PTA18&amp;gt;,
                     &amp;lt;LPSPI0_PCS0_PTA16&amp;gt;;
            slew-rate = "fast";
            drive-strength = "low";
        };
    };
};

&amp;amp;lpspi0 {
    status = "okay";
    pinctrl-0 = &amp;lt;&amp;amp;pinmux_lpspi0&amp;gt;;
    pinctrl-names = "default";
};&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Sofia.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2026 22:27:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Zephyr-Project/Using-the-two-LPSPI-ports-on-the-FRDM-MCXW71-with-Zephyr/m-p/2412855#M754</guid>
      <dc:creator>sofiaurueta</dc:creator>
      <dc:date>2026-09-10T22:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using the two LPSPI ports on the FRDM-MCXW71 with Zephyr?</title>
      <link>https://community.nxp.com/t5/Zephyr-Project/Using-the-two-LPSPI-ports-on-the-FRDM-MCXW71-with-Zephyr/m-p/2412997#M755</link>
      <description>&lt;P&gt;Hi Sofia,&lt;/P&gt;&lt;P&gt;I have created a minimal application with the overlay additions as suggested.&lt;/P&gt;&lt;P&gt;The application compiled, but binding the spi devices still failed.&lt;/P&gt;&lt;P&gt;Only when a label is added in the overlay sections, the binding works.&lt;/P&gt;&lt;P&gt;In overlay:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;amp;lpspi0 {
    ...
    label = "LPSPI_0";
}

&amp;amp;lpspi1 {
    ...
    label = "LPSPI_1";
}&lt;/LI-CODE&gt;&lt;P&gt;In main.c:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;const struct device *lpspi0_dev; 
lpspi0_dev = device_get_binding("LPSPI_0"); 
printk("%p\n,lpspi0_dev);&lt;/LI-CODE&gt;&lt;P&gt;Doing this for both lpspi0 and lpspi1 seems to work now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it expected to create those labels with each application?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;&lt;P&gt;Geert&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2026 09:26:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Zephyr-Project/Using-the-two-LPSPI-ports-on-the-FRDM-MCXW71-with-Zephyr/m-p/2412997#M755</guid>
      <dc:creator>gja</dc:creator>
      <dc:date>2026-09-11T09:26:13Z</dc:date>
    </item>
  </channel>
</rss>

