<?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のトピックRe: EEPROM 24cs01 devicetree declaration</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/EEPROM-24cs01-devicetree-declaration/m-p/1252464#M171510</link>
    <description>&lt;P&gt;Hi _Anthony&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;as this is general linux issue may be recommended to post it on kernel mail list&lt;/P&gt;
&lt;P&gt;&lt;A href="http://vger.kernel.org/vger-lists.html#devicetree" target="_blank"&gt;http://vger.kernel.org/vger-lists.html#devicetree&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;</description>
    <pubDate>Fri, 26 Mar 2021 00:42:42 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2021-03-26T00:42:42Z</dc:date>
    <item>
      <title>EEPROM 24cs01 devicetree declaration</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/EEPROM-24cs01-devicetree-declaration/m-p/1252110#M171468</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm actually working with SoC i.MX6 and I would like to declare the EEPROM AT24CS01 in the devicetree.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I found devicetree bindings for the driver at24.c by following this link &lt;A href="https://elixir.bootlin.com/linux/v4.19.89/source/Documentation/devicetree/bindings/eeprom/at24.txt" target="_blank"&gt;https://elixir.bootlin.com/linux/v4.19.89/source/Documentation/devicetree/bindings/eeprom/at24.txt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Problem is: Among these components:&lt;/P&gt;&lt;P&gt;AT24c00&lt;BR /&gt;AT24c01&lt;BR /&gt;AT24c02&lt;BR /&gt;AT24c04&lt;BR /&gt;AT24c08&lt;BR /&gt;AT24c16&lt;BR /&gt;AT24c32&lt;BR /&gt;AT24c64&lt;BR /&gt;AT24c128&lt;BR /&gt;AT24c256&lt;BR /&gt;AT24c512&lt;BR /&gt;AT24c1024&lt;/P&gt;&lt;P&gt;We can distinguish two family of EEPROM.&amp;nbsp;&lt;/P&gt;&lt;P&gt;first family contains [ AT24c00 AT24c01 AT24c02 AT24c04 AT24c08 AT24c16]&lt;/P&gt;&lt;P&gt;and second family contains: [AT24c32 AT24c64 AT24c128 AT24c256 AT24c512 AT24c1024]&lt;/P&gt;&lt;P&gt;The first family of components has the particularity that each of these members needs 8 addresses to be declared on the I2C bus.&lt;BR /&gt;Usually these addresses take the range [0x50 0x51 0x52 0x53 0x54 0x55 0x56 0x57]&lt;BR /&gt;This is because the pins A0, A1, A2 of these components are not present. Unlike components of the second family&lt;BR /&gt;which have these pins and thus make it possible to select a single specific i2C address on the range [0x50 0x51 0x52 0x53 0x54 0x55 0x56 0x57].&lt;BR /&gt;For exemple,&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is how the AT24c01 (which belongs to family 1) is seen on the i2C bus:&lt;BR /&gt;0 1 2 3 4 5 6 7 8 9 a b c d e f&lt;BR /&gt;00: -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;50: 50 51 52 53 54 55 56 57 -- -- -- -- -- -- -- --&lt;BR /&gt;60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;70: -- -- -- -- -- -- -- --&lt;/P&gt;&lt;P&gt;whereas the AT24c32 (which belongs to family 2) is seen on the i2C bus like this:&lt;BR /&gt;0 1 2 3 4 5 6 7 8 9 a b c d e f&lt;BR /&gt;00: -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;50: 50 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;70: -- -- -- -- -- -- -- --&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;So when I activate the driver by specifing this in devicetree:&lt;/P&gt;&lt;P&gt;I2c-1{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; eepromFamily1: eepromFamily1@50 {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; compatible = "atmel,24c01";&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; reg = &amp;lt;0x50&amp;gt;;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; };&amp;nbsp;&lt;BR /&gt;};&lt;BR /&gt;I2c-2{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; eepromFamily2: eepromFamily2@50 {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; compatible = "atmel,at24c32";&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; reg = &amp;lt;0x50&amp;gt;;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; };&amp;nbsp;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;I have this behaviour:&lt;/P&gt;&lt;P&gt;For AT24c01 (which belongs to family 1) is seen on the i2C bus:&lt;BR /&gt;0 1 2 3 4 5 6 7 8 9 a b c d e f&lt;BR /&gt;00: -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;50: UU 51 52 53 54 55 56 57 -- -- -- -- -- -- -- --&lt;BR /&gt;60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;70: -- -- -- -- -- -- -- --&lt;/P&gt;&lt;P&gt;For AT24c32 (which belongs to family 2) is seen on the i2C bus like this:&lt;BR /&gt;0 1 2 3 4 5 6 7 8 9 a b c d e f&lt;BR /&gt;00: -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;50: UU -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;70: -- -- -- -- -- -- -- --&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;So in all cases, the driver load perfectly fine and create sysfs entry and access for the two family of eeprom.&lt;BR /&gt;But, I would like to know how to specify correctly "atmel,24c01" in devicetree to see the following thing in my I2c-1 bus.&lt;/P&gt;&lt;P&gt;0 1 2 3 4 5 6 7 8 9 a b c d e f&lt;BR /&gt;00: -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;50: UU UU UU UU UU UU UU UU -- -- -- -- -- -- -- --&lt;BR /&gt;60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;70: -- -- -- -- -- -- -- --&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;instead of&lt;/P&gt;&lt;P&gt;0 1 2 3 4 5 6 7 8 9 a b c d e f&lt;BR /&gt;00: -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;50: UU 51 52 53 54 55 56 57 -- -- -- -- -- -- -- --&lt;BR /&gt;60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;70: -- -- -- -- -- -- -- --&lt;/P&gt;&lt;P&gt;Is it problematic other adresses do not appears UU? The devicetree binding don't tell how to do for this type of EEPROM.&lt;/P&gt;&lt;P&gt;Thanks for all and best reguards, Anthony.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 11:02:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/EEPROM-24cs01-devicetree-declaration/m-p/1252110#M171468</guid>
      <dc:creator>_Anthony</dc:creator>
      <dc:date>2021-03-25T11:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: EEPROM 24cs01 devicetree declaration</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/EEPROM-24cs01-devicetree-declaration/m-p/1252464#M171510</link>
      <description>&lt;P&gt;Hi _Anthony&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;as this is general linux issue may be recommended to post it on kernel mail list&lt;/P&gt;
&lt;P&gt;&lt;A href="http://vger.kernel.org/vger-lists.html#devicetree" target="_blank"&gt;http://vger.kernel.org/vger-lists.html#devicetree&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 00:42:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/EEPROM-24cs01-devicetree-declaration/m-p/1252464#M171510</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2021-03-26T00:42:42Z</dc:date>
    </item>
  </channel>
</rss>

