How to set/get using i2cset/get via i2c switch(pca9545)

Hi,

My board has I2C devices as below:


local@local:~$ i2cdetect -l
i2c-3 i2c 3190000.i2c I2C adapter
i2c-30 i2c i2c-2-mux (chan_id 0) I2C adapter
i2c-1 i2c c240000.i2c I2C adapter
i2c-101 i2c 15210000.display I2C adapter
i2c-8 i2c 31e0000.i2c I2C adapter
i2c-6 i2c 31c0000.i2c I2C adapter
i2c-33 i2c i2c-2-mux (chan_id 3) I2C adapter
i2c-4 i2c Tegra BPMP I2C adapter I2C adapter
i2c-31 i2c i2c-2-mux (chan_id 1) I2C adapter
i2c-2 i2c 3180000.i2c I2C adapter
i2c-0 i2c 3160000.i2c I2C adapter
i2c-7 i2c c250000.i2c I2C adapter
i2c-5 i2c 31b0000.i2c I2C adapter
i2c-32 i2c i2c-2-mux (chan_id 2) I2C adapter

The ‘i2c-30,31,32,33’ are connected with I2C switch(TCA9545), and the switch is connected with ‘i2c-2’.

On my board, the i2c devices are connected with as following:

I2C-2(CAM_I2C) ↔ TCA9545 (4 channels) ↔ TC358743 x 4ea

It looks like that i2c-30,31,23,33 are related to a slave address of each TC358743.
I’d like to set or get a value to/from the TC358743 register, but I cannot find any device file in “/dev”.
I even load the device drivers for TCA9545(pca954x) and TC358743.

Should I use i2cset/get tool? If so, could you please let me know what I should input the parameters for the tool?

Suppose you need driver for it.

NOTE: need to modify the i2c address to fit your HW.