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