Re: Another problem with I2C multiplexer bus naming - solved

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 3/12/2015 2:44 AM, Wolfram Sang wrote:
On Wed, Mar 11, 2015 at 09:55:51PM -0700, Bob Feretich wrote:

I tried some random things and setting aliases in the dtsi file solved
the problem.

Good.

The use of an alias to set the name of an i2c bus should
be documented somewhere!

Well, send a patch adding some documentation where you would have liked
to see it.

Thanks,

    Wolfram

The first two places I looked for information were:
* https://www.kernel.org/doc/Documentation/devicetree/bindings/i2c/i2c-mux.txt
  This is where I found the info on specifying the multiplexer without
  aliases. It would seem logical to add the description of "how to
  explicitly name child buses" here.
* https://www.kernel.org/doc/Documentation/i2c/muxes/i2c-mux-gpio
  Even though this file is for gpio controlled multiplexers, it seemed
  like a good spot to look for information on how to specify i2c
  multiplexers in general. It only describes the board.c method of
  registering adapters. (I don't know which  gpio_i2cmux_platform_data
  fields would be the equivalent of specifying the device tree aliases.)
  Perhaps a cross-reference to the above documentation is appropriate,
  since use of customized board.c files is being discouraged.

Note that once device trees become dynamic and support hot plugging, the
alias bus naming solution becomes ineffective, unless there is a way to specify a hierarchical alias that references the bus/adapter id of the multiplexer.

Thanks,
Bob
--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux