hw/gpio: introduce pcf8574 driver
commit4cbb1513a2d322f858ccb2556715558482fd4850
authorDmitriy Sharikhin <d.sharikhin@yadro.com>
Mon, 11 Mar 2024 09:58:31 +0000 (11 09:58 +0000)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 11 Mar 2024 21:10:18 +0000 (11 22:10 +0100)
tree4739a356a8e634f8a9aa3f73a0acd5ca7dc9ae20
parent2ea09fe85a1a7006133fa8ee1f467a5758e8f8fb
hw/gpio: introduce pcf8574 driver

NXP PCF8574 and compatible ICs are simple I2C GPIO expanders.
PCF8574 incorporates quasi-bidirectional IO, and simple
communication protocol, when IO read is I2C byte read, and
IO write is I2C byte write. User can think of it as
open-drain port, when line high state is input and line low
state is output.

Signed-off-by: Dmitrii Sharikhin <d.sharikhin@yadro.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <f1552d822276e878d84c01eba2cf2c7c9ebdde00.camel@yadro.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
MAINTAINERS
hw/gpio/Kconfig
hw/gpio/meson.build
hw/gpio/pcf8574.c [new file with mode: 0644]
include/hw/gpio/pcf8574.h [new file with mode: 0644]