Skip to contentSkip to conversation

gpio: pca953x: enable driver on Intel Edison

PATCH In review Andy Shevchenko 2 participants 4 messages Jun 14, 2016 – Jun 15, 2016 GPIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gpio: pca953x: enable driver on Intel Edison

Intel Edison board has 4 GPIO expanders PCA9555a connected to I2C bus. Add an ID to support them.

---
 drivers/gpio/gpio-pca953x.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpio/gpio-pca953x.c +2 -0
index 21b21cd..8b630a4 100644
@@ -67,6 +67,8 @@ static const struct i2c_device_id pca953x_id[] = {
 	{ "pca9575", 16 | PCA957X_TYPE | PCA_INT, },
 	{ "pca9698", 40 | PCA953X_TYPE, },
 
+	{ "pcal9555a", 16 | PCA953X_TYPE | PCA_INT | PCA_PCAL, },
+
 	{ "max7310", 8  | PCA953X_TYPE, },
 	{ "max7312", 16 | PCA953X_TYPE | PCA_INT, },
 	{ "max7313", 16 | PCA953X_TYPE | PCA_INT, },
Signature · 1 line
2.8.1
#2 lore raw
In reply to Andy Shevchenko
Quoted 4 lines · Andy Shevchenko

Intel Edison board has 4 GPIO expanders PCA9555a connected to I2C bus. Add an ID to support them.

BTW Andy, if you have PCA95x hardware you're playing with, any chance you could implement .get_direction() for this driver?

I'd really like for that to be supported on all major hardware.

Yours,
Linus Walleij

#3 lore raw
Quoted 7 lines · Linus Walleij
Quoted 4 lines · Andy Shevchenko

Intel Edison board has 4 GPIO expanders PCA9555a connected to I2C bus. Add an
ID to support them.

Quoted 6 lines
Quoted 1 line

BTW Andy, if you have PCA95x hardware you're playing with, any chance you could implement .get_direction() for this driver?

I'd really like for that to be supported on all major hardware.

I can put it to my TODO list with low priority.

If someone has more time and eagerness I would be okay to review and-or test it.

Signature · 2 lines
Andy Shevchenko <[email protected]>
Intel Finland Oy