<?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: [LS1028A]:How to access devices,which are connected through I2C HUB ?. in Processor Expert Software</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/LS1028A-How-to-access-devices-which-are-connected-through-I2C/m-p/1528921#M5271</link>
    <description>&lt;P&gt;Hi yipingwang,&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;I&amp;nbsp;&lt;SPAN&gt;followed drivers/i2c/muxes/i2c-mux-pca954x.c and created i2c hub device driver for&amp;nbsp;TCA9548APWR device as attached with this post.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Below is my dts modifuication:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;i2c2 {&lt;BR /&gt;status = "okay";&lt;BR /&gt;// i2c-sda-hold-time-ns = &amp;lt;1000&amp;gt;;&lt;BR /&gt;// clock-frequency = &amp;lt;0x186a0&amp;gt;;&lt;/P&gt;&lt;P&gt;i2c-mux@71 {&lt;BR /&gt;compatible = "ti,tca9548";&lt;BR /&gt;//compatible = "nxp,pca9548";&lt;/P&gt;&lt;P&gt;#address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;#size-cells = &amp;lt;0&amp;gt;;&lt;BR /&gt;reg = &amp;lt;0x71&amp;gt;;&lt;/P&gt;&lt;P&gt;i2c@1 {&lt;BR /&gt;#address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;#size-cells = &amp;lt;0&amp;gt;;&lt;BR /&gt;reg = &amp;lt;0x1&amp;gt;;&lt;/P&gt;&lt;P&gt;rtc:rtc_dev@51 {&lt;BR /&gt;#sound-dai-cells = &amp;lt;0&amp;gt;;&lt;BR /&gt;compatible = "nxp,pcf2129";&lt;BR /&gt;reg = &amp;lt;0x51&amp;gt;;&lt;BR /&gt;};&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;i2c@2 {&lt;BR /&gt;#address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;#size-cells = &amp;lt;0&amp;gt;;&lt;BR /&gt;reg = &amp;lt;0x02&amp;gt;;&lt;/P&gt;&lt;P&gt;eeprom:eeprom@50 {&lt;BR /&gt;compatible = "nxp,24lc02";&lt;BR /&gt;reg = &amp;lt;0x50&amp;gt;;&lt;BR /&gt;#shunt-resistor = &amp;lt;500&amp;gt;;&lt;BR /&gt;};&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;i2c@3 {&lt;BR /&gt;#address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;#size-cells = &amp;lt;0&amp;gt;;&lt;BR /&gt;reg = &amp;lt;0x3&amp;gt;;&lt;/P&gt;&lt;P&gt;pcie:pcie@38 {&lt;BR /&gt;compatible = "nxp,sa56004";&lt;BR /&gt;reg = &amp;lt;0x38&amp;gt;;&lt;BR /&gt;#vcc-supply = &amp;lt;&amp;amp;sb_3v3&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;i2c@4 {&lt;BR /&gt;#address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;#size-cells = &amp;lt;0&amp;gt;;&lt;BR /&gt;reg = &amp;lt;0x4&amp;gt;;&lt;/P&gt;&lt;P&gt;temp_sensor:temp-sensor@4d {&lt;BR /&gt;compatible = "nxp,sa56004";&lt;BR /&gt;reg = &amp;lt;0x4d&amp;gt;;&lt;BR /&gt;#vcc-supply = &amp;lt;&amp;amp;sb_3v3&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;};&lt;BR /&gt;};&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;while booting linux it is showing error as given below&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;i2c /dev entries driver&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;tca954x 2-0071: probe failed&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I tried to read and write in i2c hub switch as given below:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;i2ctransfer 2 w17@0x71 0x4 0x56-&lt;BR /&gt;i2ctransfer 2 w1@0x71 0x4 r1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;but it is showing &lt;STRONG&gt;"i2ctransfer: I2C_RDWR: Resource temporarily unavailable".&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I have attached&amp;nbsp; for linux booting log file,tca9548 driver code .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please suggest me what wrong i am doing ?.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is my dts and driver file for TCA9548 i2c hub switch is correct?.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit Keshri&lt;/P&gt;</description>
    <pubDate>Tue, 27 Sep 2022 15:03:17 GMT</pubDate>
    <dc:creator>Amit_Keshri</dc:creator>
    <dc:date>2022-09-27T15:03:17Z</dc:date>
    <item>
      <title>[LS1028A]:How to access devices,which are connected through I2C HUB ?.</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/LS1028A-How-to-access-devices-which-are-connected-through-I2C/m-p/1520206#M5244</link>
      <description>&lt;P&gt;Dear NXP Team,&lt;/P&gt;&lt;P&gt;In our LS1028A based custom board 5 different devices are connected through I2C hub (TCA9548APWR) in bus-2 as shown in attached file.&lt;/P&gt;&lt;P&gt;I am able to read and write in i2c devices connected through I2C Hub in U-Boot but same thing is not happening in Linux when i am trying to write and read through&amp;nbsp; &lt;STRONG&gt;i2ctransfer&lt;/STRONG&gt; utility and separate application and getting&amp;nbsp;&lt;STRONG&gt;Resource temporarily unavailable&lt;/STRONG&gt;(using own app)&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In &lt;STRONG&gt;U-Boot&lt;/STRONG&gt; 1st i am writing in i2c hub to select devices connected to hub then i am writing in devices and getting correct data as shown below:&lt;/P&gt;&lt;P&gt;-----------------------&lt;BR /&gt;#TO check RTC:&lt;BR /&gt;i2c probe&lt;BR /&gt;i2c dev 2&lt;BR /&gt;i2c probe&lt;BR /&gt;i2c mw 0x71 0x0 0x1&amp;nbsp; &amp;nbsp;(0x71 is I2C Hub address)&lt;BR /&gt;i2c probe&lt;BR /&gt;i2c mw 0x51 0xa2 0xe (0x51 in RTC address&lt;BR /&gt;i2c md 0x51 0xa2 0x1&lt;BR /&gt;------------------------&lt;BR /&gt;#TO check EEPROM2:&lt;BR /&gt;i2c mw 0x71 0x0 0x2&lt;BR /&gt;i2c probe&lt;BR /&gt;i2c mw 0x50 0x0 0xf&lt;BR /&gt;i2c md 0x50 0x0 0x1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But in linux with below i am using below utility:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;i2ctransfer 2 w17@0x71 0x0 0xff-&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/STRONG&gt;(to write&amp;nbsp; 0xff in i2c hub address 0x71 to enable all i2c hub&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; &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; &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; &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; &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;devices)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2ctransfer 2 w1@0x71 0x0 r1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/STRONG&gt;(to&amp;nbsp;read in i2c hub address 0x71)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;i2ctransfer 2 w17@0x51 0x0 0x77-&amp;nbsp; &amp;nbsp; (&lt;/STRONG&gt;to write&amp;nbsp; 0x77 in RTC devices of hub address 0x51&lt;STRONG&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; &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; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2ctransfer 2 w1@0x51 0x0 r1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/STRONG&gt;(to&amp;nbsp;read&amp;nbsp; RTC hub address 0x51)&lt;/P&gt;&lt;P&gt;But not getting proper data with utility.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I have attached required file with this post.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Below are my question:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;With&amp;nbsp;i2ctransfer utility i am able to read and write other EEPROM(@0x50) devices but why i could not able to read and write the devices which are connected through i2c hub,even after enabling i2c devices by writing in i2c hub?.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What changes are required in dts and .config file to access i2c hub devices ?.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please help me on this.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Amit Keshri&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Sep 2022 08:07:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/LS1028A-How-to-access-devices-which-are-connected-through-I2C/m-p/1520206#M5244</guid>
      <dc:creator>Amit_Keshri</dc:creator>
      <dc:date>2022-09-10T08:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: [LS1028A]:How to access devices,which are connected through I2C HUB ?.</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/LS1028A-How-to-access-devices-which-are-connected-through-I2C/m-p/1523316#M5250</link>
      <description>&lt;P&gt;Please refer to the following i2c switch example in&amp;nbsp;Documentation/devicetree/bindings/i2c/i2c-mux-pca954x.txt.&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;P&gt;i2c-switch@74 {&lt;BR /&gt;compatible = "nxp,pca9548";&lt;BR /&gt;#address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;#size-cells = &amp;lt;0&amp;gt;;&lt;BR /&gt;reg = &amp;lt;0x74&amp;gt;;&lt;/P&gt;
&lt;P&gt;interrupt-parent = &amp;lt;&amp;amp;ipic&amp;gt;;&lt;BR /&gt;interrupts = &amp;lt;17 IRQ_TYPE_LEVEL_LOW&amp;gt;;&lt;BR /&gt;interrupt-controller;&lt;BR /&gt;#interrupt-cells = &amp;lt;2&amp;gt;;&lt;/P&gt;
&lt;P&gt;i2c@2 {&lt;BR /&gt;#address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;#size-cells = &amp;lt;0&amp;gt;;&lt;BR /&gt;reg = &amp;lt;2&amp;gt;;&lt;/P&gt;
&lt;P&gt;eeprom@54 {&lt;BR /&gt;compatible = "atmel,24c08";&lt;BR /&gt;reg = &amp;lt;0x54&amp;gt;;&lt;BR /&gt;};&lt;BR /&gt;};&lt;/P&gt;
&lt;P&gt;i2c@4 {&lt;BR /&gt;#address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;#size-cells = &amp;lt;0&amp;gt;;&lt;BR /&gt;reg = &amp;lt;4&amp;gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;rtc@51 {&lt;BR /&gt;compatible = "nxp,pcf8563";&lt;BR /&gt;reg = &amp;lt;0x51&amp;gt;;&lt;BR /&gt;};&lt;BR /&gt;};&lt;BR /&gt;};&lt;/P&gt;
&lt;P&gt;Please refer to&amp;nbsp;PCA954x I2C mux/switch driver in&amp;nbsp;drivers/i2c/muxes/i2c-mux-pca954x.c.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 03:27:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/LS1028A-How-to-access-devices-which-are-connected-through-I2C/m-p/1523316#M5250</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2022-09-16T03:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: [LS1028A]:How to access devices,which are connected through I2C HUB ?.</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/LS1028A-How-to-access-devices-which-are-connected-through-I2C/m-p/1523817#M5251</link>
      <description>&lt;P&gt;Dear NXP Support Team,&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;I will check and update You.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit Keshri&lt;/P&gt;</description>
      <pubDate>Sat, 17 Sep 2022 06:41:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/LS1028A-How-to-access-devices-which-are-connected-through-I2C/m-p/1523817#M5251</guid>
      <dc:creator>Amit_Keshri</dc:creator>
      <dc:date>2022-09-17T06:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: [LS1028A]:How to access devices,which are connected through I2C HUB ?.</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/LS1028A-How-to-access-devices-which-are-connected-through-I2C/m-p/1523835#M5252</link>
      <description>&lt;P&gt;Dear NXP support Team,&lt;/P&gt;&lt;P&gt;I refer the dts file for i2c hub in&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;Documentation/devicetree/bindings/i2c/i2c-mux-pca954x.txt and i also check&amp;nbsp; Documentation/devicetree/bindings/i2c/i2c-mux.txt folder and modified my dts file but still i couldn't able to access i2c hub device((TCA9548APWR) and when i am trying to write any data from i2c hub devices through it is showing&amp;nbsp;&amp;nbsp;error as shown below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;root@TinyLinux:/usr/sbin# &lt;STRONG&gt;i2ctransfer 1 w17@0x71 0x0 0xff-&lt;/STRONG&gt;&lt;BR /&gt;i2ctransfer: WARNING! This program can confuse your I2C bus&lt;BR /&gt;Continue? [y/N] y&lt;BR /&gt;i2ctransfer: I2C_RDWR: &lt;STRONG&gt;Resource temporarily unavailable&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Below is my dts file for i2c_hub :&lt;/P&gt;&lt;P&gt;&amp;amp;i2c2 {&lt;BR /&gt;status = "okay";&lt;BR /&gt;i2c-sda-hold-time-ns = &amp;lt;1000&amp;gt;;&lt;BR /&gt;clock-frequency = &amp;lt;0x186a0&amp;gt;;&lt;/P&gt;&lt;P&gt;i2c-mux@71 {&lt;BR /&gt;compatible = "nxp,pca9548";&lt;BR /&gt;reg = &amp;lt;0x71&amp;gt;;&lt;BR /&gt;#address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;#size-cells = &amp;lt;0&amp;gt;;&lt;/P&gt;&lt;P&gt;i2c@1 {&lt;BR /&gt;#address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;#size-cells = &amp;lt;0&amp;gt;;&lt;BR /&gt;reg = &amp;lt;0x1&amp;gt;;&lt;/P&gt;&lt;P&gt;rtc:rtc_dev@51 {&lt;BR /&gt;#sound-dai-cells = &amp;lt;0&amp;gt;;&lt;BR /&gt;compatible = "nxp,pcf2129";&lt;BR /&gt;reg = &amp;lt;0x51&amp;gt;;&lt;BR /&gt;};&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;i2c@2 {&lt;BR /&gt;#address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;#size-cells = &amp;lt;0&amp;gt;;&lt;BR /&gt;reg = &amp;lt;0x02&amp;gt;;&lt;/P&gt;&lt;P&gt;eeprom:eeprom@50 {&lt;BR /&gt;compatible = "nxp,24lc02";&lt;BR /&gt;reg = &amp;lt;0x50&amp;gt;;&lt;BR /&gt;#shunt-resistor = &amp;lt;500&amp;gt;;&lt;BR /&gt;};&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;i2c@4 {&lt;BR /&gt;#address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;#size-cells = &amp;lt;0&amp;gt;;&lt;BR /&gt;reg = &amp;lt;0x4&amp;gt;;&lt;/P&gt;&lt;P&gt;temp_sensor:temp-sensor@4d {&lt;BR /&gt;compatible = "nxp,sa56004";&lt;BR /&gt;reg = &amp;lt;0x4d&amp;gt;;&lt;BR /&gt;#vcc-supply = &amp;lt;&amp;amp;sb_3v3&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please tell me where i am doing wrong ?.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What further modification is required ?&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit Keshri&lt;/P&gt;</description>
      <pubDate>Sat, 17 Sep 2022 13:33:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/LS1028A-How-to-access-devices-which-are-connected-through-I2C/m-p/1523835#M5252</guid>
      <dc:creator>Amit_Keshri</dc:creator>
      <dc:date>2022-09-17T13:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: [LS1028A]:How to access devices,which are connected through I2C HUB ?.</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/LS1028A-How-to-access-devices-which-are-connected-through-I2C/m-p/1524200#M5254</link>
      <description>&lt;P&gt;You need to follow&amp;nbsp;drivers/i2c/muxes/i2c-mux-pca954x.c.to create i2c hub device driver for&amp;nbsp;TCA9548APWR device. Then update "compatible" property in&amp;nbsp;&lt;A href="mailto:i2c-mux@71" target="_blank"&gt;i2c-mux@71&lt;/A&gt;&amp;nbsp;device node.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 09:30:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/LS1028A-How-to-access-devices-which-are-connected-through-I2C/m-p/1524200#M5254</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2022-09-19T09:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: [LS1028A]:How to access devices,which are connected through I2C HUB ?.</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/LS1028A-How-to-access-devices-which-are-connected-through-I2C/m-p/1528921#M5271</link>
      <description>&lt;P&gt;Hi yipingwang,&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;I&amp;nbsp;&lt;SPAN&gt;followed drivers/i2c/muxes/i2c-mux-pca954x.c and created i2c hub device driver for&amp;nbsp;TCA9548APWR device as attached with this post.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Below is my dts modifuication:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;i2c2 {&lt;BR /&gt;status = "okay";&lt;BR /&gt;// i2c-sda-hold-time-ns = &amp;lt;1000&amp;gt;;&lt;BR /&gt;// clock-frequency = &amp;lt;0x186a0&amp;gt;;&lt;/P&gt;&lt;P&gt;i2c-mux@71 {&lt;BR /&gt;compatible = "ti,tca9548";&lt;BR /&gt;//compatible = "nxp,pca9548";&lt;/P&gt;&lt;P&gt;#address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;#size-cells = &amp;lt;0&amp;gt;;&lt;BR /&gt;reg = &amp;lt;0x71&amp;gt;;&lt;/P&gt;&lt;P&gt;i2c@1 {&lt;BR /&gt;#address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;#size-cells = &amp;lt;0&amp;gt;;&lt;BR /&gt;reg = &amp;lt;0x1&amp;gt;;&lt;/P&gt;&lt;P&gt;rtc:rtc_dev@51 {&lt;BR /&gt;#sound-dai-cells = &amp;lt;0&amp;gt;;&lt;BR /&gt;compatible = "nxp,pcf2129";&lt;BR /&gt;reg = &amp;lt;0x51&amp;gt;;&lt;BR /&gt;};&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;i2c@2 {&lt;BR /&gt;#address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;#size-cells = &amp;lt;0&amp;gt;;&lt;BR /&gt;reg = &amp;lt;0x02&amp;gt;;&lt;/P&gt;&lt;P&gt;eeprom:eeprom@50 {&lt;BR /&gt;compatible = "nxp,24lc02";&lt;BR /&gt;reg = &amp;lt;0x50&amp;gt;;&lt;BR /&gt;#shunt-resistor = &amp;lt;500&amp;gt;;&lt;BR /&gt;};&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;i2c@3 {&lt;BR /&gt;#address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;#size-cells = &amp;lt;0&amp;gt;;&lt;BR /&gt;reg = &amp;lt;0x3&amp;gt;;&lt;/P&gt;&lt;P&gt;pcie:pcie@38 {&lt;BR /&gt;compatible = "nxp,sa56004";&lt;BR /&gt;reg = &amp;lt;0x38&amp;gt;;&lt;BR /&gt;#vcc-supply = &amp;lt;&amp;amp;sb_3v3&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;i2c@4 {&lt;BR /&gt;#address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;#size-cells = &amp;lt;0&amp;gt;;&lt;BR /&gt;reg = &amp;lt;0x4&amp;gt;;&lt;/P&gt;&lt;P&gt;temp_sensor:temp-sensor@4d {&lt;BR /&gt;compatible = "nxp,sa56004";&lt;BR /&gt;reg = &amp;lt;0x4d&amp;gt;;&lt;BR /&gt;#vcc-supply = &amp;lt;&amp;amp;sb_3v3&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;};&lt;BR /&gt;};&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;while booting linux it is showing error as given below&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;i2c /dev entries driver&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;tca954x 2-0071: probe failed&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I tried to read and write in i2c hub switch as given below:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;i2ctransfer 2 w17@0x71 0x4 0x56-&lt;BR /&gt;i2ctransfer 2 w1@0x71 0x4 r1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;but it is showing &lt;STRONG&gt;"i2ctransfer: I2C_RDWR: Resource temporarily unavailable".&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I have attached&amp;nbsp; for linux booting log file,tca9548 driver code .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please suggest me what wrong i am doing ?.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is my dts and driver file for TCA9548 i2c hub switch is correct?.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit Keshri&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2022 15:03:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/LS1028A-How-to-access-devices-which-are-connected-through-I2C/m-p/1528921#M5271</guid>
      <dc:creator>Amit_Keshri</dc:creator>
      <dc:date>2022-09-27T15:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: [LS1028A]:How to access devices,which are connected through I2C HUB ?.</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/LS1028A-How-to-access-devices-which-are-connected-through-I2C/m-p/1529402#M5272</link>
      <description>&lt;P&gt;In your driver code&amp;nbsp;&lt;SPAN&gt;i2c-mux-tca954x.c, please do the following modification.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{ .compatible = "ti,tca9548", .data = &amp;amp;chips[tca_9548] },&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Modify to&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{ .compatible = "ti,tca9548", .data = &amp;amp;chips[tca9548] },&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 08:51:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/LS1028A-How-to-access-devices-which-are-connected-through-I2C/m-p/1529402#M5272</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2022-09-28T08:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: [LS1028A]:How to access devices,which are connected through I2C HUB ?.</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/LS1028A-How-to-access-devices-which-are-connected-through-I2C/m-p/1530479#M5275</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/52411"&gt;@yipingwang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You for your reply.&lt;/P&gt;&lt;P&gt;As you suggestion i have added&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;{ .compatible = "ti,tca9548", .data = &amp;amp;chips[tca9548] }&lt;/STRONG&gt;, in&amp;nbsp; drivers/i2c/muxes/i2c-mux-tca954x.c file and generated kernel image but it is showing below error while booting kernel:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[ 6.081838] i2c /dev entries driver&lt;BR /&gt;[ 6.086363] i2c_set_clientdata, data-&amp;gt;client:0x5a071400&lt;BR /&gt;[ 6.091801] ret value of i2c_smbus_write_byte:-11&lt;BR /&gt;[ 6.096523] ret value of tca954x_init():-11&lt;BR /&gt;[ 6.100723] tca954x 1-0071: probe failed&lt;BR /&gt;[ 6.104696] i2c_set_clientdata, data-&amp;gt;client:0x5a071000&lt;BR /&gt;[ 6.110126]&lt;STRONG&gt; ret value of i2c_smbus_write_byte:-11&lt;/STRONG&gt;&lt;BR /&gt;[ 6.114845] ret value of tca954x_init():-11&lt;BR /&gt;[ 6.119041] &lt;STRONG&gt;tca954x 2-0071: probe failed&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Note:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Except&lt;STRONG&gt; tca954x 2-0071: probe failed&amp;nbsp;&lt;/STRONG&gt;I have&amp;nbsp; added other print in&amp;nbsp;tca954x.c for debugging.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please check &lt;U&gt;attached&amp;nbsp;tca954x.c&lt;/U&gt; file and&lt;U&gt; booting log&lt;/U&gt; file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What i can do to solve this error?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please suggest&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&amp;nbsp; Keshri&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 13:42:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/LS1028A-How-to-access-devices-which-are-connected-through-I2C/m-p/1530479#M5275</guid>
      <dc:creator>Amit_Keshri</dc:creator>
      <dc:date>2022-09-29T13:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: [LS1028A]:How to access devices,which are connected through I2C HUB ?.</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/LS1028A-How-to-access-devices-which-are-connected-through-I2C/m-p/1534639#M5284</link>
      <description>&lt;P&gt;Please contact TI to require Linux driver for&amp;nbsp;&lt;SPAN&gt;TCA9548APWR device.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 07:01:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/LS1028A-How-to-access-devices-which-are-connected-through-I2C/m-p/1534639#M5284</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2022-10-10T07:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: [LS1028A]:How to access devices,which are connected through I2C HUB ?.</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/LS1028A-How-to-access-devices-which-are-connected-through-I2C/m-p/1580735#M5393</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/52411"&gt;@yipingwang&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I2C Hub devices is working in linux and we are able to read and write without any hardware change and below are the changes in Software:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I2C Hub dts changes:&lt;/P&gt;&lt;P&gt;&amp;amp;i2c1 {&lt;BR /&gt;status = "okay";&lt;BR /&gt;/* i2c-sda-hold-time-ns = &amp;lt;1000&amp;gt;; */&lt;BR /&gt;/* clock-frequency = &amp;lt;0x186a0&amp;gt;; */&lt;/P&gt;&lt;P&gt;i2c-mux@71 {&lt;BR /&gt;/*compatible = "ti,tca9548"; */&lt;BR /&gt;compatible = "nxp,pca9548";&lt;BR /&gt;/* compatible = "ti,tca9539"; */&lt;BR /&gt;#address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;#size-cells = &amp;lt;0&amp;gt;;&lt;BR /&gt;reg = &amp;lt;0x71&amp;gt;;&lt;/P&gt;&lt;P&gt;i2c@1 {&lt;BR /&gt;#address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;#size-cells = &amp;lt;0&amp;gt;;&lt;BR /&gt;reg = &amp;lt;0x1&amp;gt;;&lt;/P&gt;&lt;P&gt;rtc_dev@51 {&lt;BR /&gt;#sound-dai-cells = &amp;lt;0&amp;gt;;&lt;BR /&gt;compatible = "nxp,pcf2129";&lt;BR /&gt;reg = &amp;lt;0x51&amp;gt;;&lt;BR /&gt;};&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;i2c@2 {&lt;BR /&gt;#address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;#size-cells = &amp;lt;0&amp;gt;;&lt;BR /&gt;reg = &amp;lt;0x02&amp;gt;;&lt;/P&gt;&lt;P&gt;eeprom@50 {&lt;BR /&gt;compatible = "nxp,pca9847";&lt;BR /&gt;/*compatible = "nxp,24lc02"; */&lt;BR /&gt;reg = &amp;lt;0x50&amp;gt;;&lt;BR /&gt;#shunt-resistor = &amp;lt;500&amp;gt;;&lt;BR /&gt;};&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;i2c@3 {&lt;BR /&gt;#address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;#size-cells = &amp;lt;0&amp;gt;;&lt;BR /&gt;reg = &amp;lt;0x3&amp;gt;;&lt;/P&gt;&lt;P&gt;pcie@38 {&lt;BR /&gt;compatible = "nxp,sa56004";&lt;BR /&gt;reg = &amp;lt;0x38&amp;gt;;&lt;BR /&gt;#vcc-supply = &amp;lt;&amp;amp;sb_3v3&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;};&lt;BR /&gt;i2c@4 {&lt;BR /&gt;#address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;#size-cells = &amp;lt;0&amp;gt;;&lt;BR /&gt;reg = &amp;lt;0x4&amp;gt;;&lt;/P&gt;&lt;P&gt;temp-sensor@4d {&lt;BR /&gt;compatible = "nxp,sa56004";&lt;BR /&gt;reg = &amp;lt;0x4d&amp;gt;;&lt;BR /&gt;#vcc-supply = &amp;lt;&amp;amp;sb_3v3&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;i2c@5 {&lt;BR /&gt;#address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;#size-cells = &amp;lt;0&amp;gt;;&lt;BR /&gt;reg = &amp;lt;0x5&amp;gt;;&lt;/P&gt;&lt;P&gt;xmc_conn:xmc@4d {&lt;BR /&gt;compatible = "nxp,sa56004";&lt;BR /&gt;reg = &amp;lt;0xd&amp;gt;;&lt;BR /&gt;#vcc-supply = &amp;lt;&amp;amp;sb_3v3&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;};&lt;BR /&gt;};&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;To Access I2C devices which are connected through I2C HUB:we are opening below device files name for read and write in our application:&lt;/P&gt;&lt;P&gt;for I2C HUB: "/dev/i2c-1"&lt;/P&gt;&lt;P&gt;RTC: "/dev/i2c-2"&lt;/P&gt;&lt;P&gt;EEPROM: "/dev/i2c-3&lt;/P&gt;&lt;P&gt;PCIe: "/dev/i2c-4"&lt;/P&gt;&lt;P&gt;Temperature sensor: "/dev/i2c-5"&lt;/P&gt;&lt;P&gt;we are writting 0xff to 0x0 register to I2C Hub(0x71) before to access above i2c hub devices.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit Keshri&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 10:11:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/LS1028A-How-to-access-devices-which-are-connected-through-I2C/m-p/1580735#M5393</guid>
      <dc:creator>Amit_Keshri</dc:creator>
      <dc:date>2023-01-11T10:11:56Z</dc:date>
    </item>
  </channel>
</rss>

