i2c-davinci.txt 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. * Texas Instruments Davinci/Keystone I2C
  2. This file provides information, what the device node for the
  3. davinci/keystone i2c interface contains.
  4. Required properties:
  5. - compatible: "ti,davinci-i2c" or "ti,keystone-i2c";
  6. - reg : Offset and length of the register set for the device
  7. - clocks: I2C functional clock phandle.
  8. For 66AK2G this property should be set per binding,
  9. Documentation/devicetree/bindings/clock/ti,sci-clk.txt
  10. SoC-specific Required Properties:
  11. The following are mandatory properties for Keystone 2 66AK2G SoCs only:
  12. - power-domains: Should contain a phandle to a PM domain provider node
  13. and an args specifier containing the I2C device id
  14. value. This property is as per the binding,
  15. Documentation/devicetree/bindings/soc/ti/sci-pm-domain.txt
  16. Recommended properties :
  17. - interrupts : standard interrupt property.
  18. - clock-frequency : desired I2C bus clock frequency in Hz.
  19. - ti,has-pfunc: boolean; if defined, it indicates that SoC supports PFUNC
  20. registers. PFUNC registers allow to switch I2C pins to function as
  21. GPIOs, so they can be toggled manually.
  22. Example (enbw_cmc board):
  23. i2c@1c22000 {
  24. compatible = "ti,davinci-i2c";
  25. reg = <0x22000 0x1000>;
  26. clock-frequency = <100000>;
  27. interrupts = <15>;
  28. interrupt-parent = <&intc>;
  29. #address-cells = <1>;
  30. #size-cells = <0>;
  31. dtt@48 {
  32. compatible = "national,lm75";
  33. reg = <0x48>;
  34. };
  35. };