Hi, All!
I,m a new in i2c. I want to get access for i2c bus in linux-c6x (I need control i2c switch placed on my board) but I can't see any device files similar to /dev/i2c-x after system was booted. But in sysfs I can see i2c-bus related entries. Here my sysfs log:
/home/embedded/i2c # ls /sys/devices/platform
cio.0 keystone-rapidio.1 serial8250.0
davinci_nand.0 keystone_netcp.0 spi_davinci.0
edma.0 keystone_netcp.1 uevent
i2c_davinci.1 keystone_qmss.0
keystone-pcie.0 serial8250
/home/embedded/i2c # ls /sys/devices/platform/i2c_davinci.1
bus driver i2c-1 modalias subsystem uevent
and
/home/embedded/i2c # ls /sys/devices/platform/i2c_davinci.1/i2c-1/
1-0050 1-0070 delete_device new_device uevent
1-0051 bus name subsystem
I add entry I2C_BOARD_INFO("TCA9548", 0x70) in evm_i2c_info structure.
Please, tell me how I can bind i2c_davinci driver with device node created in /dev directory.
Thank you.
P.S. In DM816x linux, during board initialization calling omap_register_i2c_bus() and I suppose, device node create automatically. In linux-c6 I can't found something similar.