Register I2C devices on different channels to pca9548

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Register I2C devices on different channels to pca9548

971 Views
yaotienhuang
Contributor II

Hi,

We used pca9548 to connect many devices. For example, channel 3 connect an EEPROM and channel 4 connect tmp421 sensor.
Currently, we can see two device nodes for channel 3 and channel 4. We hope tmp421 sensor as a device node in system. Do you know how to register I2C devices on different channels to pca9548 by i2c_new_device()?
Thanks.

2 Replies

691 Views
Pavel
NXP Employee
NXP Employee

Look at the following pages:

linux/arch/arm/boot/dts/zynq-zc702.dts - Elixir - Free Electrons 

and

Solved: ds2482 driver registered for i2c-1 but not i2c-8 - Community Forums 

See also the following documents:

http://cache.nxp.com/docs/en/application-note/AN5125.pdf?fsrch=1&sr=5&pageNum=1

and

http://cache.nxp.com/docs/en/user-guide/QCVS_HWDT_User_Guide.pdf?fsrch=1&sr=8&pageNum=1


Have a great day,
Pavel Chubakov

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

691 Views
yaotienhuang
Contributor II

On my board, main CPU is intel x86 family, it don't support device tree.

Dose other plan can fix my problem?

Thanks.

0 Kudos