i2c-gpio.txt 720 B

1234567891011121314151617181920212223242526272829303132
  1. Device-Tree bindings for i2c gpio driver
  2. Required properties:
  3. - compatible = "i2c-gpio";
  4. - gpios: sda and scl gpio
  5. Optional properties:
  6. - i2c-gpio,sda-open-drain: sda as open drain
  7. - i2c-gpio,scl-open-drain: scl as open drain
  8. - i2c-gpio,scl-output-only: scl as output only
  9. - i2c-gpio,delay-us: delay between GPIO operations (may depend on each platform)
  10. - i2c-gpio,timeout-ms: timeout to get data
  11. Example nodes:
  12. i2c@0 {
  13. compatible = "i2c-gpio";
  14. gpios = <&pioA 23 0 /* sda */
  15. &pioA 24 0 /* scl */
  16. >;
  17. i2c-gpio,sda-open-drain;
  18. i2c-gpio,scl-open-drain;
  19. i2c-gpio,delay-us = <2>; /* ~100 kHz */
  20. #address-cells = <1>;
  21. #size-cells = <0>;
  22. rv3029c2@56 {
  23. compatible = "rv3029c2";
  24. reg = <0x56>;
  25. };
  26. };