MTK7620 i2c bus

27 views
Skip to first unread message

Anish Mangal

unread,
Mar 25, 2017, 4:05:47 AM3/25/17
to T Gillett, village-telco-dev
Hi,

I was trying out the SECN firmware on an MTK7620 board (https://www.gl-inet.com/m7620n/#) and was trying to access the i2c bus. While building the firmware I noticed that there is a kernel module called i2c_ralink. I selected that, and also selected the i2c_gpio_custom to test with using custom gpios as i2c interface.

lsmod says that i2c_ralink is loaded but used by 0 and i2cdetect -l doesnt list any but. Then when I trying to use custom gpios as i2c with the following command

insmod i2c-gpio-custom bus0=0,1,2

but that doesnt seem to work

[  346.207363] i2c-gpio: probe of i2c-gpio.0 failed with error -16

Thoughts?

Best,
Anish


nop...@gmail.com

unread,
Mar 30, 2017, 2:07:18 PM3/30/17
to village-...@googlegroups.com
On Mar 25, 2017 1:05 AM, "Anish Mangal" <ani...@umich.edu> wrote:
insmod i2c-gpio-custom bus0=0,1,2

but that doesnt seem to work

[  346.207363] i2c-gpio: probe of i2c-gpio.0 failed with error -16

Thoughts?

System error number -16 should be EBUSY (Device or resource busy). You might check on contention for gpio ownership.


Reply all
Reply to author
Forward
0 new messages