[U-Boot] [PATCH 1/4] gpio: Add driver for TI PCF8575 I2C GPIO expander

Tom Rini
2016-07-25T13:38:33Z

On Mon, Jul 25, 2016 at 06:40:20PM +0530, Vignesh R wrote:

> TI's PCF8575 is a 16-bit I2C GPIO expander.The device features a
> 16-bit quasi-bidirectional I/O ports. Each quasi-bidirectional I/O can
> be used as an input or output without the use of a data-direction
> control signal. The I/Os should be high before being used as inputs.
> Read the device documentation for more details[1].
>
> This driver is based on pcf857x driver available in Linux v4.7 kernel.
> It supports basic reading and writing of gpio pins.
>
> [1] http://www.ti.com/lit/ds/symlink/pcf8575.pdf
>
> Signed-off-by: Vignesh R <vigneshr@ti.com>
[snip]
> @@ -0,0 +1,199 @@
> +/*
> + * PCF8575 I2C GPIO EXPANDER DRIVER
> + *
> + * Copyright (C) 2016 Texas Instruments Incorporated - http://www.ti.com/
> + *
> + * Vignesh R <vigneshr@ti.com>
> + *
> + * This program is free software; you can redistribute it and/or
> + * modify it under the terms of the GNU General Public License as
> + * published by the Free Software Foundation version 2.
> + *
> + * This program is distributed "as is" WITHOUT ANY WARRANTY of any
> + * kind, whether express or implied; without even the implied warranty
> + * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> + * GNU General Public License for more details.
> + *
> + * SPDX-License-Identifier: GPL-2.0

With the SPDX tag we don't need the rest of the GPL boilerplate.

> + *
> + *
> + * Driver for TI PCF-8575 16 bit I2C gpio expander. Based on
> + * gpio-pcf857x Linux Kernel(v4.7) driver.
> + *
> + * Copyright (C) 2007 David Brownell

But of course do keep the above.

Otherwise:
Reviewed-by: Tom Rini <trini@konsulko.com>

--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160725/d85bea79/attachment.sig>