dt-bindings: i2c: i2c-gpio: Add support for named gpios
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 24 Aug 2017 07:21:12 +0000 (09:21 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 30 Oct 2017 07:42:54 +0000 (08:42 +0100)
commit7d29f509d2cfd807b2fccc643ac1f7066b9b1949
treec1a0a291eddd7a46824b2e67ecee13918ebb79ea
parentb9ab0517efc0111b516878ab872e2b3dd7bb40a9
dt-bindings: i2c: i2c-gpio: Add support for named gpios

The current i2c-gpio DT bindings use a single unnamed "gpios" property
to refer to the SDA and SCL signal lines by index.  This is error-prone
for the casual DT writer and reviewer, as one has to look up the order
in the DT bindings.

Fix this by amending the DT bindings to use two separate named gpios
properties, and deprecate the old unnamed variant.

Take this opportunity to clearly deprecate the "i2c-gpio,sda-open-drain"
and "i2c-gpio,scl-open-drain" flags as well. The commit describes
in detail what these flags actually mean, and why they should not be
used in new device trees.

Cc: devicetree@vger.kernel.org
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
[Augmented to what I and Rob would like]
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Documentation/devicetree/bindings/i2c/i2c-gpio.txt