Hi,
Could someone suggest an example of how to define i2c LM75 sensors at /arch/arm/mach-omap2/board-am3517evm.c ?
I have added I2C INFO on the devices but I think I'm missing some definitions. Couldn't spot them in the driver. Here is what I've got so far:
static struct at24_platform_data m24c02 = {
.byte_len = SZ_2K / 8,
.page_size = 16,
};
static struct i2c_board_info __initdata am3517evm_i2c3_boardinfo[] = {
{ /* EEPROM on mainboard */
I2C_BOARD_INFO("24c02", 0x52),
.platform_data = &m24c02,
},
{ /* Temperature sensor #1 */
I2C_BOARD_INFO("lm75", 0x4B),
},
{ /* Temperature sensor #2 */
I2C_BOARD_INFO("lm75", 0x4C),
},
};
1. As an opposite to the EEPROM definition shown here, I don't know what to pass to .platform_data ?
2. Please also advice if using two "lm75" strings for different ICs is valid.
3. Is there any other configuration required besides that one?
Thanks ahead,
Yakir