nvidia,tegra20-i2c.txt 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. NVIDIA Tegra20/Tegra30/Tegra114 I2C controller driver.
  2. Required properties:
  3. - compatible : should be:
  4. "nvidia,tegra114-i2c"
  5. "nvidia,tegra30-i2c"
  6. "nvidia,tegra20-i2c"
  7. "nvidia,tegra20-i2c-dvc"
  8. Details of compatible are as follows:
  9. nvidia,tegra20-i2c-dvc: Tegra20 has specific I2C controller called as DVC I2C
  10. controller. This only support master mode of I2C communication. Register
  11. interface/offset and interrupts handling are different than generic I2C
  12. controller. Driver of DVC I2C controller is only compatible with
  13. "nvidia,tegra20-i2c-dvc".
  14. nvidia,tegra20-i2c: Tegra20 has 4 generic I2C controller. This can support
  15. master and slave mode of I2C communication. The i2c-tegra driver only
  16. support master mode of I2C communication. Driver of I2C controller is
  17. only compatible with "nvidia,tegra20-i2c".
  18. nvidia,tegra30-i2c: Tegra30 has 5 generic I2C controller. This controller is
  19. very much similar to Tegra20 I2C controller with additional feature:
  20. Continue Transfer Support. This feature helps to implement M_NO_START
  21. as per I2C core API transfer flags. Driver of I2C controller is
  22. compatible with "nvidia,tegra30-i2c" to enable the continue transfer
  23. support. This is also compatible with "nvidia,tegra20-i2c" without
  24. continue transfer support.
  25. nvidia,tegra114-i2c: Tegra114 has 5 generic I2C controller. This controller is
  26. very much similar to Tegra30 I2C controller with some hardware
  27. modification:
  28. - Tegra30/Tegra20 I2C controller has 2 clock source called div-clk and
  29. fast-clk. Tegra114 has only one clock source called as div-clk and
  30. hence clock mechanism is changed in I2C controller.
  31. - Tegra30/Tegra20 I2C controller has enabled per packet transfer by
  32. default and there is no way to disable it. Tegra114 has this
  33. interrupt disable by default and SW need to enable explicitly.
  34. Due to above changes, Tegra114 I2C driver makes incompatible with
  35. previous hardware driver. Hence, tegra114 I2C controller is compatible
  36. with "nvidia,tegra114-i2c".
  37. - reg: Should contain I2C controller registers physical address and length.
  38. - interrupts: Should contain I2C controller interrupts.
  39. - address-cells: Address cells for I2C device address.
  40. - size-cells: Size of the I2C device address.
  41. - clocks: Clock ID as per
  42. Documentation/devicetree/bindings/clock/tegra<chip-id>.txt
  43. for I2C controller.
  44. - clock-names: Name of the clock:
  45. Tegra20/Tegra30 I2C controller: "div-clk and "fast-clk".
  46. Tegra114 I2C controller: "div-clk".
  47. Example:
  48. i2c@7000c000 {
  49. compatible = "nvidia,tegra20-i2c";
  50. reg = <0x7000c000 0x100>;
  51. interrupts = <0 38 0x04>;
  52. #address-cells = <1>;
  53. #size-cells = <0>;
  54. clocks = <&tegra_car 12>, <&tegra_car 124>;
  55. clock-names = "div-clk", "fast-clk";
  56. status = "disabled";
  57. };