<?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 How to enable i2c-3 in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-i2c-3/m-p/248246#M22128</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello together,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for a customer project we need to enable the bus i2c-3&lt;/P&gt;&lt;P&gt;When I lused i2cdetetct -l with the linux kernel 3.0.35_4.1.0 on which our system based, , I saw only, that the i2c bus 1,2 were found.&lt;/P&gt;&lt;P&gt;Inside&amp;nbsp; the kernel&amp;nbsp; source board_mxq6_sabreauto.c I found how the other i2c bus were added,&lt;/P&gt;&lt;P&gt;But i f I add in this way&amp;nbsp; for the i2c bus 3&amp;nbsp; and compile it, I got the bus number i2c-0&lt;/P&gt;&lt;P&gt;So the question is, what I have forgot to do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made the following addition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;static struct imxi2c_platform_data mx6_ces_coreboard_i2c2_data = {&lt;BR /&gt; .bitrate = 400000,&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;static struct i2c_board_info mxc_i2c3_board_info[] __initdata = {&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; I2C_BOARD_INFO("pcm5310", 0x46),&lt;BR /&gt; },&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; imx6q_add_imx_i2c(3, &amp;amp;mx6_ces_coreboard_i2c3_data);&lt;/P&gt;&lt;P&gt; i2c_register_board_info(3, mxc_i2c3_board_info,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ARRAY_SIZE(mxc_i2c3_board_info));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards Gerhard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Feb 2014 14:07:27 GMT</pubDate>
    <dc:creator>gerhardrauterbe</dc:creator>
    <dc:date>2014-02-20T14:07:27Z</dc:date>
    <item>
      <title>How to enable i2c-3</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-i2c-3/m-p/248246#M22128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello together,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for a customer project we need to enable the bus i2c-3&lt;/P&gt;&lt;P&gt;When I lused i2cdetetct -l with the linux kernel 3.0.35_4.1.0 on which our system based, , I saw only, that the i2c bus 1,2 were found.&lt;/P&gt;&lt;P&gt;Inside&amp;nbsp; the kernel&amp;nbsp; source board_mxq6_sabreauto.c I found how the other i2c bus were added,&lt;/P&gt;&lt;P&gt;But i f I add in this way&amp;nbsp; for the i2c bus 3&amp;nbsp; and compile it, I got the bus number i2c-0&lt;/P&gt;&lt;P&gt;So the question is, what I have forgot to do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made the following addition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;static struct imxi2c_platform_data mx6_ces_coreboard_i2c2_data = {&lt;BR /&gt; .bitrate = 400000,&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;static struct i2c_board_info mxc_i2c3_board_info[] __initdata = {&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; I2C_BOARD_INFO("pcm5310", 0x46),&lt;BR /&gt; },&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; imx6q_add_imx_i2c(3, &amp;amp;mx6_ces_coreboard_i2c3_data);&lt;/P&gt;&lt;P&gt; i2c_register_board_info(3, mxc_i2c3_board_info,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ARRAY_SIZE(mxc_i2c3_board_info));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards Gerhard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2014 14:07:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-i2c-3/m-p/248246#M22128</guid>
      <dc:creator>gerhardrauterbe</dc:creator>
      <dc:date>2014-02-20T14:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable i2c-3</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-i2c-3/m-p/248247#M22129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem was solved, it was a defect inside&amp;nbsp; the system, which did not show us the adress of the device. &lt;/P&gt;&lt;P&gt;The bus was found als i2c bus 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 08:29:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-i2c-3/m-p/248247#M22129</guid>
      <dc:creator>gerhardrauterbe</dc:creator>
      <dc:date>2014-02-26T08:29:32Z</dc:date>
    </item>
  </channel>
</rss>

