aboutsummaryrefslogtreecommitdiffstats
path: root/patches/0716-ARM-dts-alt-Convert-to-named-i2c-gpio-bindings.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/0716-ARM-dts-alt-Convert-to-named-i2c-gpio-bindings.patch')
-rw-r--r--patches/0716-ARM-dts-alt-Convert-to-named-i2c-gpio-bindings.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/patches/0716-ARM-dts-alt-Convert-to-named-i2c-gpio-bindings.patch b/patches/0716-ARM-dts-alt-Convert-to-named-i2c-gpio-bindings.patch
new file mode 100644
index 00000000000000..65aa301537dbee
--- /dev/null
+++ b/patches/0716-ARM-dts-alt-Convert-to-named-i2c-gpio-bindings.patch
@@ -0,0 +1,42 @@
+From 97c0aa1141398396390283932bdef4f2f26b50fb Mon Sep 17 00:00:00 2001
+From: Geert Uytterhoeven <geert+renesas@glider.be>
+Date: Thu, 30 Nov 2017 13:57:26 +0100
+Subject: [PATCH 0716/1795] ARM: dts: alt: 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 7f32eddb81ecc06131a643babe2d0f961fbd7f08)
+Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
+Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
+---
+ arch/arm/boot/dts/r8a7794-alt.dts | 5 ++---
+ 1 file changed, 2 insertions(+), 3 deletions(-)
+
+diff --git a/arch/arm/boot/dts/r8a7794-alt.dts b/arch/arm/boot/dts/r8a7794-alt.dts
+index bd98790d964e..60c6515c4996 100644
+--- a/arch/arm/boot/dts/r8a7794-alt.dts
++++ b/arch/arm/boot/dts/r8a7794-alt.dts
+@@ -143,9 +143,8 @@
+ #size-cells = <0>;
+ compatible = "i2c-gpio";
+ status = "disabled";
+- gpios = <&gpio4 9 GPIO_ACTIVE_HIGH /* sda */
+- &gpio4 8 GPIO_ACTIVE_HIGH /* scl */
+- >;
++ sda-gpios = <&gpio4 9 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
++ scl-gpios = <&gpio4 8 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
+ i2c-gpio,delay-us = <5>;
+ };
+
+--
+2.19.0
+