On Thu, 1 Mar 2012 12:01:26 +0000 (UTC), Pierantonio Tabaro wrote:
> Jean Delvare <khali <at> linux-fr.org> writes:
>
> >
> > Yes, you are missing something. Please read:
> > Documentation/i2c/instantiating-devices
> > Method 3 is not implemented by the ads1015 driver because the devices
> > it supports have no identification registers, so you'll have to use one
> > of the three other methods.
> >
>
> I have read the doc before posting ;-), i hope to be using method 1:
>
> static struct at24_platform_data picomaster_i2c_eeprom_info = {
> .byte_len = SZ_256K / 8,
> .page_size = 64,
> .flags = AT24_FLAG_ADDR16,
> // .setup = davinci_get_mac_addr,
> // .context = (void *)0x7f00,
> };
>
> struct ads1015_platform_data picomaster_i2c_ads1015_info = {
> .exported_channels = (1 << 2) | (1 << 4)
> };
>
> static struct i2c_board_info __initdata mxs_i2c_device[] = {
> //{ I2C_BOARD_INFO("sgtl5000-i2c", 0xa), .flags = I2C_M_TEN }
> {
> I2C_BOARD_INFO("rtc-ds1307", 0x68),
> .type = "ds1339",
> },
> {
> I2C_BOARD_INFO("eeprom-24c256", 0x50),
> .platform_data = &picomaster_i2c_eeprom_info,
> },
> {
> I2C_BOARD_INFO("adc-ads1015", 0x48),
> //.platform_data = &picomaster_i2c_ads1015_info,
> },
> {
> I2C_BOARD_INFO("adc-ads1015", 0x49),
> //.platform_data = &picomaster_i2c_ads1015_info,
> },
The driver wants "ads1015" not "adc-ads1015".
--
Jean Delvare
_______________________________________________
lm-sensors mailing list
lm-sensors@xxxxxxxxxxxxxx
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
[Video for Linux]
[Mplayer Users]
[Linux USB Devel]
[Linux Audio Users]
[Photos]
[Yosemite Photos]
[Free Singles Community]
[Linux Kernel]
[Linux SCSI]
[XFree86]
[Yosemite Backpacking]