drivers: gpio: PCF857x: Modify PCF8574 driver
Modify existing PCF8574 driver as PCF857x for: PCF8574 - 8 channel I/O expander PCF8575 - 16 channel I/O expander Signed-off-by: Amrith Venkat Kesavamoorthi <amrith@mr-beam.org>
This commit is contained in:
parent
342e10b0b8
commit
879e3a42b0
9 changed files with 176 additions and 121 deletions
|
@ -68,8 +68,17 @@
|
|||
interrupt-gpios = <&test_gpio 0 0>;
|
||||
};
|
||||
|
||||
test_i2c_pcf8575: pcf8575@21 {
|
||||
compatible = "nxp,pcf857x";
|
||||
reg = <0x21>;
|
||||
gpio-controller;
|
||||
#gpio-cells = <2>;
|
||||
ngpios = <16>;
|
||||
int-gpios = <&test_gpio 0 0>;
|
||||
};
|
||||
|
||||
test_i2c_pcf8574: pcf8574@27 {
|
||||
compatible = "nxp,pcf8574";
|
||||
compatible = "nxp,pcf857x";
|
||||
reg = <0x27>;
|
||||
gpio-controller;
|
||||
#gpio-cells = <2>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue