i2c-at91.txt 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. I2C for Atmel platforms
  2. Required properties :
  3. - compatible : Must be "atmel,at91rm9200-i2c", "atmel,at91sam9261-i2c",
  4. "atmel,at91sam9260-i2c", "atmel,at91sam9g20-i2c", "atmel,at91sam9g10-i2c",
  5. "atmel,at91sam9x5-i2c", "atmel,sama5d4-i2c" or "atmel,sama5d2-i2c"
  6. - reg: physical base address of the controller and length of memory mapped
  7. region.
  8. - interrupts: interrupt number to the cpu.
  9. - #address-cells = <1>;
  10. - #size-cells = <0>;
  11. - clocks: phandles to input clocks.
  12. Optional properties:
  13. - clock-frequency: Desired I2C bus frequency in Hz, otherwise defaults to 100000
  14. - dmas: A list of two dma specifiers, one for each entry in dma-names.
  15. - dma-names: should contain "tx" and "rx".
  16. - atmel,fifo-size: maximum number of data the RX and TX FIFOs can store for FIFO
  17. capable I2C controllers.
  18. - i2c-sda-hold-time-ns: TWD hold time, only available for "atmel,sama5d4-i2c"
  19. and "atmel,sama5d2-i2c".
  20. - Child nodes conforming to i2c bus binding
  21. Examples :
  22. i2c0: i2c@fff84000 {
  23. compatible = "atmel,at91sam9g20-i2c";
  24. reg = <0xfff84000 0x100>;
  25. interrupts = <12 4 6>;
  26. #address-cells = <1>;
  27. #size-cells = <0>;
  28. clocks = <&twi0_clk>;
  29. clock-frequency = <400000>;
  30. 24c512@50 {
  31. compatible = "24c512";
  32. reg = <0x50>;
  33. pagesize = <128>;
  34. }
  35. }
  36. i2c0: i2c@f8034600 {
  37. compatible = "atmel,sama5d2-i2c";
  38. reg = <0xf8034600 0x100>;
  39. interrupts = <19 IRQ_TYPE_LEVEL_HIGH 7>;
  40. dmas = <&dma0
  41. (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1))
  42. AT91_XDMAC_DT_PERID(11)>,
  43. <&dma0
  44. (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1))
  45. AT91_XDMAC_DT_PERID(12)>;
  46. dma-names = "tx", "rx";
  47. #address-cells = <1>;
  48. #size-cells = <0>;
  49. clocks = <&flx0>;
  50. atmel,fifo-size = <16>;
  51. i2c-sda-hold-time-ns = <336>;
  52. wm8731: wm8731@1a {
  53. compatible = "wm8731";
  54. reg = <0x1a>;
  55. };
  56. };