0061-i2c-qup-Add-device-tree-bindings-information.patch 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. From 81480a89c72d811376e9e040729721705b2a984d Mon Sep 17 00:00:00 2001
  2. From: "Ivan T. Ivanov" <[email protected]>
  3. Date: Thu, 13 Mar 2014 19:07:42 -0700
  4. Subject: [PATCH 061/182] i2c: qup: Add device tree bindings information
  5. The Qualcomm Universal Peripherial (QUP) wraps I2C mini-core and
  6. provide input and output FIFO's for it. I2C controller can operate
  7. as master with supported bus speeds of 100Kbps and 400Kbps.
  8. Signed-off-by: Ivan T. Ivanov <[email protected]>
  9. [bjorn: reformulated part of binding description
  10. added version to compatible
  11. cleaned up example]
  12. Signed-off-by: Bjorn Andersson <[email protected]>
  13. Acked-by: Rob Herring <[email protected]>
  14. [wsa: removed the dummy child node which was a confusing example]
  15. Signed-off-by: Wolfram Sang <[email protected]>
  16. ---
  17. .../devicetree/bindings/i2c/qcom,i2c-qup.txt | 40 ++++++++++++++++++++
  18. 1 file changed, 40 insertions(+)
  19. create mode 100644 Documentation/devicetree/bindings/i2c/qcom,i2c-qup.txt
  20. --- /dev/null
  21. +++ b/Documentation/devicetree/bindings/i2c/qcom,i2c-qup.txt
  22. @@ -0,0 +1,40 @@
  23. +Qualcomm Universal Peripheral (QUP) I2C controller
  24. +
  25. +Required properties:
  26. + - compatible: Should be:
  27. + * "qcom,i2c-qup-v1.1.1" for 8660, 8960 and 8064.
  28. + * "qcom,i2c-qup-v2.1.1" for 8974 v1.
  29. + * "qcom,i2c-qup-v2.2.1" for 8974 v2 and later.
  30. + - reg: Should contain QUP register address and length.
  31. + - interrupts: Should contain I2C interrupt.
  32. +
  33. + - clocks: A list of phandles + clock-specifiers, one for each entry in
  34. + clock-names.
  35. + - clock-names: Should contain:
  36. + * "core" for the core clock
  37. + * "iface" for the AHB clock
  38. +
  39. + - #address-cells: Should be <1> Address cells for i2c device address
  40. + - #size-cells: Should be <0> as i2c addresses have no size component
  41. +
  42. +Optional properties:
  43. + - clock-frequency: Should specify the desired i2c bus clock frequency in Hz,
  44. + defaults to 100kHz if omitted.
  45. +
  46. +Child nodes should conform to i2c bus binding.
  47. +
  48. +Example:
  49. +
  50. + i2c@f9924000 {
  51. + compatible = "qcom,i2c-qup-v2.2.1";
  52. + reg = <0xf9924000 0x1000>;
  53. + interrupts = <0 96 0>;
  54. +
  55. + clocks = <&gcc GCC_BLSP1_QUP2_I2C_APPS_CLK>, <&gcc GCC_BLSP1_AHB_CLK>;
  56. + clock-names = "core", "iface";
  57. +
  58. + clock-frequency = <355000>;
  59. +
  60. + #address-cells = <1>;
  61. + #size-cells = <0>;
  62. + };