drivers: gpio: Add PCA953X driver (gpio port expander)

The Texas Instruments TCA9538 is an 8 pin GPIO port expander.
It operates on an I2C bus with 2 configurable address pins. The
device has an interrupt output pin that is asserted when any pin
configured as an input changes state.

Added under the PCA953X name to allow other similar parts to
use the same driver.

Signed-off-by: Kieran Mackey <kieran.mackey@lairdconnect.com>
This commit is contained in:
Kieran Mackey 2021-05-07 13:55:49 +01:00 committed by Christopher Friedt
commit 19f7af11fa
7 changed files with 582 additions and 0 deletions

View file

@ -61,6 +61,16 @@
#gpio-cells = <2>;
gpio-controller;
};
test_i2c_pca953x: pca953x@70 {
compatible = "ti,tca9538";
reg = <0x70>;
label = "PCA953X";
gpio-controller;
#gpio-cells = <2>;
ngpios = <8>;
nint-gpios = <&test_gpio 0 0>;
};
};
test_spi: spi@33334444 {