Skip to content
Advertisement

Tag: i2c

Linux loading i2c drivers

I have linux 4.4 on my board. I also have two i2c devices with their driver. When I connect first device to board – i see in dmesg that _probe function called. When I don’t connect any device to board – in dmesg i don’t see _probe function. When I connect second device – in dmesg i don’t see _probe

Example device-tree-aware i2c gpio driver for Linux?

Is there a good example device-tree-aware i2c gpio driver for Linux? I’ve been looking at gpio-pcf857x but it has a header file containing struct pcf857x_platform_data which is used in board files. I am looking for a similar example, but where the i2c id is defined-in/retrieved-from the device tree. Answer Take a look at max732x.c driver (code). As for I2C ID

Advertisement