<?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: Interface TPM 2.0 SLB9670 with IMX8M processor in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Interface-TPM-2-0-SLB9670-with-IMX8M-processor/m-p/1430035#M188335</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/191504"&gt;@Jeevan&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;We faced a problem quite similar some months ago. It turns out that the SPI kernel driver doesn't work as expected. The problem is that the iMX8 SPI HW module pulls up the CS signal as soon as no data remains in the output buffer and this, puts the slave ( SLB9670 ) in a non selected mode, thus no communication is possible.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;We solved the problem changing the CS signal used by the driver&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;Change your dts from this:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_ecspi2&amp;gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;cs-gpios = GP_ECSPI2_CS0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;to this:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;pinctrl-0 = &amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;amp;pinctrl_ecspi3&lt;/SPAN&gt; &lt;SPAN&gt;&amp;amp;pinctrl_ecspi3_cs&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;cs-gpios = &amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;amp;gpio5&lt;/SPAN&gt; &lt;SPAN&gt;1&lt;/SPAN&gt; &lt;SPAN&gt;GPIO_ACTIVE_LOW&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;To sum up:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;- Use a spare pin of your iMX8 to control de CS of the SLB9670. Letting the SPI kernel driver to do it is a bad idea.&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Mar 2022 10:19:40 GMT</pubDate>
    <dc:creator>AlfTeleco</dc:creator>
    <dc:date>2022-03-17T10:19:40Z</dc:date>
    <item>
      <title>Interface TPM 2.0 SLB9670 with IMX8M processor</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Interface-TPM-2-0-SLB9670-with-IMX8M-processor/m-p/1420092#M187543</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;We are interfacing TPM2.0 SLB9670 with the IMX8M processor using SPI communication as shown in below schematic.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jeevan_0-1645985240157.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/171870i523D14162544ED1F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jeevan_0-1645985240157.png" alt="Jeevan_0-1645985240157.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We have made the following ECSPI2 configurations for SPI communication in the device tree file and its working as we are able to see &lt;STRONG&gt;spidev1.0&lt;/STRONG&gt; when we use &lt;STRONG&gt;ls -l /dev/spidev*&lt;/STRONG&gt; command in linux terminal of imx8m.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;ecspi2 {&lt;BR /&gt;pinctrl-names = "default";&lt;BR /&gt;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_ecspi2&amp;gt;;&lt;BR /&gt;fsl,spi-num-chipselects = &amp;lt;1&amp;gt;;&lt;BR /&gt;cs-gpios = GP_ECSPI2_CS0;&lt;BR /&gt;status = "okay";&lt;BR /&gt;#address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;#size-cells = &amp;lt;0&amp;gt;;&lt;/P&gt;&lt;P&gt;spidev@0 {&lt;BR /&gt;compatible = "spidev";&lt;BR /&gt;spi-max-frequency = &amp;lt;2000000&amp;gt;;&lt;BR /&gt;reg = &amp;lt;0&amp;gt;;&lt;BR /&gt;};&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Similarly we have made the following ECSPI2 configurations for TPM SLB9670 chip in the device tree file but we are not able to see TPM being detected when we use&lt;STRONG&gt; ls -l /dev/tpm*&lt;/STRONG&gt; command in linux terminal of imx8m.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;ecspi2 {&lt;BR /&gt;pinctrl-names = "default";&lt;BR /&gt;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_ecspi2&amp;gt;;&lt;BR /&gt;fsl,spi-num-chipselects = &amp;lt;1&amp;gt;;&lt;BR /&gt;cs-gpios = GP_ECSPI2_CS0;&lt;BR /&gt;status = "okay";&lt;BR /&gt;#address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;#size-cells = &amp;lt;0&amp;gt;;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;tpm0: slb9670@0 {&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; compatible = "infineon,slb9670";&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; reg = &amp;lt;0&amp;gt;;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; resets = &amp;lt;&amp;amp;tpm_reset&amp;gt;;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; spi-max-frequency = &amp;lt;38000000&amp;gt;;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; interrupt-parent = &amp;lt;&amp;amp;gpio3&amp;gt;;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; interrupts = IRQ_TYPE_LEVEL_LOW&amp;gt;;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; status = "okay";&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; };&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please suggest us some steps to make the TPM chip SLB9670 to detect in IMX8M processor&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 09:24:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Interface-TPM-2-0-SLB9670-with-IMX8M-processor/m-p/1420092#M187543</guid>
      <dc:creator>Jeevan</dc:creator>
      <dc:date>2022-03-02T09:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: Interface TPM 2.0 SLB9670 with IMX8M processor</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Interface-TPM-2-0-SLB9670-with-IMX8M-processor/m-p/1429422#M188300</link>
      <description>&lt;P&gt;Is there a driver for SLB9670 in the kernel? Do you select it in the menuconfig?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 15:40:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Interface-TPM-2-0-SLB9670-with-IMX8M-processor/m-p/1429422#M188300</guid>
      <dc:creator>jimmychan</dc:creator>
      <dc:date>2022-03-16T15:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Interface TPM 2.0 SLB9670 with IMX8M processor</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Interface-TPM-2-0-SLB9670-with-IMX8M-processor/m-p/1430035#M188335</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/191504"&gt;@Jeevan&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;We faced a problem quite similar some months ago. It turns out that the SPI kernel driver doesn't work as expected. The problem is that the iMX8 SPI HW module pulls up the CS signal as soon as no data remains in the output buffer and this, puts the slave ( SLB9670 ) in a non selected mode, thus no communication is possible.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;We solved the problem changing the CS signal used by the driver&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;Change your dts from this:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_ecspi2&amp;gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;cs-gpios = GP_ECSPI2_CS0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;to this:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;pinctrl-0 = &amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;amp;pinctrl_ecspi3&lt;/SPAN&gt; &lt;SPAN&gt;&amp;amp;pinctrl_ecspi3_cs&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;cs-gpios = &amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;amp;gpio5&lt;/SPAN&gt; &lt;SPAN&gt;1&lt;/SPAN&gt; &lt;SPAN&gt;GPIO_ACTIVE_LOW&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;To sum up:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;- Use a spare pin of your iMX8 to control de CS of the SLB9670. Letting the SPI kernel driver to do it is a bad idea.&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 10:19:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Interface-TPM-2-0-SLB9670-with-IMX8M-processor/m-p/1430035#M188335</guid>
      <dc:creator>AlfTeleco</dc:creator>
      <dc:date>2022-03-17T10:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Interface TPM 2.0 SLB9670 with IMX8M processor</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Interface-TPM-2-0-SLB9670-with-IMX8M-processor/m-p/1438751#M188958</link>
      <description>&lt;P&gt;Yes its already present in imx8m processor&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jeevan_0-1649148249899.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/175881i6AFCDD6DD604BBF7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jeevan_0-1649148249899.png" alt="Jeevan_0-1649148249899.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 08:45:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Interface-TPM-2-0-SLB9670-with-IMX8M-processor/m-p/1438751#M188958</guid>
      <dc:creator>Jeevan</dc:creator>
      <dc:date>2022-04-05T08:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Interface TPM 2.0 SLB9670 with IMX8M processor</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Interface-TPM-2-0-SLB9670-with-IMX8M-processor/m-p/1540046#M196547</link>
      <description>&lt;P&gt;Yes there is, it is named "tpm_tis_spi".&amp;nbsp;&lt;/P&gt;&lt;P&gt;You have to both select it in menuconfig and also place the device in the dtb.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 11:21:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Interface-TPM-2-0-SLB9670-with-IMX8M-processor/m-p/1540046#M196547</guid>
      <dc:creator>AlfTeleco</dc:creator>
      <dc:date>2022-10-19T11:21:21Z</dc:date>
    </item>
  </channel>
</rss>

