<?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のトピックProblem testing SPI bus using an EEPROM.</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Problem-testing-SPI-bus-using-an-EEPROM/m-p/180165#M7510</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm getting desperate and would appreciate some guidance on a problem that I am having interfacing with the SPI bus on my i.MX53. I am using kernel version 2.6.35.3 and I attempting to interface EEPROM AT25512 with CSPI1. Therefore I will using the at25 driver.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All signs are that the SPI bus has&amp;nbsp;initialized&amp;nbsp;based on the kernel messages.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that the kernel panics during boot when I have the following device information added to my board information file.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;static struct spi_eeprom at25512 = {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;.name = "at25512",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; .byte_len = 65536,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; .page_size = 128,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; .flags = EE_ADDR2,&lt;BR /&gt; };&lt;BR /&gt;&lt;BR /&gt;static struct spi_board_info eft_spi_board_info[] __initdata = {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.modalias = "at25",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.max_speed_hz = 1000000,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.bus_num = 1,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.chip_select = 0,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.platform_data = &amp;amp;at25512, &lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;},&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I also have the following register call added to the init function,&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;spi_register_board_info(eft_spi_board_info, ARRAY_SIZE(eft_spi_board_info));&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The kernel panics, however if I change &amp;nbsp;the modalias to something other than at25, the kernel will boot fine, but obviously I cannot use the EEPROM becuase the driver has not loaded.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are my structs ok? Can anyone else confirm that they have used the I.MX spi bus successfully and are there any known issues with SPI?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;W&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Oct 2011 09:37:22 GMT</pubDate>
    <dc:creator>wayne_ng</dc:creator>
    <dc:date>2011-10-26T09:37:22Z</dc:date>
    <item>
      <title>Problem testing SPI bus using an EEPROM.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Problem-testing-SPI-bus-using-an-EEPROM/m-p/180165#M7510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm getting desperate and would appreciate some guidance on a problem that I am having interfacing with the SPI bus on my i.MX53. I am using kernel version 2.6.35.3 and I attempting to interface EEPROM AT25512 with CSPI1. Therefore I will using the at25 driver.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All signs are that the SPI bus has&amp;nbsp;initialized&amp;nbsp;based on the kernel messages.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that the kernel panics during boot when I have the following device information added to my board information file.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;static struct spi_eeprom at25512 = {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;.name = "at25512",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; .byte_len = 65536,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; .page_size = 128,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; .flags = EE_ADDR2,&lt;BR /&gt; };&lt;BR /&gt;&lt;BR /&gt;static struct spi_board_info eft_spi_board_info[] __initdata = {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.modalias = "at25",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.max_speed_hz = 1000000,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.bus_num = 1,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.chip_select = 0,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.platform_data = &amp;amp;at25512, &lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;},&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I also have the following register call added to the init function,&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;spi_register_board_info(eft_spi_board_info, ARRAY_SIZE(eft_spi_board_info));&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The kernel panics, however if I change &amp;nbsp;the modalias to something other than at25, the kernel will boot fine, but obviously I cannot use the EEPROM becuase the driver has not loaded.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are my structs ok? Can anyone else confirm that they have used the I.MX spi bus successfully and are there any known issues with SPI?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;W&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2011 09:37:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Problem-testing-SPI-bus-using-an-EEPROM/m-p/180165#M7510</guid>
      <dc:creator>wayne_ng</dc:creator>
      <dc:date>2011-10-26T09:37:22Z</dc:date>
    </item>
  </channel>
</rss>

