]> git.dujemihanovic.xyz Git - u-boot.git/commit
i2c: pcf8575: Add support for 8 bit I2C IO expanders (like pca8574)
authorLukasz Majewski <lukma@denx.de>
Mon, 7 Jun 2021 12:26:34 +0000 (14:26 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 23 Jul 2021 11:13:25 +0000 (07:13 -0400)
commit2132fce7e1a56d81d5e5bdbd39b8f6500655c815
treea03884f7c6623ea1a44b2e6a0d1c64089fa0df8c
parent0119c910521cd6b089e5c3ec623902caf75b4915
i2c: pcf8575: Add support for 8 bit I2C IO expanders (like pca8574)

This patch add support for using NXP's pca8574 I2C IO expander, which
has only 8 IO lines.

After this change the .data member's information from struct udevice_id
are used to either sent one or two bytes.

Moreover, the '_le16' suffix from pcf8575_i2c_{write|read}_le16()
functions have been removed as now we also sent 8 bit data.

Signed-off-by: Lukasz Majewski <lukma@denx.de>
Reviewed-by: Heiko Schocher <hs@denx.de>
drivers/gpio/pcf8575_gpio.c