Avner Flesch
Avner Flesch

Reputation: 35

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

Upvotes: 0

Views: 507

Answers (1)

ReAl
ReAl

Reputation: 1301

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.

Upvotes: 0

Related Questions