Linus Walleij fdb7e884ad i2c: iop: Use GPIO descriptors
The IOP3xx has some elaborate code to directly slam the
GPIO lines multiplexed with I2C down low before enablement,
apparently a workaround for a hardware bug found in the
early chips.

After consulting the developer documentation for IOP80321
and IOP80331 I can clearly see that this may be useful for
IOP80321 family (mach-iop32x) but it is highly dubious for
any 80331 series or later chip: in these chips the lines
are not multiplexed for UARTs.

We convert the code to pass optional GPIO descriptors
and register these only on the 80321-based boards where
it makes sense, optionally obtain them in the driver and
use the gpiod_set_raw_value() to ascertain the line gets
driven low when needed.

The GPIO driver does not give the GPIO chip a reasonable
label so the patch also adds that so that these machine
descriptor tables can be used.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
2019-06-12 13:20:23 +02:00
..
2019-06-12 13:20:23 +02:00
2018-06-15 18:10:01 -03:00
2017-06-05 17:50:44 +02:00
2018-07-22 14:13:43 +02:00
2018-10-25 17:57:35 -07:00
2018-05-19 11:53:46 +01:00
2018-05-07 07:15:41 +02:00
2016-01-20 17:55:20 -08:00
2017-11-16 14:05:12 -08:00
2018-01-21 15:37:56 +00:00
2019-05-07 19:06:04 -07:00
2019-04-03 10:32:48 +02:00