aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2017-11-30 07:57:26 -0500
committerSimon Horman <horms+renesas@verge.net.au>2017-12-04 03:34:53 -0500
commit7f32eddb81ecc06131a643babe2d0f961fbd7f08 (patch)
tree918d2cba4e2d1fc0c636f7cb878adcb524a1ec01
parentc14f3ec4ebb0c685b5261380559782caa76bd161 (diff)
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>
-rw-r--r--arch/arm/boot/dts/r8a7794-alt.dts5
1 files 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 @@
143 #size-cells = <0>; 143 #size-cells = <0>;
144 compatible = "i2c-gpio"; 144 compatible = "i2c-gpio";
145 status = "disabled"; 145 status = "disabled";
146 gpios = <&gpio4 9 GPIO_ACTIVE_HIGH /* sda */ 146 sda-gpios = <&gpio4 9 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
147 &gpio4 8 GPIO_ACTIVE_HIGH /* scl */ 147 scl-gpios = <&gpio4 8 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
148 >;
149 i2c-gpio,delay-us = <5>; 148 i2c-gpio,delay-us = <5>;
150 }; 149 };
151 150