Adding entry for an i2c device connected on i2c mux in linux device tree
<p>I am using freescale powerpc 85xx processor with linux 2.6.32.<br>
 The i2c subsytem is mapped at address 0x03000 inside the ccsr registers.  I want to add an <strong>RTC device</strong>,DS1338 (i2c addr: <strong>0x68</strong>) connected to an I2c mux (address: <strong>0x76</strong>) on channel 5 (selected by writing <strong>0xfd</strong> on control register).<br>
Without adding the device in the dts file, the rtc device won't bind to driver.<br>
I have the following entry in my device tree right now:</p>

<pre><code>i2c@3000 {  /* I2C 1 */
             #address-cells = &lt;1&gt;;
             #size-cells = &lt;0&gt;;
             cell-index = &lt;0&gt;;
             compatible = "fsl-i2c";
             reg = &lt;0x3000 0x100&gt;;
             interrupts = &lt;43 2&gt;;
             interrupt-parent = &lt;&amp;mpic&gt;;
             dfsrr;

         };
</code></pre>

<p>What would it look like after adding the above information. Had it been a device directly on the i2c bus and not through mux, I would have added something like this:  </p>

<pre><code>  i2c@3000 {  /* I2C 1 */
                 #address-cells = &lt;1&gt;;
                 #size-cells = &lt;0&gt;;
                 cell-index = &lt;0&gt;;
                 compatible = "fsl-i2c";
                 reg = &lt;0x3000 0x100&gt;;
                 interrupts = &lt;43 2&gt;;
                 interrupt-parent = &lt;&amp;mpic&gt;;

                 rtc:rtc@68 {
                  compatible = "dallas,ds1307";
                  reg = &lt;0x68&gt;;
                 };

                 dfsrr;

             };
</code></pre>

<p>Now with the mux in the path, and having to select channel, I don't think I know how to make an entry. </p>