2015-09-14 20:17 GMT+02:00 John Crispin <blo...@openwrt.org>: > > > On 14/09/2015 20:09, Daniel Golle wrote: >> On Mon, Sep 14, 2015 at 07:47:08PM +0200, John Crispin wrote: >>> On 14/09/2015 19:28, Baptiste Clenet wrote: >>>> Hi, >>>> >>>> I'm using a MT7628 chip and I try to implement an I2C device which >>>> will use i2c-ralink adapter. I registered my i2c device with >>>> module_i2c_driver(i2c_device_driver); >>>> >>>> I can see it on my bus: >>>> ./sys/bus/i2c/drivers/i2c_device_driver >>>> But it doesn't appear in /dev. >>>> >>>> What am I doing wrong? >>>> >>>> Regards, >>>> >>> >>> you are missing CONFIG_I2C_CHARDEV in the kernel config >> >> or maybe i2c-dev isn't loaded? try >> modprobe i2c-dev >> > > i2c-dev is part of i2c-core if that symbol is selected. i2c-core uses > AutoLoad and not AutoProbe so it should always load.
Thnaks for the answer. i2c-dev and i2c-core are loaded as well as i2c-ralink and my i2c driver. How to add CONFIG_I2C_CHARDEV? I added it in /target/linux/ramips config file of my board but it hasn't changed anything. How may I check that the config has really been added? By the way, is there a similar CONFIG for SPI, like CONFIG_SPI_CHARDEV ? > > John > _______________________________________________ > openwrt-devel mailing list > openwrt-devel@lists.openwrt.org > https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel -- Baptiste _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel