i2c-designware.txt 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. * Synopsys DesignWare I2C
  2. Required properties :
  3. - compatible : should be "snps,designware-i2c"
  4. - reg : Offset and length of the register set for the device
  5. - interrupts : <IRQ> where IRQ is the interrupt number.
  6. Recommended properties :
  7. - clock-frequency : desired I2C bus clock frequency in Hz.
  8. Optional properties :
  9. - i2c-sda-hold-time-ns : should contain the SDA hold time in nanoseconds.
  10. This option is only supported in hardware blocks version 1.11a or newer.
  11. - i2c-scl-falling-time-ns : should contain the SCL falling time in nanoseconds.
  12. This value which is by default 300ns is used to compute the tLOW period.
  13. - i2c-sda-falling-time-ns : should contain the SDA falling time in nanoseconds.
  14. This value which is by default 300ns is used to compute the tHIGH period.
  15. Example :
  16. i2c@f0000 {
  17. #address-cells = <1>;
  18. #size-cells = <0>;
  19. compatible = "snps,designware-i2c";
  20. reg = <0xf0000 0x1000>;
  21. interrupts = <11>;
  22. clock-frequency = <400000>;
  23. };
  24. i2c@1120000 {
  25. #address-cells = <1>;
  26. #size-cells = <0>;
  27. compatible = "snps,designware-i2c";
  28. reg = <0x1120000 0x1000>;
  29. interrupt-parent = <&ictl>;
  30. interrupts = <12 1>;
  31. clock-frequency = <400000>;
  32. i2c-sda-hold-time-ns = <300>;
  33. i2c-sda-falling-time-ns = <300>;
  34. i2c-scl-falling-time-ns = <300>;
  35. };