I2C General call from kernel driver/module on IMX6D

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

I2C General call from kernel driver/module on IMX6D

1,294 次查看
miroslavkopecek
Contributor II

Hello, 
would anyone know a 'standard' way how to do a general-call-address reset of a device from device driver ?

1) Short description of issue:

I am trying to write my own driver for TLV493D (magnetic sensor on i2c bus).

Datasheet of that IC in chapter 5.7.1 states:
"A general reset is trigged by calling the address 0x00 in the I2 C interface. This generates an internal reset..."

In my use the reset is needed for the device to function properly however i was unsuccessful in trying to write to the address 0x00. (7bit mode) - as it is the reserved general call address.

2) Question:
Is there a way to write to the 0x00 device address on i2c bus from kernel module ?
(I am using system with  imx6 dual core)

thank you for all inputs on this topic.


datasheet link:
https://www.infineon.com/dgdl/Infineon-TLV493D-A1B6_3DMagnetic-UM-v01_03-EN.pdf?fileId=5546d46261d5e... 

标签 (2)
0 项奖励
回复
1 回复

1,140 次查看
b36401
NXP Employee
NXP Employee

You can access i2c bus with device like /dev/i2c-0

0 项奖励
回复