diff mbox series

[1/1] i2c: Fix value of the delay-us property in i2c-gpio dt binding docs

Message ID 1544389158-10465-1-git-send-email-spanceac@gmail.com
State Under Review
Delegated to: Wolfram Sang
Headers show
Series [1/1] i2c: Fix value of the delay-us property in i2c-gpio dt binding docs | expand

Commit Message

Sebastian Panceac Dec. 9, 2018, 8:59 p.m. UTC
The clock period for the bitbanged I2C bus is equal to 2*delay-us.
This modification sets te correct delay-us value to 5 for a desired
frequency of 100KHz.
The old value of 2 for delay-us set a frequency of 250KHz and not
100KHz as stated in the comment.

Signed-off-by: Sebastian Panceac <spanceac@gmail.com>
---
 Documentation/devicetree/bindings/i2c/i2c-gpio.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/i2c/i2c-gpio.txt b/Documentation/devicetree/bindings/i2c/i2c-gpio.txt
index 38a0556..d418b0e 100644
--- a/Documentation/devicetree/bindings/i2c/i2c-gpio.txt
+++ b/Documentation/devicetree/bindings/i2c/i2c-gpio.txt
@@ -35,7 +35,7 @@  i2c@0 {
 	compatible = "i2c-gpio";
 	sda-gpios = <&pioA 23 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
 	scl-gpios = <&pioA 24 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
-	i2c-gpio,delay-us = <2>;	/* ~100 kHz */
+	i2c-gpio,delay-us = <5>;	/* ~100 kHz */
 	#address-cells = <1>;
 	#size-cells = <0>;