<?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: Issue in U-boot SPI driver initialization in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Issue-in-U-boot-SPI-driver-initialization/m-p/1724023#M212666</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Which print are you referring to? since you modify the code you have to build it, then burn again your board with the bootloader.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Fri, 15 Sep 2023 15:11:23 GMT</pubDate>
    <dc:creator>Bio_TICFSL</dc:creator>
    <dc:date>2023-09-15T15:11:23Z</dc:date>
    <item>
      <title>Issue in U-boot SPI driver initialization</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Issue-in-U-boot-SPI-driver-initialization/m-p/1723938#M212661</link>
      <description>&lt;P&gt;Hi Team,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; We are facing issue will initializing SPI driver in u-boot while i2c drivers seems to be working fine by default.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Basically we were trying to bringup TPM device via SPI interface at u-boot.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; We have done the same changes for linux kernel we could communicate with TPM on linux kernel, same we are trying to do on u-boot.&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;Changes we have done:&lt;BR /&gt;u-boot-imx/arch/arm/dts/imx8mm-evk.dtsi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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";

tpm0: slb9670@0 {
compatible = "tcg,tpm_tis-spi";
spi-max-frequency = &amp;lt;10000000&amp;gt;;
reg = &amp;lt;0&amp;gt;;
status = "okay";
};
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;In u-boot-imx/arch/arm/dts/imx8mm.dtsi:&lt;BR /&gt;we observe that compatiblility for spi --&amp;gt; fsl,imx51-ecspi&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kanimozhi_t_1-1694781121426.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/241220iA4BB01F9E0C787AA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kanimozhi_t_1-1694781121426.png" alt="kanimozhi_t_1-1694781121426.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;so we have added debug prints to check whether SPI is initialized at /u-boot-imx/drivers/spi/mxc_spi.c&lt;BR /&gt;in func --&amp;gt; mxc_spi_probe(struct udevice *bus).&lt;BR /&gt;&lt;BR /&gt;But we couldn't see any debug prints at u-boot we have added.&lt;BR /&gt;But i2c_probe function gets invoked.&lt;BR /&gt;&lt;BR /&gt;Please clarify us the issue.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Kanimozhi&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2023 13:05:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Issue-in-U-boot-SPI-driver-initialization/m-p/1723938#M212661</guid>
      <dc:creator>kanimozhi_t</dc:creator>
      <dc:date>2023-09-15T13:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in U-boot SPI driver initialization</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Issue-in-U-boot-SPI-driver-initialization/m-p/1724023#M212666</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Which print are you referring to? since you modify the code you have to build it, then burn again your board with the bootloader.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2023 15:11:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Issue-in-U-boot-SPI-driver-initialization/m-p/1724023#M212666</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2023-09-15T15:11:23Z</dc:date>
    </item>
  </channel>
</rss>

