简体   繁体   中英

AM335x - i2c slave for linux kernel

I need to have i2c slave Linux kernel driver for TI AM335x. I googled about and didn't find precise information. Should I do everything from scratch, or maybe someone has some reference about it? or even a patch

Thanks

Avner

For new device which connected as slave to i2c bus, you should write neither " i2c driver" nor "driver for AM335x " (as far as the processor support already present in kernel).

i2c is a bus and there is kernel infrastructure for the bus, see documentation .

You should figure out what type your device is and then write driver for this type of device using i2c bus primitives.

For example, the driver for DS13xx and compatible IC is rtc driver.

A driver "for" PCF8574 i2c gpio expander can be GPIO driver as well as keypad driver.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM