summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/r8a7794-alt.dts
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2017-11-30 13:57:26 +0100
committerSimon Horman <horms+renesas@verge.net.au>2017-12-04 09:34:53 +0100
commit7f32eddb81ecc06131a643babe2d0f961fbd7f08 (patch)
tree918d2cba4e2d1fc0c636f7cb878adcb524a1ec01 /arch/arm/boot/dts/r8a7794-alt.dts
parentc14f3ec4ebb0c685b5261380559782caa76bd161 (diff)
downloadlinux-7f32eddb81ecc06131a643babe2d0f961fbd7f08.tar.bz2
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>
Diffstat (limited to 'arch/arm/boot/dts/r8a7794-alt.dts')
-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 @@
#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>;
};