<?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: LS1046ardb I2C address map with source code in Layerscape</title>
    <link>https://community.nxp.com/t5/Layerscape/LS1046ardb-I2C-address-map-with-source-code/m-p/1454675#M10516</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;DDR SPD please refer to fsl_ddr_set_intl3r&lt;/SPAN&gt;&amp;nbsp;in&amp;nbsp;./drivers/ddr/fsl/main.c of u-boot source code.&lt;/P&gt;
&lt;P&gt;No&amp;nbsp;&lt;SPAN&gt;Retimer configuration code, you could refer to&amp;nbsp;board_retimer_init in&amp;nbsp;./board/freescale/ls1043aqds/ls1043aqds.c.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 09 May 2022 03:44:05 GMT</pubDate>
    <dc:creator>yipingwang</dc:creator>
    <dc:date>2022-05-09T03:44:05Z</dc:date>
    <item>
      <title>LS1046ardb I2C address map with source code</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1046ardb-I2C-address-map-with-source-code/m-p/1447664#M10433</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I am trying to probe I2C0 in to LS1046ARDB at u-boot level, I am able to probe below address&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;=&amp;gt; i2c dev&lt;BR /&gt;Current bus is 0&lt;BR /&gt;=&amp;gt; i2c probe&lt;BR /&gt;Valid chip addresses: &lt;STRONG&gt;00 08 18 19 36 37 40 4C 51 52 53 69&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I am trying to find all these address in u-boot source only able to find 0x18, 0x51,0x53 in u-boot/include/configs/ls1046ardb.h file as below&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;#define SPD_EEPROM_ADDRESS 0x51&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;#define SPD_EEPROM_ADDRESS 0x51&lt;BR /&gt;&lt;BR /&gt;/* EEPROM */&lt;/SPAN&gt;
&lt;SPAN class=""&gt; #define CONFIG_ID_EEPROM&lt;/SPAN&gt;
&lt;SPAN class=""&gt; #define CONFIG_SYS_I2C_EEPROM_NXID&lt;/SPAN&gt;
&lt;SPAN class=""&gt; #define CONFIG_SYS_EEPROM_BUS_NUM		0&lt;/SPAN&gt;
&lt;SPAN class=""&gt; #define CONFIG_SYS_I2C_EEPROM_ADDR		0x53&lt;/SPAN&gt;
&lt;SPAN class=""&gt; #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN		1&lt;/SPAN&gt;
&lt;SPAN class=""&gt; #define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS	3&lt;/SPAN&gt;
&lt;SPAN class=""&gt; #define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS	5&lt;/SPAN&gt;
&lt;SPAN class=""&gt;&amp;gt; +#define I2C_RETIMER_ADDR			0x18&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please suggest where all other address are defined in source and how the read/write is happing with these slaves using mxc_i2c.c driver&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also We have manufactured our custom board based on the LS1046ARDB, if I want to add a new I2C device on I2C0 at U-boot level.&lt;/P&gt;&lt;P&gt;So what all modification required in firmware(u-boot, atf).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note:- We using &lt;STRONG&gt;flexbuild_la1224ardb_bsp1.9&lt;/STRONG&gt; LSDK&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2022 07:06:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1046ardb-I2C-address-map-with-source-code/m-p/1447664#M10433</guid>
      <dc:creator>RatanLal</dc:creator>
      <dc:date>2022-04-22T07:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: LS1046ardb I2C address map with source code</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1046ardb-I2C-address-map-with-source-code/m-p/1448271#M10439</link>
      <description>&lt;P&gt;Please refer to I2C bus device map on LS1046ARDB. If the device is not used in u-boot, it is not defined.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yipingwang_0-1650863710493.png" style="width: 695px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/177827i5471E81BA337CF49/image-dimensions/695x337?v=v2" width="695" height="337" role="button" title="yipingwang_0-1650863710493.png" alt="yipingwang_0-1650863710493.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Please refer to function&amp;nbsp;select_i2c_ch_pca9547 in&amp;nbsp;board/freescale/ls1046aqds/ls1046aqds.c, if you want to add an i2c device in u-boot.&lt;/P&gt;
&lt;P&gt;int select_i2c_ch_pca9547(u8 ch, int bus_num)&lt;BR /&gt;{&lt;BR /&gt;int ret;&lt;BR /&gt;#if CONFIG_IS_ENABLED(DM_I2C)&lt;BR /&gt;struct udevice *dev;&lt;/P&gt;
&lt;P&gt;ret = i2c_get_chip_for_busnum(bus_num, I2C_MUX_PCA_ADDR_PRI,&lt;BR /&gt;1, &amp;amp;dev);&lt;BR /&gt;if (ret) {&lt;BR /&gt;printf("%s: Cannot find udev for a bus %d\n", __func__,&lt;BR /&gt;bus_num);&lt;BR /&gt;return ret;&lt;BR /&gt;}&lt;BR /&gt;ret = dm_i2c_write(dev, 0, &amp;amp;ch, 1);&lt;BR /&gt;#else&lt;BR /&gt;ret = i2c_write(I2C_MUX_PCA_ADDR_PRI, 0, 1, &amp;amp;ch, 1);&lt;BR /&gt;#endif&lt;BR /&gt;if (ret) {&lt;BR /&gt;puts("PCA: failed to select proper channel\n");&lt;BR /&gt;return ret;&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;return 0;&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 05:17:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1046ardb-I2C-address-map-with-source-code/m-p/1448271#M10439</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2022-04-25T05:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: LS1046ardb I2C address map with source code</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1046ardb-I2C-address-map-with-source-code/m-p/1448481#M10445</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/52411" target="_self"&gt;&lt;SPAN class=""&gt;yipingwang&lt;/SPAN&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your quick support.&lt;/P&gt;&lt;P&gt;But In ls1046ardb we have ds110df111 retimer and DDR SPD etc... on I2C bus.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you suggest where all the code for Retimer configuration and DDR SPD(reading for spd and writing to DDR registers) is present for ls1046ardb in LSDK ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 10:52:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1046ardb-I2C-address-map-with-source-code/m-p/1448481#M10445</guid>
      <dc:creator>RatanLal</dc:creator>
      <dc:date>2022-04-25T10:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: LS1046ardb I2C address map with source code</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1046ardb-I2C-address-map-with-source-code/m-p/1454675#M10516</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;DDR SPD please refer to fsl_ddr_set_intl3r&lt;/SPAN&gt;&amp;nbsp;in&amp;nbsp;./drivers/ddr/fsl/main.c of u-boot source code.&lt;/P&gt;
&lt;P&gt;No&amp;nbsp;&lt;SPAN&gt;Retimer configuration code, you could refer to&amp;nbsp;board_retimer_init in&amp;nbsp;./board/freescale/ls1043aqds/ls1043aqds.c.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 03:44:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1046ardb-I2C-address-map-with-source-code/m-p/1454675#M10516</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2022-05-09T03:44:05Z</dc:date>
    </item>
  </channel>
</rss>

