OSDN Git Service

Merge "input: touchscreen: Fix uninitialized variable usage in Atmel driver"
[sagit-ice-cold/kernel_xiaomi_msm8998.git] / Documentation / devicetree / bindings / i2c / i2c-msm-v2.txt
1 Qualcomm I2C controller
2
3 Required properties:
4  - reg : Offset and length of the register region for the device named in
5         reg-names and has the same index.
6  - reg-names : Register region name(s) referenced in reg above
7         "qup_phys_addr" : Physical address of QUP register space.
8  - compatible : should be "qcom,i2c-msm-v2"
9  - interrupts : Interrupt number which correspond to the entry with the same
10         index in interrupt-names.
11  - interrupt-names: QUP core interrupt name(s) referenced in interrupts above
12         "qup_irq" : QUP interrupt used by the controller.
13  - dmas : DMA engine API's parameters for blsp.
14         <[phandle of the dma controller] [pipe index] [number of descriptors]
15                                 [sps_connect flags] [sps_register_event flags]>;
16  - dma-names :  dma channel names.
17  - qcom,clk-freq-out : Desired I2C bus clock frequency in Hz
18  - qcom,clk-freq-in  : Supplied core clock frequency in Hz.
19  - qcom,i2c-dat : specifies GPIO which corresponds to the I2C data line.
20  - qcom,i2c-clk : specifies GPIO which corresponds to the I2C clock line.
21
22 Required alias:
23  - The desired bus-number is specified by an alias with the following format:
24         'i2c{n}' where n is the bus number.
25
26 Optional property:
27  - qcom,noise-rjct-scl : number of low samples on clock line to consider it low.
28         When missing default to 0.
29  - qcom,noise-rjct-sda : number of low samples on data  line to consider it low.
30         When missing default to 0.
31  - qcom,disable-dma : disables DMA transfer mode.
32  - qcom,master-id : Master-port value used on voting for the clock path.
33  - qcom,high-time-clk-div : high time divider value to configure clk-ctl
34         register. When missing, default to the value given in driver.
35  - qcom,fs-clk-div: fs divider value to configure clk-ctl register. When
36         missing, default to the value given in driver.
37
38 Example:
39         aliases {
40                 i2c10 = &i2c_10;
41         };
42
43         i2c_10: i2c@f9966000 {
44                 compatible = "qcom,i2c-msm-v2";
45                 reg-names = "qup_phys_addr", "dma_phys_addr";
46                 reg = <0xf9966000 0x1000>;
47                 interrupt-names = "qup_irq";
48                 interrupts = <0 104 0>;
49                 dmas = <&dma_blsp1 14 32 0x20000020 0x20>,
50                         <&dma_blsp1 15 64 0x20000020 0x20>;
51                 dma-names = "tx", "rx";
52                 qcom,clk-freq-out = <100000>;
53                 qcom,clk-freq-in  = <24000000>;
54                 qcom,noise-rjct-scl = <0>;
55                 qcom,noise-rjct-sda = <0>;
56                 qcom,i2c-dat = <&tlmm 67 0x00>;
57                 qcom,i2c-clk = <&tlmm 68 0x00>;
58
59         };