qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v3] hw: gpio: introduce pcf8574 driver


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH v3] hw: gpio: introduce pcf8574 driver
Date: Mon, 11 Mar 2024 13:03:19 +0100
User-agent: Mozilla Thunderbird

On 11/3/24 10:58, Dmitriy Sharikhin wrote:
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>

If a patch is reviewed, please carry reviewers' tag:
https://www.qemu.org/docs/master/devel/submitting-a-patch.html#proper-use-of-reviewed-by-tags-can-aid-review

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>

---
  MAINTAINERS               |   6 ++
  hw/gpio/Kconfig           |   4 +
  hw/gpio/meson.build       |   1 +
  hw/gpio/pcf8574.c         | 162 ++++++++++++++++++++++++++++++++++++++
  include/hw/gpio/pcf8574.h |  15 ++++
  5 files changed, 188 insertions(+)
  create mode 100644 hw/gpio/pcf8574.c
  create mode 100644 include/hw/gpio/pcf8574.h




reply via email to

[Prev in Thread] Current Thread [Next in Thread]