| From 2a51095cae7f24051a86db68d264fd0ba7504076 Mon Sep 17 00:00:00 2001 |
| From: Geert Uytterhoeven <geert+renesas@glider.be> |
| Date: Thu, 30 Nov 2017 13:57:24 +0100 |
| Subject: [PATCH 0714/1795] 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> |
| (cherry picked from commit e99185b298ba0288e88ea0a935342f01c8387b76) |
| Signed-off-by: Simon Horman <horms+renesas@verge.net.au> |
| Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> |
| --- |
| arch/arm/boot/dts/r8a7790-lager.dts | 5 ++--- |
| 1 file 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 @@ |
| #size-cells = <0>; |
| compatible = "i2c-gpio"; |
| status = "disabled"; |
| - gpios = <&gpio1 17 GPIO_ACTIVE_HIGH /* sda */ |
| - &gpio1 16 GPIO_ACTIVE_HIGH /* scl */ |
| - >; |
| + sda-gpios = <&gpio1 17 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; |
| + scl-gpios = <&gpio1 16 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; |
| i2c-gpio,delay-us = <5>; |
| }; |
| |
| -- |
| 2.19.0 |
| |