embedded - Adding entry for an i2c device connected on i2c mux in linux device tree -


i using freescale powerpc 85xx processor linux 2.6.32.
i2c subsytem mapped @ address 0x03000 inside ccsr registers. want add rtc device,ds1338 (i2c addr: 0x68) connected i2c mux (address: 0x76) on channel 5 (selected writing 0xfd on control register).
without adding device in dts file, rtc device won't bind driver.
have following entry in device tree right now:

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

what after adding above information. had been device directly on i2c bus , not through mux, have added this:

  i2c@3000 {  /* i2c 1 */                  #address-cells = <1>;                  #size-cells = <0>;                  cell-index = <0>;                  compatible = "fsl-i2c";                  reg = <0x3000 0x100>;                  interrupts = <43 2>;                  interrupt-parent = <&mpic>;                   rtc:rtc@68 {                   compatible = "dallas,ds1307";                   reg = <0x68>;                  };                   dfsrr;               }; 

now mux in path, , having select channel, don't think know how make entry.


Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -