Re: i2c Mux support for LTC4306 multiplexers

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

 



Rodolfo Giometti said the following:
> On Wed, Sep 01, 2010 at 03:10:53PM -0700, Joe Ghalam wrote:
>> Hi, I have been trying to include you i2c changes to bring in 
>> support for the i2c muxes in my system. I'm using Linux 2.6.33.2
>> with an MPC8547E.There are two IC2 buses hanging off the host
>> processor. The 2nd I2C bus has 3 LT4306 multiplexers (4 ch per
>> device).
>> 
>> My current setup (without the i2c-mux) uses the buses/i2c-mpc.c to
>> create two adapters mapped to /dev/i2c-0 and /dev/i2c-1 (these
>> devices are services by an i2c proxy). I would like to move away
>> from this setup by using i2c-mux + mux specific drivers.
>> 
>> I have ported your changes in my version of Linux as best as I
>> could, and I also used pca542x related files as templates to create
>> support for ltc4306. During the system boot up, as usual, I see two
>> "MPC adapter" adapters, 0 and 1, getting registered, and I also see
>> my LTC4306 device registered. But I haven't been able to change the
>> i2c-mpc to probe the already discovered buses for any muxes.

There should be no need to change the (original) adapter code.
You either need to enable automatic detection of your LT4306 via
normal_i2c + proper class declaration in your lt4306 module or register
it at startup via i2c_register_board_info() (e.g. in setup.c and/or
using device tree).
For testing you can add it dynamically from shell with something like:
echo "lt4306 0x70" > /sys/bus/i2c/devices/i2c-1/new-device"

> 
> Maybe you should provide some code and/or debugging messages... I'm 
> sorry but I don't understand your problem.
> 
AOL.
What is this i2c proxy?

-- 
KR
Michael
--
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