drivers: gpio: Add driver for pcf8574

Adds a driver for pcf8574 via i2c.

Signed-off-by: Josia Strack <josia.strack@ithinx.io>
This commit is contained in:
Josia Strack 2022-08-09 10:44:16 +02:00 committed by Carles Cufí
commit ba7eb1025a
6 changed files with 453 additions and 0 deletions

View file

@ -58,6 +58,15 @@
interrupt-gpios = <&test_gpio 0 0>;
};
test_i2c_pcf8574: pcf8574@27 {
compatible = "nxp,pcf8574";
reg = <0x27>;
gpio-controller;
#gpio-cells = <2>;
ngpios = <8>;
int-gpios = <&test_gpio 0 0>;
};
test_i2c_pca953x: pca953x@70 {
compatible = "ti,tca9538";
reg = <0x70>;