What is my i2c device slave address?

Raul Piper raulpblooper at gmail.com
Sat Aug 8 07:10:33 EDT 2015


Hi Woody,
Form the attached datasheet section 4.3.2  the address seems to be : 0x4A
and 0x4B depending upon the ADDR_SEL line(low or high respectively).
Please check in the driver code is the address is 7 bit or 8 bit before
using the above address.
Also you can check the i2c utilities :
http://www.lm-sensors.org/wiki/I2CTools to check the address of the devices
connected with your SoC.on running i2c detect (with appropriate arguments)
you will come to know about the address of the devices which you can verify
with the address you put in the driver code.
Thanks and Rgds,
Rp

On Sat, Aug 8, 2015 at 10:09 AM, Woody Wu <narkewoody at gmail.com> wrote:

> I am recently porting an i2c touchscreen to my board which runs ARM linux
> 3.1.  I found I need to setup some device platform data for the i2c chip,
> among which there is an 'addr' field that I dont understand.  I search the
> device driver code, then I know the address will be used when compositing
> some i2c messages. My question is that how do I know what the address I
> should fill in the field? The datasheet of the device doesn't provide an
> answer.  By the way, the touchscreen is actually an Atmel mXT224 i2c
> multi-touch screen panel, which is wired to a Samsung S3C i2c controller in
> my SoC.
>
> Thanks in advance!
> -woody
>
>
> --
> Sent from Gmail Mobile
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150808/7dbf4f26/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mXT224 Datasheet_FX_1 5.pdf
Type: application/pdf
Size: 611522 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150808/7dbf4f26/attachment-0001.pdf 


More information about the Kernelnewbies mailing list