Hi all,
I am trying to use a MCP3426 I2C ADC chip with my NanoPi Duo2. I have compiled a custom kernel with the mcp3426 driver in it, but I can't get it to load. The problem seems to be that the chip uses address 0x68 which is the same address that the commonly used DS1307 RTC chip uses. I have blacklisted the ds1307 module which has stopped that module from loading, but somehow '/sys/bus/i2c/devices/0-0068/name' still claims to be a ds1307. 'echo mcp3426 0x68 > /sys/class/i2c-dev/i2c-0/device/new_device' results in a "Invalid argument error" with 'i2c i2c-0: Failed to register i2c client mcp3426 at 0x68 (-16)' being logged in dmesg, and apparently the -16 error means that address is already in use. 'echo 0x68 > /sys/bus/i2c/devices/i2c-0/delete_device' results in 'i2c i2c-0: delete_device: Can't find device in list'.
I should add that I can read the ADC using i2cget, but I would like to use the Linux iio interface.
Any ideas on where to go from here?
Thanks,
Alex