i2c: i2c-gpio: Support the named GPIO binding
authorSamuel Holland <samuel@sholland.org>
Sun, 22 Aug 2021 00:25:43 +0000 (19:25 -0500)
committerHeiko Schocher <hs@denx.de>
Sun, 22 Aug 2021 09:03:55 +0000 (11:03 +0200)
commit7282b4352eba74e134c7ebba945338e418ec7faf
tree1ba9473836f0246e13ab722480a0abec295f06cc
parent0b3da993a4550d3b990989e3bcdcbbb8cf889258
i2c: i2c-gpio: Support the named GPIO binding

To avoid confusion about the order of the GPIOs, the i2c-gpio binding
was updated to use a separate property for each GPIO instead of an
array. However, the driver only supports the old binding. Add support
for the new binding as well, so the driver continues to work as device
trees are updated.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Heiko Schocher <hs@denx.de>
drivers/i2c/i2c-gpio.c