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@xxxxxxxxx> --- Documentation/devicetree/bindings/i2c/i2c-gpio.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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>; -- 2.7.4