i2c-gpio.txt 892 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. I2C gpio device binding
  2. =======================
  3. Driver:
  4. - drivers/i2c/i2c-gpio.c
  5. Software i2c device-tree node properties:
  6. Required:
  7. * #address-cells = <1>;
  8. * #size-cells = <0>;
  9. * compatible = "i2c-gpio";
  10. * gpios = <sda ...>, <scl ...>;
  11. Optional:
  12. * i2c-gpio,delay-us = <5>;
  13. The resulting transfer speed can be adjusted by setting the delay[us]
  14. between gpio-toggle operations. Speed [Hz] = 1000000 / 4 * udelay[us],
  15. It not defined, then default is 5us (~50KHz).
  16. * i2c-gpio,deblock
  17. Run deblocking sequence when the driver gets probed.
  18. * i2c-gpio,scl-output-only;
  19. Set if SCL is an output only
  20. Example:
  21. i2c-gpio@1 {
  22. #address-cells = <1>;
  23. #size-cells = <0>;
  24. compatible = "i2c-gpio";
  25. gpios = <&gpd1 0 GPIO_ACTIVE_HIGH>, /* SDA */
  26. <&gpd1 1 GPIO_ACTIVE_HIGH>; /* CLK */
  27. i2c-gpio,delay-us = <5>;
  28. some_device@5 {
  29. compatible = "some_device";
  30. reg = <0x5>;
  31. ...
  32. };
  33. };