]> rtime.felk.cvut.cz Git - zynq/linux.git/commitdiff
ARM: dts: koelsch: Convert to named i2c-gpio bindings
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 30 Nov 2017 12:57:25 +0000 (13:57 +0100)
committerSimon Horman <horms+renesas@verge.net.au>
Mon, 4 Dec 2017 08:34:48 +0000 (09:34 +0100)
Commits 7d29f509d2cfd807 ("dt-bindings: i2c: i2c-gpio: Add support for
named gpios") and 05c74778858d7d99 ("i2c: gpio: Add support for named
gpios in DT") introduced named i2c-gpio DT bindings, and deprecated the
more error-prone unnamed variant.

Switch to the new bindings, and add the missing GPIO_OPEN_DRAIN I/O
flags, which were implicitly assumed before.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/boot/dts/r8a7791-koelsch.dts

index fac9cdea496505912c47c45dfcceff7f2a8054dd..a50924d12b6f37d5a97476776a18f11fad2a1869 100644 (file)
                #size-cells = <0>;
                compatible = "i2c-gpio";
                status = "disabled";
-               gpios = <&gpio7 16 GPIO_ACTIVE_HIGH /* sda */
-                        &gpio7 15 GPIO_ACTIVE_HIGH /* scl */
-                       >;
+               sda-gpios = <&gpio7 16 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
+               scl-gpios = <&gpio7 15 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
                i2c-gpio,delay-us = <5>;
        };