multiple slave addresses for single I2C chip

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

 



I'm new to Linux I2C community. So let me say "Hello!" here.

We are trying to drive some sensors on Linux. The sensors are connected to the board as I2C slaves.
I noticed the i2c_board_info can be used to register i2c slaves for the embedded platforms.
I noticed there's also "address_list" member in the i2c_driver which can be used to detect the I2C slaves.
The first question is: Which one shall I use to draft my sensor codes?

If i2c_board_info is used to register platform i2c slaves, there is another issue for me:
One of the sensors has 2 slave addresses. I noticed only one slave address can be declared in one i2c_board_info.
The second question is: Shall I register the sensor's resource using 2 i2c_board_info? By doing this, shall I draft a single .c file containing 2 "i2c_driver" for them?

Best regards/Lv Zheng

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