diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2017-11-30 07:57:24 -0500 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2017-12-04 03:34:43 -0500 |
commit | e99185b298ba0288e88ea0a935342f01c8387b76 (patch) | |
tree | 31206e41eef62277eb224960413c488cc62a5915 | |
parent | 4f1cfdc250900e275a3f2341d57ba1c7ce41188a (diff) |
ARM: dts: lager: Convert to named i2c-gpio bindings
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>
-rw-r--r-- | arch/arm/boot/dts/r8a7790-lager.dts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index e3d27783b6b5..f2ea632381e7 100644 --- a/arch/arm/boot/dts/r8a7790-lager.dts +++ b/arch/arm/boot/dts/r8a7790-lager.dts | |||
@@ -272,9 +272,8 @@ | |||
272 | #size-cells = <0>; | 272 | #size-cells = <0>; |
273 | compatible = "i2c-gpio"; | 273 | compatible = "i2c-gpio"; |
274 | status = "disabled"; | 274 | status = "disabled"; |
275 | gpios = <&gpio1 17 GPIO_ACTIVE_HIGH /* sda */ | 275 | sda-gpios = <&gpio1 17 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; |
276 | &gpio1 16 GPIO_ACTIVE_HIGH /* scl */ | 276 | scl-gpios = <&gpio1 16 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; |
277 | >; | ||
278 | i2c-gpio,delay-us = <5>; | 277 | i2c-gpio,delay-us = <5>; |
279 | }; | 278 | }; |
280 | 279 | ||